Invoice Tools Website Script · version 1.0.0

Documentation

A ready-made website with 19 business document tools: GST invoice, quotation, purchase order, delivery challan, salary slip, HR letters, agreements, registers and simple books. Plain HTML, CSS and JavaScript: no WordPress, no database. The documents are made in the visitor's own browser.

Author: Bhavin J. Sheth · Works on any web hosting (PHP only for the optional AI drafting) · License: GPLv2 or later

1. What is in the download

website/The website. Upload the contents of this folder.
documentation/This guide.
licensing/The GPL license and the font licenses.
README-FIRST.txtThe quick steps.

Inside website/: index.html (home with all tools and search), tools/ (one folder per tool), about.html, privacy.html, contact.html, 404.html, config.js (your settings), sitemap.xml, robots.txt, assets/ and api/ (only for the optional AI drafting).

2. Requirements

3. Upload to your hosting

  1. Unzip the download on your computer.
  2. Upload everything inside the website folder to your site's folder, for example public_html (Hostinger: hPanel > File Manager > public_html > Upload). You can also upload a zip of it and use Extract.
  3. Open your domain. The home page lists all tools. Open one and press Example to test it.
  4. Edit config.js to set your site name and colors (next section).

The site also works in a sub-folder, for example example.com/tools-site/: all links are relative.

Home page with search and the tools by category
The home page: search, category chips and every tool.

4. Settings (config.js)

Open config.js in any text editor (Hostinger File Manager has one), change the values, save. Keep the quotes and commas.

siteName, taglineShown in the header, footer and browser tab.
logoImageOptional logo, e.g. 'assets/logo.png' (about 32 px high). Without it, four colored dots are shown.
contactEmail, footerTextContact and Privacy pages; an extra footer line.
mode, themeToggleLight, dark or follow the device; show the visitor switch.
accent, light, darkYour colors (hex). Empty values keep the built-in ones. Readable text shades are worked out from your accent.
font, textSize, radiusIncluded Space Grotesk headings or the device font; tool size 90–120%; corner radius.
hiddenToolsTools to hide (section 6).
ai, aiVisitorKeys, aiApiOptional AI drafting (section 8). Off by default.
adsAd code for the head, above and below each tool, and the home page (section 7).
footerLinksThe links in the footer.

5. Editing pages and text

How-to steps, privacy note and related tools under a tool

6. Hiding tools

Add the folder name to hiddenTools, for example hiddenTools: ['register-maker', 'accounting-software']. The tool disappears from the home page and related lists, and its page shows a short notice. To remove a tool completely, also delete its folder and its line in sitemap.xml.

7. Adding ads

Paste your ad network's code between the backticks in ads: head (loaded once per page, e.g. the AdSense script), top and bottom (around each tool) and home. Empty means no ads. If you add ads, update your privacy page: ad networks may set cookies.

8. AI drafting for agreements (optional)

The Contract & Agreement, Partnership Deed and Joint Venture Agreement tools always include a standard template that is filled in the visitor's browser, with no AI and nothing sent anywhere. That is how they work out of the box.

You can also show a Write with AI button, which writes a tailored draft in 16 languages with Google Gemini or OpenRouter. There are two ways, and you can use both:

A. Your key on your server (needs PHP 7.4+)

  1. Get a key: https://aistudio.google.com/app/apikey (Gemini, has a free tier) and/or https://openrouter.ai/keys.
  2. Open api/config.php, paste the key, set 'enabled' => true, and check the limits (default: 10 drafts per visitor per hour, 30 per day, 600 AI calls per day for the whole site).
  3. In config.js set ai: true.
  4. Make sure PHP can write to api/data/ (permission 755 is usually enough).
  5. Test: open yourdomain.com/api/ai.php/agreement/status; it should show "gemini":true or "openrouter":true. Then press Write with AI on the agreement page.

Keep your key safe: never put a key in config.js or any .html file – anyone can read those. api/config.php runs on the server and is never shown to visitors; api/.htaccess also blocks it, and the lib and data folders, on Apache and LiteSpeed. On nginx add: location ~ ^/api/(config\.php|lib/|data/) { deny all; }. You can also set the environment variables AIOT_GEMINI_API_KEY / AIOT_OPENROUTER_API_KEY instead of writing the key in the file.

The endpoint answers only requests that come from your tool page, turns away common bots, and counts usage with a salted hash of the visitor's IP address (never the address itself) in api/data/; the counters expire within a day.

B. Visitors' own keys (no PHP needed)

Set aiVisitorKeys: true. Visitors can paste their own free Gemini or OpenRouter key. It stays in their browser tab and is sent from their browser straight to the AI; it never reaches your site and costs you nothing. With A switched on as well, visitors are offered their own key when your limit is reached.

When either is on, the agreement details a visitor sends with Write with AI go to the AI service. Keep the AI paragraph in privacy.html. AI drafts can contain mistakes; the tools advise having agreements checked by a lawyer.

Agreement generator with the standard template
The standard template works without AI.

9. SEO: sitemap, titles, content

10. All 19 tools

Tool and folderWhat it doesDownloads
Billing6 tools
GST Invoice Generator
tools/invoice-generator/
Make a tax invoice or bill of supply with CGST, SGST or IGST and a tax summary by HSN.Word .docx, PDF/print
Proforma Invoice Generator
tools/proforma-invoice-generator/
Send a proforma invoice before the sale, with GST, advance and validity.Word .docx, PDF/print
Quotation Generator
tools/quotation-generator/
Price quotes with items, GST, discounts, validity date and terms.Word .docx, PDF/print
Estimate Generator
tools/estimate-generator/
Cost estimates for jobs and projects, split into sections, with GST.Word .docx, PDF/print
Payment Receipt Generator
tools/payment-receipt-generator/
Receipts for payments, rent or advances, with the amount in words.Word .docx, PDF/print
Credit & Debit Note Generator
tools/credit-debit-note-generator/
Adjust an earlier invoice with a credit or debit note and the GST change.Word .docx, PDF/print
Orders & Delivery4 tools
Purchase Order Generator
tools/purchase-order-maker/
Order goods from a supplier with items, GST, delivery date and terms.Word .docx, PDF/print
Work Order Generator
tools/work-order-maker/
Give a contractor a work order with scope, site, dates and rates.Word .docx, PDF/print
Delivery Challan Generator
tools/delivery-challan-generator/
Send goods without a sale, for job work or approval, with transport details.Word .docx, PDF/print
Stock Transfer Note Generator
tools/stock-transfer-note-generator/
Move stock between your branches, godowns or warehouses.Word .docx, PDF/print
HR Letters & Payslips3 tools
Salary Slip Generator
tools/salary-slip-generator/
Monthly payslips with PF, ESI, loss of pay and net pay in words.Word .docx, PDF/print
Appointment Letter Generator
tools/appointment-letter-generator/
Offer and appointment letters with a salary table and terms.Word .docx, PDF/print
Experience Letter Generator
tools/work-experience-letter-generator/
Experience, relieving and internship letters.Word .docx, PDF/print
Agreements3 tools
Contract & Agreement Generator
tools/agreement-generator/
14 agreement types, from service and rent to loan, NDA and MOU.Word .docx, PDF/print
Partnership Deed Generator
tools/partnership-deed-generator/
Deeds for a new firm, a change of partners or dissolution.Word .docx, PDF/print
Joint Venture Agreement Generator
tools/joint-venture-agreement-generator/
Agreements for a joint project or a tender bid.Word .docx, PDF/print
Registers & Books3 tools
Register Maker
tools/register-maker/
Sales, purchase, inward, outward and cash book registers; stock is worked out.Excel .xlsx, CSV, PDF/print, backup
Project Expense Tracker
tools/project-expense-tracker/
Expenses and payments by project, with budgets and reports.Excel .xlsx, CSV, PDF/print, backup
Accounting Books
tools/accounting-software/
Simple double-entry books: ledgers, vouchers, P&L and balance sheet.Excel .xlsx, CSV, PDF/print, backup

The 13 billing, order and HR tools have a Design panel (5 ready-made styles and per-part styling), logo, letterhead and signature images, Example, Recent and New. Registers and books work like a spreadsheet.

GST invoice generator
Quotation generator in dark mode
Accounting books: balance sheet

11. Word, PDF and Excel files

12. Privacy

Privacy page

13. Browsers and limits

Three tools on a phone

14. FAQ and troubleshooting

The site shows without styles, or tools do nothing.
Upload the contents of website/ with all folders (assets, tools). Clear your hosting or CDN cache.
My changes to config.js don't show.
Check the quotes and commas, then reload with Ctrl+F5. Browsers keep a copy for a while.
"Write with AI" is not shown.
AI is off by default: see section 8.
Write with AI says the engines are busy or failed.
Open api/ai.php/agreement/status. Check the key, that 'enabled' => true, that api/data is writable, that your host allows outgoing HTTPS (curl), and the provider's quota. Visitors can always use the standard template.
The PDF has no colors.
Turn on "Background graphics" in the print window.
The 404 page is not used.
On Apache/LiteSpeed remove the # before ErrorDocument in .htaccess when the site is at the domain root.

15. Updating

Download the new version, then upload the new files over the old ones, except your config.js, api/config.php, and any page text you changed (about, privacy, contact, edited tool pages). Compare first if a release note says those files changed.

16. Support

Questions about the features, help with reported bugs and with the included files: write to the address on the product page. Customization and hosting setup are not included. Please include your site's address, which tool, your browser and a screenshot. Please don't send customer documents.

17. Credits and licenses

18. Changelog

1.0.0 — First release: 19 tools, home with search, tool pages with how-to steps and related tools, About/Privacy/Contact/404, config.js settings, light/dark/auto, ads slots, optional AI drafting (your key on the server, or visitors' own keys).