Tiny Code Share is a lightweight, privacy-focused code sharing tool that lets you instantly share code snippets without any server storage. Your code is never logged or stored on any backend - everything happens client-side in your browser.
- 🔒 Private By Design: Code snippets are never stored on servers
- ⚡ Fast & Straightforward: No sign-ups, no accounts, just share and go
- 🌐 URL Fragment Sharing: Uses the URL fragment (# part) to store and share code
- 🎨 Syntax Highlighting: Automatic language detection for proper syntax highlighting
- 📱 Responsive Design: Works on desktop and mobile devices
- Next.js 15
- React 18
- Monaco Editor for code editing
- highlight.js for syntax highlighting
- LZ-String for code compression
- Node.js 18+
- npm, yarn, or pnpm
-
Clone the repository:
git clone https://github.com/NicoDeGiacomo/tiny-code-share.git cd tiny-code-share -
Install dependencies:
npm install # or yarn install # or pnpm install
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 with your browser to see the application.
- Write or Paste Code: Enter your code in the editor
- Optional Language Selection: Choose a language or let the app detect it automatically
- Generate Link: Click "Generate Link" and share the URL with others
- Privacy Preserved: The code is compressed and stored in the URL fragment (after the #), never sent to our servers
Deploy on Vercel for the best experience:
You can also deploy to any static hosting service like GitHub Pages, Netlify, or Cloudflare Pages.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
