Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Web app for organizing code snippets into cheatsheet collections, with a Flask/Python backend and React/TypeScript frontend.
CheatHub is an open-source web tool that organizes code snippets into collections of cheat sheets, built with a Flask/Python REST API and a React/TypeScript frontend. It is a full-stack monorepo where users can create, search, favorite, and share code snippets, and group them into named collections for quick reference. The project is hosted on GitHub, licensed under MIT, and deployed with the frontend on Vercel and the backend API on Heroku.
CheatHub is a web app that lets users store and organize code snippets into collections called cheat sheets. It takes a snippet's title, description, language, code body, optional source URL, and tags as input, and produces a searchable, publicly visible feed of snippet cards, as well as personal collections. The app is built as a clean monorepo: a Flask/Python RESTful backend that writes to a MongoDB Atlas database, and a React/TypeScript frontend bootstrapped with Create React App. The UI includes a landing view, sign-up/sign-in forms, a Collections profile page, and a Snippets search feed. The project is maintained by Joem Elias Sanez and uses Chakra UI for theming, Framer Motion for animations, and react-syntax-highlighter for code display.
After registering, users sign in to receive an access token. They can create snippets through a form; each snippet is saved to MongoDB Atlas via the Flask API. Snippets can then be added to named collections. The Snippets page provides a public feed with a search bar, language and tag filters, and pagination. The backend also blocks tokens on logout using a token blocklist cluster, and frontend state is managed with React hooks and Context.
Yes. CheatHub is an open-source project released under the MIT License, so the code is free to use, modify, and deploy.
The frontend uses React and TypeScript with Create React App, Chakra UI, Framer Motion, and react-syntax-highlighter. The backend is Flask with Flask-RESTful and flask-jwt-extended, and it connects to a MongoDB Atlas database.
Yes. The frontend deploys to Vercel and the backend to Heroku; the README provides subdirectory deployment instructions and local development setup for both the frontend on localhost:3000 and backend on localhost:5000.
Yes, the app supports both dark and light modes using Chakra UI's theming system, and the UI switches between two neutral tone sets.
The README lists planned features including adding query params to all resources, extending the query parser to parse multiple queries at once, optimizing performance by dereferencing database records, user profile pages, friend systems, and snippet sharing.