Skip to content

About

A modern browser-based invoice generator with live preview, GST/tax calculations, UPI QR payments, invoice history, themes, and PDF-ready printing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

๐Ÿงพ Smart Invoice Generator

A modern, browser-based invoice generator with live preview, UPI QR payments, invoice history, themes, and print-ready PDF export.

Live Demo GitHub Repository

HTML5 CSS3 JavaScript GitHub Pages


๐Ÿ“Œ About the Project

Smart Invoice Generator is a lightweight, browser-based invoice creation application built to make professional invoice generation simple and fast.

The application provides a complete invoice workflow inside a single web page. Users can enter company and customer information, add multiple billing items, apply tax and discounts, generate a UPI payment QR code, preview the invoice in real time, save invoices locally, search invoice history, and print or save invoices as PDF.

The project is intentionally built without a backend or build system, making it easy to run locally and deploy as a static website.

๐ŸŽฏ Goal: Provide a simple, professional, and privacy-friendly invoice generation tool that works directly in the browser.


๐ŸŒ Live Demo

๐Ÿš€ Try Smart Invoice Generator Online

๐Ÿ‘‰ Open Live Website

No installation or backend setup is required.


โœจ Key Features

๐Ÿงพ Live Invoice Preview

Create an invoice while seeing the final result update instantly.

  • Real-time field updates
  • Professional invoice layout
  • Company information
  • Customer information
  • Invoice details
  • Multi-item billing
  • Automatic totals
  • Tax calculation
  • Discount support

๐Ÿข Company & Customer Details

Add important billing information including:

  • Company name
  • Company address
  • Contact details
  • GSTIN
  • Customer name
  • Customer address
  • Customer contact information
  • Invoice number
  • Invoice date

๐Ÿ›’ Multi-Item Billing

Add multiple products or services to the invoice.

  • Item description
  • Quantity
  • Price
  • Automatic line totals
  • Multiple invoice items
  • Dynamic item management

๐Ÿ’ฐ Tax & Discount

Customize invoice totals according to your billing requirements.

  • Tax percentage
  • Discount amount/percentage support
  • Automatic calculations
  • Updated totals in real time

๐Ÿ“ฑ UPI QR Payment

Generate a scannable UPI payment QR code directly inside the invoice.

The QR payment section supports:

  • UPI ID
  • Full invoice amount
  • Customer-entered amount
  • Fixed custom amount
  • Scan-to-pay workflow

๐Ÿ“ Notes & QR Alignment

Add notes or a thank-you message to the invoice.

The layout keeps the notes section aligned correctly whether the UPI QR code is visible or hidden.


๐Ÿ—‚๏ธ Invoice History

Save invoices directly in the browser and manage them later.

  • Save invoices
  • Search invoices
  • Edit saved invoices
  • Print saved invoices
  • Delete invoices
  • Local browser storage

๐Ÿ–จ๏ธ Print & PDF Export

Generate a clean print-ready version of your invoice.

  • Print-friendly layout
  • Optimized print stylesheet
  • Save as PDF through the browser print dialog
  • Clean invoice output

๐ŸŽจ Multiple Themes

Choose the visual style that fits your preference.

  • โ˜€๏ธ Light Theme
  • ๐ŸŒ™ Dark Theme
  • ๐ŸŒˆ Gradient Theme

๐Ÿ“ฑ Responsive Design

The application adapts to different screen sizes.

On smaller screens, the editor and invoice preview automatically switch to a clean single-column layout.


๐Ÿ“ธ Complete App Screenshots

1. ๐Ÿ–ฅ๏ธ Full App โ€” Gradient Theme

Full App Gradient

Complete application view with the invoice editor and live preview.


2. ๐Ÿงพ Invoice Preview with QR

Invoice Preview with QR

Generated invoice showing billing information, totals, and UPI payment QR.


3. ๐Ÿ“ Notes + QR Row โ€” QR Visible

Notes QR Row Filled

Notes and UPI QR payment section displayed together.


4. ๐Ÿ“ Notes + QR Row โ€” QR Hidden

Notes QR Row Empty

The notes section remains correctly aligned when the QR code is hidden.


5. ๐ŸŽจ Theme Menu

Theme Menu

Theme and application controls available through the menu.


6. ๐ŸŒ™ Full App โ€” Dark Theme

Full App Dark

Complete application view using the dark theme.


7. ๐Ÿ—‚๏ธ Invoice History

Invoice History

Saved invoices can be searched and managed from the history panel.


8. ๐Ÿ“ฑ Mobile / Responsive View

Mobile View

Responsive single-column layout for smaller screens.


9. ๐Ÿ–จ๏ธ Print / PDF Preview

Print Preview

Print-optimized invoice layout for printing or saving as PDF.


๐Ÿ› ๏ธ Tech Stack

Technology Purpose
HTML5 Application structure
CSS3 Styling, themes, layout, and responsiveness
JavaScript Invoice logic, calculations, history, QR generation, and interactions
CSS Grid / Flexbox Responsive application layout
localStorage Local invoice history and settings
QRCode.js UPI QR code generation
GitHub Pages Static hosting and deployment

๐Ÿ“ฆ Project Structure

smart-invoice-generator/
โ”‚
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ README.md
โ”‚
โ”œโ”€โ”€ 01-full-app-gradient.png
โ”œโ”€โ”€ 02-invoice-preview-with-qr.png
โ”œโ”€โ”€ 03-notes-qr-row-filled.png
โ”œโ”€โ”€ 04-notes-qr-row-empty.png
โ”œโ”€โ”€ 05-theme-menu.png
โ”œโ”€โ”€ 06-full-app-dark.png
โ”œโ”€โ”€ 07-history-panel.png
โ”œโ”€โ”€ 08-mobile-view.png
โ””โ”€โ”€ 09-print-preview.png

The project is intentionally kept simple: the main HTML file contains the application's structure, styling, and JavaScript logic.


๐Ÿš€ Getting Started

Option 1 โ€” Open Directly

  1. Download or clone the repository.
  2. Open the project folder.
  3. Double-click index.html.
  4. The application will open in your browser.
  5. Start creating invoices.

Option 2 โ€” VS Code

  1. Open the project folder in Visual Studio Code.
  2. Open index.html.
  3. Run it in your browser.
  4. Start entering invoice details.

No npm install, build command, or backend server is required.


๐Ÿ“ฅ Clone the Repository

git clone https://github.com/tech-ankit-kumar/smart-invoice-generator.git
cd smart-invoice-generator

Then open index.html in your browser.


๐Ÿงญ How to Use

1. Enter Company Details

Add your business/company information and GSTIN if required.

2. Enter Customer Details

Add the customer's billing information.

3. Add Invoice Items

Enter products or services with quantity and price.

4. Configure Tax & Discount

Apply the required tax and discount values.

5. Add UPI Payment Details

Enter a UPI ID if you want to display a Scan-to-Pay QR code.

6. Add Notes

Add payment instructions, terms, or a thank-you message.

7. Review the Live Preview

Check the invoice as it updates in real time.

8. Save to History

Save the invoice locally so it can be accessed later.

9. Print or Save as PDF

Use the print option to print the invoice or save it as a PDF.


๐Ÿ’พ Data & Privacy

Smart Invoice Generator is designed as a client-side application.

  • No backend server is required.
  • Invoice history is stored locally in the browser.
  • Theme/settings data is stored locally.
  • Invoice information is not uploaded to a project backend.
  • Clearing browser storage can remove locally saved invoice history.

โš ๏ธ Important: Do not enter sensitive information into a public/shared computer or browser profile.


๐Ÿ”— QR Code Library

The application uses QRCode.js for generating UPI QR codes.

<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js" defer></script>

๐Ÿ’ผ Portfolio Highlights

This project demonstrates practical frontend development skills including:

  • Dynamic form handling
  • Real-time UI updates
  • DOM manipulation
  • Invoice calculations
  • Tax and discount calculations
  • Multi-item billing
  • QR code generation
  • Browser localStorage
  • Search and history management
  • Edit/delete workflows
  • Theme switching
  • Responsive web design
  • Print-specific CSS
  • PDF-friendly layouts
  • Single-page application behavior

๐Ÿ”ฎ Future Enhancements

Possible future improvements include:

  • โ˜๏ธ Cloud invoice synchronization
  • ๐Ÿ” User authentication
  • ๐Ÿ—„๏ธ Online database
  • ๐Ÿ“ง Email invoice delivery
  • ๐Ÿ“„ Multiple invoice templates
  • ๐Ÿงพ Recurring invoices
  • ๐Ÿ’ณ More payment methods
  • ๐Ÿ“Š Sales and invoice analytics
  • ๐Ÿ“ค Invoice sharing
  • ๐ŸŒ Multi-currency support
  • ๐ŸŒ Multi-language support
  • ๐Ÿข Business profile management

๐Ÿค Contributing

Suggestions, improvements, and contributions are welcome.

To contribute:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Commit your changes.
  5. Open a pull request.

โญ Support the Project

If you find Smart Invoice Generator useful:

  • โญ Star the repository
  • ๐Ÿด Fork the project
  • ๐Ÿ’ก Suggest improvements
  • ๐Ÿ› Report bugs
  • ๐Ÿ“ข Share the project

๐Ÿ“„ License

This project is created for educational and portfolio purposes.

You are welcome to explore the source code and use it for learning.


๐Ÿ‘จโ€๐Ÿ’ป Author

Ankit Kumar

Smart Invoice Generator โ€” A browser-based invoice creation and management application.


๐Ÿ“Œ Project Summary

Smart Invoice Generator combines:

Live Invoice Creation + Real-Time Preview + Tax & Discount + UPI QR Payments + Invoice History + Themes + Print/PDF Export

into one lightweight browser-based invoicing solution.

๐Ÿงพ Create. Preview. Save. Print.

About

A modern browser-based invoice generator with live preview, GST/tax calculations, UPI QR payments, invoice history, themes, and PDF-ready printing.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages