title: Hugging Face QR Code Generator
emoji: π€
colorFrom: yellow
colorTo: red
sdk: docker
pinned: false
license: mit
app_port: 7860
Hugging Face QR Code Generator π€
A beautiful and responsive web application that generates QR codes for Hugging Face profiles, models, datasets, and spaces. Create stunning, shareable QR codes with custom designs that perfectly represent your Hugging Face identity.
Features β¨
- Profile QR Codes: Generate QR codes for any Hugging Face user profile
- Resource Support: Create QR codes for models, datasets, and spaces
- Beautiful Design: Modern, clean interface with animated gradients
- Responsive: Works perfectly on all devices - desktop, tablet, and mobile
- Multiple Export Options: Download as image, copy to clipboard, or share directly
- Social Sharing: Built-in sharing to Twitter/X, LinkedIn, and Facebook
- Dark Mode Support: Automatically adapts to your system preferences
How to Use π
Enter a Hugging Face URL or username:
- Full URL:
https://huggingface.co/username - Just username:
username - Model URL:
https://huggingface.co/username/model-name - Dataset URL:
https://huggingface.co/datasets/username/dataset-name - Space URL:
https://huggingface.co/spaces/username/space-name
- Full URL:
Click "Generate QR Code" to create your custom QR code
Customize and Share:
- Click the background to cycle through different gradient colors
- Download the complete design or just the QR code
- Copy to clipboard for easy sharing
- Share directly to social media
Technology Stack π οΈ
- Framework: Next.js 16 with App Router
- Language: TypeScript
- Styling: Tailwind CSS + Custom CSS
- UI Components: shadcn/ui
- QR Generation: qrcode.js
- Image Export: html-to-image
- Icons: Lucide React + React Icons
Local Development π»
Prerequisites
- Node.js 20 or higher
- npm or yarn package manager
Installation
- Clone the repository:
git clone https://github.com/yourusername/huggingface-qr-generator.git
cd huggingface-qr-generator
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser
Build for Production
npm run build
npm run start
Docker Deployment π³
Build and Run with Docker
- Build the Docker image:
docker build -t hf-qr-generator .
- Run the container:
docker run -p 7860:7860 hf-qr-generator
- Access the application at http://localhost:7860
Deploy to Hugging Face Spaces
This application is configured for easy deployment to Hugging Face Spaces:
- Create a new Space on Hugging Face
- Choose "Docker" as the SDK
- Push this repository to your Space
- The application will automatically build and deploy
Environment Variables π
No environment variables are required for basic functionality. The application uses Next.js API routes to handle CORS and proxy requests.
API Routes π
/api/huggingface- Fetches Hugging Face profile data/api/proxy-image- Proxies avatar images to avoid CORS issues
Browser Support π
- Chrome/Edge (latest 2 versions)
- Firefox (latest 2 versions)
- Safari (latest 2 versions)
- Mobile browsers (iOS Safari, Chrome Mobile)
Contributing π€
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License π
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments π
- Hugging Face for the amazing platform and API
- shadcn/ui for the beautiful UI components
- The Next.js team for the excellent framework
- All contributors and users of this application
Support π¬
If you encounter any issues or have questions:
- Open an issue on GitHub
- Contact through Hugging Face Spaces discussions
Made with β€οΈ for the Hugging Face community