DEV Community

Cover image for Introducing Codepit: A Minimal Platform to Share Code Snippets
Jiordi Viera
Jiordi Viera

Posted on

Introducing Codepit: A Minimal Platform to Share Code Snippets

Introducing Codepit: A Minimal Platform to Share Code Snippets

Every developer has a collection of small code snippets saved somewhere — in notes, gists, or random files.

But when it comes to organizing, reusing, and sharing them, things can quickly get messy.

Codepit is a minimal and fast platform to create, share, and organize code snippets in a structured way.

You can try it here: https://codepit.jiordiviera.me


Features

  • Create and edit snippets with language selection and syntax highlighting
  • Organize snippets into collections (public or private)
  • Explore and discover snippets by tags, language, or author
  • Comments, likes, and view counts
  • OAuth authentication (guests can browse, sign-in required for interactions)

Tech Stack

  • Next.js (App Router) + React + TypeScript
  • TailwindCSS v4 with design tokens
  • Prisma + PostgreSQL
  • Monaco Editor for editing, Shiki/Prism for highlighting
  • Better Auth for authentication
  • Bun as runtime

Screenshots


Roadmap

Planned improvements include:

  • Public collections gallery with filters
  • Rich open graph images per snippet
  • Like support for comments
  • Rate-limiting for comment and view tracking

Feedback

Codepit is focused on staying minimal and practical.

I’d love to hear your thoughts:

  • Which features matter most to you when managing snippets?
  • Would you use it for public sharing or private storage?

Comments and suggestions are very welcome.

Top comments (0)