Next QR Code Generator
May 6, 2026 Β· View on GitHub
A addon to generate Chromium-style QR codes featuring the iconic Firefox logo.
π Features
- Chromium-Style QR Codes: Generates QR codes with the exact same styling as Chrome's native implementation
- Firefox Logo Center: Features the Firefox logo in the center of QR codes
- Instant Generation: Automatically generates QR codes for the current page URL
- Custom Text Support: Create QR codes for any text or URL you enter
- One-Click Copy: Copy QR codes to clipboard as high-quality PNG images
- Easy Download: Download QR codes with smart filename generation
- Perfect Sizing: Matches Chrome's exact QR code dimensions and styling
- Dark Mode Support: Seamlessly integrates with your browser's theme
π Installation
From Firefox Add-ons Store
You can install the extension directly from the Firefox Add-ons Store.
Manual Installation (Development)
-
Clone the repository
git clone https://github.com/chromium-style-qrcode/next-qrcode-generator.git cd next-qrcode-generator -
Install dependencies
pnpm install -
Build the extension
pnpm build -
Load in Firefox
- Open Firefox and navigate to
about:debugging#/runtime/this-firefox - Click "Load Temporary Add-on"
- Select the
manifest.jsonfile from the.output/firefox-mv2folder
- Open Firefox and navigate to
π― Usage
- Access the Extension: Click the QR code icon in your browser's toolbar
- Shortcut Access: Use the shortcut
Alt+Shift+Q(Windows/Linux) orβ₯β§Q(Mac) to quickly open the extension - Auto-Fill Current URL: The extension automatically loads the current page's URL
- Custom Text: Replace the URL with any text you want to convert to a QR code
- Copy to Clipboard: Click the "Copy" button to copy the QR code as an image
- Download: Click "Download" to save the QR code as a PNG file
Note: If the shortcut does not work in Firefox, go to
about:addonsβ Click the gear icon in the top right β "Manage Extension Shortcuts" to check or reconfigure the shortcut.
π οΈ Technology Stack
- Framework: WXT - Modern web extension framework
- Frontend: React 19 + TypeScript
- Styling: Tailwind CSS 4.0 + Radix UI components
- QR Generation: WebAssembly (WASM) module for Chromium-exact QR code generation
- Build System: Vite + Rollup
- Package Manager: pnpm
π§ Development
Prerequisites
- Node.js β₯ 22.18.0
- pnpm β₯ 10.33.4
Development Commands
# Start development server
pnpm dev
# Build for production
pnpm build
# Create distribution zip
pnpm zip
# Type checking
pnpm compile
# Format code
pnpm format
# Generate/update CHANGELOG.md from Conventional Commits (latest changes)
pnpm changelog
# Initialize (regenerate for all history)
pnpm changelog:init
Project Structure
src/
βββ components/
β βββ ui/ # Reusable UI components
βββ hooks/
β βββ use-qrcode.ts # QR code generation logic
β βββ use-dark-mode.ts
βββ lib/
β βββ wasm-loader.ts # WASM module loader
β βββ utils.ts
βββ popup/
β βββ App.tsx # Main popup component
β βββ main.tsx # Entry point
βββ providers/
β βββ theme.tsx # Theme provider
βββ styles/
β βββ base.css # Global styles
βββ types/ # TypeScript type definitions
π¨ Features in Detail
Chromium-Exact QR Generation
The extension uses a WebAssembly module that replicates Chrome's native QR code generation algorithm, ensuring:
- Identical visual appearance to Chrome's built-in QR codes
- Same module styling (circles vs squares)
- Rounded locator patterns
- Exact sizing and margins
Smart Filename Generation
Downloaded QR codes automatically get meaningful filenames:
qrcode_example.com.pngfor domain namesqrcode_firefox.pngfor other content
Accessibility
- Full keyboard navigation support
- Screen reader compatible
- High contrast mode support
- Proper ARIA labels and descriptions
π Releases
This project uses automated releases through GitHub Actions.
Creating a Release
# Stable release (publish to store)
pnpm version 1.0.0
git push origin main
git push origin 1.0.0
# Pre-release (GitHub only)
pnpm version prerelease --preid='[alphaο½beta|rc]'
git push origin main
git push origin 1.0.0-alpha.0
Version Types
- Stable (1.0.0): Auto-published to Firefox Add-ons Store
- Alpha/Beta/RC (1.0.0-alpha.0): GitHub releases only for testing
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Development Guidelines
- Follow the existing code style
- Add TypeScript types for new features
- Test on Firefox
- Update documentation as needed
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
- Chrome team for the original QR code implementation
- WXT for the excellent extension framework
- Radix UI for accessible components
- Tailwind CSS for styling utilities
π Support
If you encounter any issues or have questions:
- Open an issue on GitHub