Bloquinho.app ·
·

A modern code snippet sharing platform that makes it easy to create, edit, and share code snippets with syntax highlighting.
Bloquinho is a web app that allows users to quickly create and share code snippets through simple, memorable URLs. Think of it as a lightweight code editor that's perfect for sharing code examples, debugging sessions, or quick code reviews.
- Instant Creation: Create a new snippet by simply entering a title and navigating to the URL
- Code Editor: Monaco Editor integration with syntax highlighting for multiple programming languages
- Multiple Language Support: Supports JavaScript, TypeScript, Python, Java, SQL, HTML, CSS, PHP, Go, Markdown, and plain text
- Auto-save: Changes are automatically saved as you type
- Clean URLs: Simple, shareable URLs like
bloquinho.com/my-snippet
- Next.js 15 - React framework with App Router
- React 19 - Latest React with improved performance
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first CSS framework
- Monaco Editor - VS Code's web editor for syntax highlighting
- Radix UI - Accessible UI components
- React Hook Form - Performant forms with validation
- Zod - TypeScript-first schema validation
- TanStack Query - Server state management
- Sonner - Toast notifications
- Lucide React - Beautiful icons
- Next.js API Routes - Serverless API endpoints
- MongoDB - NoSQL database
- Resend - Email service
- Biome - Fast formatter and linter
- Docker Compose - Local development environment
- PostCSS - CSS processing
- Node.js v22.11 or greater
- Docker and Docker Compose
- MongoDB (or use Docker)
-
Clone the repository
git clone https://github.com/nidib/bloquinho.git cd bloquinho -
Install dependencies
cd app npm install -
Start the development environment
# Start MongoDB with Docker npm run infra:start # In another terminal, start the development server npm run dev
-
Open your browser Navigate to
http://localhost:3000
Create a .env.local file in the app directory:
# MongoDB
MONGODB_URI=mongodb://mongodb_username:mongodb_password@localhost:27017/main
# Email (Resend)
RESEND_API_KEY=your_resend_api_key
RESEND_FEEDBACK_FROM=email@example.com
RESEND_FEEDBACK_TO=another_email@example.comnpm run dev- Start development servernpm run infra:start- Start MongoDB with Dockernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run Biome linternpm run lint:fix- Fix linting issuesnpm run compile- TypeScript compilation check
The project uses Biome for formatting and linting, configured in biome.json. Run npm run lint:fix to automatically format and fix issues.
The application is designed to be deployed on platforms that support Next.js:
- Fork the repository
- Create your branch following the pattern: {reason}/{package}/description
- Eg:
feat/app/adding-a-cool-new-featurefeat- for new featuresfix- for bug fixesrefactor- for code refactoringdocs- for documentation changestest- for test changeschore- for other changes
- Eg:
- Make your changes. Your commit message should follow the pattern: {reason}({package}): {description}
- Eg:
feat(app): adding a cool new feature
- Eg:
- Run
npm run precommitto check for errors - Submit a pull request
This project is licensed under the MIT License.
Bloquinho - Sharing your snippets easily ✨