A secure, production-ready code snippet manager API built with NestJS and Clean Architecture.
DevVault is a robust backend API that functions similarly to GitHub Gists. It allows developers to create, manage, and share code snippets securely. It is engineered with a focus on scalability, security, and maintainability using strict Clean Architecture principles.
- 🔐 Secure Authentication: JWT-based auth with Passport.js and Bcrypt password hashing.
- 🛡️ Role-Based Access: - Public Feed: Accessible to everyone.
- Private Vault: Users can manage only their own snippets.
- Ownership Logic: You cannot update or delete snippets that don't belong to you.
- 👁️ Visibility Scopes: Mark snippets as
PUBLIC(shared with the world) orPRIVATE(personal usage). - 🏷️ Tagging System: Search and filter snippets by tags (e.g.,
react,auth,algorithm). - ⚡ High Performance: Built on Fastify (instead of Express) for low-overhead request processing.
- 🗑️ Soft Deletion: Data is securely hidden rather than permanently destroyed.
- 📚 OpenAPI/Swagger: Fully documented API endpoints with interactive UI.
- Framework: NestJS (Fastify Adapter)
- Language: TypeScript
- Database: MySQL / TiDB
- ORM: TypeORM
- Validation: class-validator & class-transformer
- Containerization: Docker (for local development)
- DevVault includes a fully interactive Swagger UI..
- Start the server.
- Visit https://dev-vault-n8pu.onrender.com/api in your browser.
You can test all endpoints (Auth, Snippets, Tags) directly from the interface.