Back to projects
Dec 2024
3 min read

Barcoda - Barcode + QR Generator & Code Scanner

πŸ“Š Modern barcode + QR code generator with built-in code scanner, powered by JsBarcode, html5-qrcode, and qr-code-styling. Built with Next.js, Tailwind, and shadcn/ui β€” customizable.

coverImage


☁️ Deploy your own


✨ Features

  • Real-time Preview β€” Instant visual feedback while editing.
  • Multi-format Support β€” CODE128, EAN13, UPC, CODE39, and more.
  • Flexible Customization β€” Size, margin, colors, text, font, and alignment.
  • Export Options β€” PNG, JPEG, WebP, SVG (including raw SVG export).
  • QR Styling β€” Dots, corners, rounded shapes, logos, and error correction.
  • Scan & Upload β€” Scanning and image upload are supported via html5-qrcode.
  • Responsive & Accessible UI β€” Built with Tailwind CSS and shadcn/ui; supports dark/light mode.
  • Free & Open Source β€” MIT licensed; contributions welcome.

🧱 Tech Stack

  • Next.js: React framework for building performant web applications.
  • Tailwind CSS: Utility-first CSS framework for rapid UI development.
  • Shadcn UI: Re-usable components built using Radix UI and Tailwind CSS.
  • JsBarcode: JavaScript barcode generator.
  • html5-qrcode: Lightweight camera + image scanner for QR codes and barcodes (used for Code Scanner).
  • qr-code-styling: Highly customizable QR generator with styling, logos, and multiple export formats.

⚑ Getting Started

Clone the repo, install deps, and boot the dev server:

git clone https://github.com/KurutoDenzeru/Barcoda.git
cd Barcoda
bun install
bun run dev

Open http://localhost:3000 to view the app.


πŸ“¦ Build for Production

bun run build
bun start

πŸ—‚οΈ Configuration

The editor is componentized under src/components. Key areas to customize are:

app/                        # Next.js App Router pages & layouts
  page.tsx                  # Main page that mounts QRBarcodeGenerator
  layout.tsx                # Global layout, fonts, metadata (Open Graph, structured data)
  qr-barcode-generator/     # QR & Barcode features (generator, scanner, types)
    index.tsx               # Page integration (tabs/navigation)
    barcode-generator.tsx   # JsBarcode-based barcode generator
    qr-generator.tsx        # QR generator using qr-code-styling (styling, logos, export)
    code-scanner.tsx        # Scanner using html5-qrcode (camera & image scan)
    types.ts                # Types, defaults, and settings
lib/                        # Utilities and helpers
  utils.ts                  # Helper functions

🀝🏻 Contributing

Contributions are always welcome, whether you’re fixing bugs, improving docs, or shipping new features that make the project better for everyone.

Check out Contributing.md to learn how to get started and follow the recommended workflow.


βš–οΈ License

This project is released under the MIT License, giving you the freedom to use, modify, and distribute the code with minimal restrictions.

For the full legal text, see the MIT file.