Skip to content

A secure, production-ready code snippet manager API built with NestJS and Clean Architecture

Notifications You must be signed in to change notification settings

fomongole/Dev-Vault

Repository files navigation

Nest Logo

DevVault API

A secure, production-ready code snippet manager API built with NestJS and Clean Architecture.

License Node.js Database Swagger


📖 Overview

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.

✨ Key Features

  • 🔐 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) or PRIVATE (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.

🛠️ Tech Stack

  • Framework: NestJS (Fastify Adapter)
  • Language: TypeScript
  • Database: MySQL / TiDB
  • ORM: TypeORM
  • Validation: class-validator & class-transformer
  • Containerization: Docker (for local development)

📚 API Documentation

You can test all endpoints (Auth, Snippets, Tags) directly from the interface.

About

A secure, production-ready code snippet manager API built with NestJS and Clean Architecture

Topics

Resources

Stars

Watchers

Forks