A modern, professional invoice and receipt generator built with React and Vite. Create beautiful, customizable invoices and receipts with multiple templates and export them as PDFs.
- Multiple Templates: Choose from 9 professional invoice templates and 4 receipt templates
- Real-time Preview: See your invoice/receipt update in real-time as you type
- Multi-Currency Support: Support for INR (₹) and USD ($) currencies
- Tax Calculations: Automatic tax calculations with customizable tax rates
- PDF Export: Generate and download professional PDF invoices and receipts
- Data Persistence: Form data is automatically saved in browser localStorage
- Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
- Professional Templates: Beautiful, business-ready templates for various industries
- Customizable Notes: Add personalized notes and terms to your invoices
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/monuminu/billify.git
cd billify- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and navigate to
http://localhost:8080
npm run dev- Start development servernpm run build- Build for productionnpm run build:dev- Build for developmentnpm run preview- Preview production buildnpm run lint- Run ESLint
- Company Information: Fill in your company details (name, address, phone)
- Bill To/Ship To: Enter client information
- Invoice Details: Set invoice number, date, and payment due date
- Items: Add products/services with quantities and prices
- Tax Settings: Configure tax percentage (automatically calculated)
- Notes: Add custom notes or terms
- Template Selection: Choose from available templates
- Export: Generate and download PDF
- Navigate to the receipt section using the receipt icon
- Fill in similar information as invoices
- Choose from receipt-specific templates
- Generate and download receipt PDF
- Auto-save: All form data is automatically saved
- Dummy Data: Use the edit icon to fill with sample data for testing
- Clear Form: Use the trash icon to clear all form data
- Template Gallery: Preview and select from multiple professional templates
- Currency Switch: Toggle between supported currencies
- Random Invoice Numbers: Generate random invoice numbers automatically
- Template 1-9: Various professional layouts suitable for different business types
- Each template offers unique styling and layout options
- Real-time preview of selected template
- Template preview images available in
public/assets/
- Receipt 1-4: Specialized layouts for retail and service receipts
- Optimized for smaller format printing
- Customer-friendly layouts
The application includes preview images for all templates located in the public/assets/ directory. You can see template previews directly in the application's template gallery.
- Frontend: React 18, Vite
- Styling: TailwindCSS, TailwindCSS Animate
- UI Components: Radix UI, Shadcn/ui, Lucide React, React Icons
- PDF Generation: jsPDF, html2canvas, html-to-image
- Form Handling: React Hook Form, Zod validation
- Routing: React Router DOM
- State Management: React hooks, localStorage
- Animation: Framer Motion
- Date Handling: date-fns
- Build Tool: Vite
- Linting: ESLint
src/
├── components/
│ ├── templates/ # Invoice and receipt templates
│ ├── ui/ # Reusable UI components
│ ├── BillToSection.jsx # Bill to form section
│ ├── ItemDetails.jsx # Items management
│ └── FloatingLabelInput.jsx
├── pages/
│ ├── Index.jsx # Main invoice creation page
│ ├── ReceiptPage.jsx # Receipt creation page
│ └── TemplatePage.jsx # Template preview page
├── utils/
│ ├── formatCurrency.js # Currency formatting utilities
│ └── templateRegistry.js # Template configurations
└── styles/ # Global styles
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
If you encounter any bugs or have feature requests, please create an issue on GitHub with detailed information.
- Use the dummy data feature to quickly test templates
- All form data is automatically saved, so you won't lose your work
- The app works offline once loaded (PWA capabilities)
- For best PDF export results, use Chrome or Firefox browsers
Made with ❤️ using React and Vite