0d4a9fc2f8611a734672e616a25133df4f81e9a0
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Roadworthiness Sticker Generator
A web-based tool for generating vehicle roadworthiness stickers. Built with vanilla HTML, CSS, and JavaScript - no backend required. Perfect for hosting on GitHub Pages.
Features
- Material Design UI with dark/light theme (follows system preference)
- Mobile and desktop responsive
- Multiple garage/template support
- Live sticker preview
- PDF export
- Auto-generated barcodes
- Easy template system (HTML + CSS per template)
Quick Start
- Clone the repository
- Serve the files with any static server:
# Python python -m http.server 8080 # Node.js npx serve - Open
http://localhost:8080in your browser
Deployment
GitHub Pages
- Push to your GitHub repository
- Go to Settings > Pages
- Select your branch (e.g.,
main) and click Save - Access at
https://<username>.github.io/<repo-name>/
Other Static Hosts
Works with any static hosting: Netlify, Vercel, Cloudflare Pages, etc. Just upload the files.
Project Structure
├── index.html # Main application
├── styles.css # App styles (Material Design)
├── app.js # Application logic
├── templates/ # Sticker templates
│ ├── index.json # Template registry
│ ├── rs-auto.html # RS AUTO template
│ ├── rs-auto.css # RS AUTO styles
│ ├── motca.html # Ministry template
│ └── motca.css # Ministry styles
└── docs/ # Documentation
└── adding-templates.md
Adding New Templates
See docs/adding-templates.md for detailed instructions.
Quick version:
- Create
templates/your-template.htmlwith placeholders like{{regNumber}} - Create
templates/your-template.csswith styles - Add entry to
templates/index.json
Available Placeholders
| Placeholder | Description |
|---|---|
{{regNumber}} |
Vehicle registration (formatted with spaces) |
{{barcodeNumber}} |
Generated barcode number |
{{fromDate}} |
Start date (DD-MM-YYYY) |
{{toDate}} |
End date (DD-MM-YYYY) |
{{modelNumber}} |
Vehicle model number |
{{chassisNumber}} |
Chassis/VIN number |
{{engineSerial}} |
Engine serial number |
{{engineCapacity}} |
Engine capacity (CC) |
Browser Support
Modern browsers with ES6+ support:
- Chrome/Edge 80+
- Firefox 75+
- Safari 13+
Dependencies
All loaded via CDN (no npm required):
- JsBarcode - Barcode generation
- jsPDF - PDF creation
- html2canvas - HTML to image conversion
- Google Fonts - Roboto font & Material Icons
License
MIT
Description
Roadworthy stickers for unworthy roads - if they can't fix the potholes, they can't spot the difference
https://rsg.shihaam.me/
Languages
CSS
43.9%
JavaScript
30.6%
HTML
25.5%