Skip to content
BuiltByNeerajPublic

About

Cheque-style billing app with GST calculations, printable bills, payment tracking, and JSON/SQL backups. Built with vanilla HTML, CSS, and JavaScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InkPatra — Creative Invoice Studio

Every Bill Tells a Story.
Developed by CodeYantra Technologies.

InkPatra is a browser-based invoice studio that combines a cheque-book interface with GST calculations, numbered bill records, and printable cheque-style layouts. Built with HTML, CSS, and JavaScript, with a Python + SQLite local backend, no runtime third-party dependencies, and no frontend build step. Linux is the current target platform.

License: GPL-3.0-or-later · free software, no warranty · see docs/licensing.md

Issued cheque-style bill with counterfoil and GST breakdown (cheque template)

Branding

InkPatra is the software; CodeYantra Technologies is its developer; the CYT postage-style stamp is an optional design element of the Postcard template. The seller is always the business you configure in Settings / Profile — InkPatra and CodeYantra never replace it. Details: docs/branding.md.

Features

  • Six invoice styles: Cheque (default), Wedding, Funeral Farewell, Vintage Postcard, Medical Prescription (Rx) and Vintage Telegram. See the template gallery with screenshots.

  • Medical Prescription (Rx) template: clinic-style header, patient block, ℞ symbol and medicine/service table; labelled as a billing document, not a prescription.

  • Vintage Telegram template: punched-tape borders and an all-capitals message with STOP markers; saved GST shown unchanged.

  • Vintage Postcard — Typewriter template: a typewritten postcard (A5 or scaled onto A4) with seller + invoice on the left and customer, a hideable CodeYantra monochrome stamp and a dynamic BILLED cancellation mark on the right; numbered continuation cards for long invoices, saved GST shown unchanged and no compliance claim. See the Postcard guide.

  • Funeral Farewell template: Respectful Farewell by default, with an explicitly selected Dark Humor novelty mode. Saved taxes stay unchanged, with a separate exemption-review reminder. See the Funeral Farewell guide.

  • Optional Wedding Invitation template: Elegant and Playful modes, responsive preview, A4 printing, RSVP contacts, and optional itemisation of existing saved amounts. Cheque Style remains the default. See the wedding template guide.

  • Cheque-style bills: Printable leaves with a counterfoil, boxed date, amount in words, signature area, and decorative MICR-style band.

  • GST calculations: Optional GST with preset or custom rates, CGST + SGST for intra-state bills, and IGST for inter-state bills.

  • Business profile: Configure the issuer name, address, GSTIN, currency symbol, logo, and legal footer.

  • Numbered bill book: Set a serial range, issue bills sequentially, and track issued, paid, and void records.

  • Searchable register: Find bills by payee, memo, number, or GSTIN; filter by status and GST applicability.

  • Payment details: Record bill dates and payment due dates, and mark bills as paid or void.

  • Persistent local records: SQLite stores settings and invoices outside the repository and browser profile.

  • Data tools: Export JSON or SQL data, import without overwriting invoices, and create verified full SQLite backups with recovery-safe restore. The existing console inspects a read-only browser snapshot.

  • Print support: Print a bill through the browser or save it as a PDF using the browser's print dialog.

Getting started

Run the browser application

Use Python 3 on Linux:

git clone https://github.com/BuiltByNeeraj/InkPatra.git
cd InkPatra
python3 server.py 8080

Open 127.0.0.1:8080. Keep the server running while using the app. Start it again after reboot; saved records remain on disk. No package installation is required.

The local Python backend is required; direct file opening and static hosting do not support saves. Use 127.0.0.1, not localhost, because the server validates its exact Host and Origin.

For existing browser records, export JSON from the old app at its original URL first. Migration is explicit and never clears localStorage. See the Linux migration, backup, restore, and acceptance guide.

Create your first bill

  1. Open Settings / Profile, enter your business details, set the cheque number range and GST defaults, and save.
  2. In Book, select Issue New Cheque-Bill.
  3. Enter the payee, bill date, due date, amount, and any GST details.
  4. Issue the bill, then open its leaf to preview or print it.
  5. Use Register to search records and update payment status.
  6. Export a backup from Settings / Profile before clearing browser data or moving to another device.

Screenshots

Business profile

Configure business details, tax defaults, and the numbered book range.

Business profile and book settings

Create a bill

Enter payee and payment details and review the GST calculation.

Bill creation form

Paid bill

The printable bill reflects its payment status.

Cheque-style bill marked paid

The issued bill preview appears at the top of this README. All screenshots are stored in docs/screenshots/.

Invoice templates

Every template shows the same saved invoice. Full-size images and notes are in the template gallery.

Wedding — Elegant Funeral Farewell
Wedding Elegant Funeral Farewell
Wedding — Playful Medical Prescription (Rx)
Wedding Playful Medical Prescription

Vintage Postcard — Typewriter

Vintage Telegram

Storage and database behavior

Compatibility note: the product is now InkPatra, but the data folder (cheque-style-bill-book), database file (billbook.sqlite3), API routes, backup file names and template IDs deliberately keep their original names so existing installations and backups keep working. See docs/branding.md.

The backend uses Python's standard sqlite3 module and stores the database at:

${XDG_DATA_HOME:-$HOME/.local/share}/cheque-style-bill-book/billbook.sqlite3

Invoice numbering and inserts are committed together. Duplicate and voided numbers cannot be overwritten. Imports are atomic and reject conflicts. GST calculations and the cheque template retain their existing behavior and layout.

Browser localStorage is used only as an explicitly approved migration source. It is never modified by the new application. JSON exports remain available; full SQLite backup/restore commands verify integrity and preserve a recovery backup before restoration. Read the operations guide before migrating or restoring customer data.

The server listens only on 127.0.0.1, validates Host and Origin, requires CSRF protection on writes, and exposes no SQL execution API. The SQLite DB console queries the loaded browser snapshot only.

Project structure

InkPatra/
├── index.html          # Application views, forms, and dialogs
├── styles.css          # Interface, cheque layout, and print styles
├── invoice-templates.js # Pure invoice model and wedding renderer
├── invoice-preview.js   # Template selectors, preview, and optional details editor
├── invoice-templates.css # Wedding screen and A4 print styles
├── funeral-templates.* / postcard-templates.* / medical-templates.* / telegram-templates.*  # Template renderers and styles
├── LICENSE             # GNU GPL v3 full text
├── wedding-floral.svg    # Local decorative floral asset
├── app.js              # Billing workflow, GST calculations, and rendering
├── sqlite-engine.js    # Backend adapter, snapshot query support, and SQL export
├── server.py           # Protected loopback HTTP server and operations CLI
├── storage.py          # Transactional SQLite persistence, import, backup, restore
├── tests/              # Persistence, security, frontend, GST, and browser tests
├── docs/
│   ├── screenshots/    # Application and template screenshots used in this README
│   ├── invoice-templates.md # Template gallery
│   ├── licensing.md    # License details and contribution terms
│   └── linux-local-storage.md # Migration, operations, and acceptance guide
└── README.md

Technology

Layer Implementation
Interface HTML5 and CSS3
Application logic Vanilla JavaScript
Persistence File-backed SQLite in the Linux application data directory
Local backend Python 3 standard library: http.server and sqlite3
Printing Browser print dialog and print-specific CSS

Verification

PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -v
node tests/frontend.test.js
node tests/templates.test.js
node tests/funeral.test.js
node tests/postcard.test.js
node tests/medical.test.js
node tests/telegram.test.js

Node.js is needed only for frontend tests. Optional Chromium integration checks and manual acceptance steps are documented in the Linux guide.

Contributing

Open an issue to report a bug or suggest an improvement. For a pull request, describe the change, include screenshots for interface updates, and explain how you verified the affected workflow.

License

InkPatra — Creative Invoice Studio is free software, copyright © 2026 Neeraj Mishra (@builtbyneeraj) and CodeYantra Technologies, licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). The full text is in LICENSE.

  • You may use, modify and redistribute it; distributed versions must stay under the same licence with source available.
  • It comes with no warranty.
  • Your invoices and data are yours and are not covered by the GPL.
  • Source files carry an SPDX header (except the two hash-guarded baseline stylesheets, covered by LICENSE); the licence is also stated in the app's About text, docs/branding.md and docs/licensing.md.
  • Developed and maintained by Neeraj Mishra (GitHub: builtbyneeraj); CodeYantra Technologies is the company behind the project.
  • Contributions are accepted under the same licence.

About

Cheque-style billing app with GST calculations, printable bills, payment tracking, and JSON/SQL backups. Built with vanilla HTML, CSS, and JavaScript.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages