Scriptorium
Scriptorium is a robust backend API designed to power modern blogging platforms. Built on the Bun runtime for superior performance, it handles the complete content lifecycle—from user authentication to comment management—while ensuring strict data integrity through Zod validation.
Key Features
- Secure Authentication: Implements a cookie-based session management system for secure login, registration, and logout flows.
- Content Management: Full CRUD operations for blog posts and an interactive commenting system.
- Data Integrity: Utilizes Zod middleware to validate all incoming requests, ensuring only structured data reaches the database.
- Performance Logging: Integrated Morgan logging for real-time request monitoring and debugging.
Tech Stack
- Runtime: Bun
- Framework: Express.js, TypeScript
- Database: PostgreSQL, Prisma ORM
- Validation: Zod
- Utilities: Morgan (Logging), Cookie-parser