Skip to content
vv1.14.0
Main

🎯 Quick Navigation

New here?Getting Started | Complete ExampleBuilding features?Domain Generator | Template SystemUnderstanding the code?Architecture | Best Practices | Repository PatternSecurity & Infrastructure?Environment | Security & Keys | Database MigrationsAPI & Auth?Identity, Credentials & SSO | Health CheckTesting?Testing GuideDeploying?CI/CD Pipeline | Deployment Guide | Process ManagerNeed help?Troubleshooting

The Web Development "Sweet Spot"

This boilerplate is designed to be the perfect middle ground between high-performance low-level languages and complex enterprise frameworks:

  • Performance: Near Go-like speeds thanks to the Bun runtime.
  • Productivity: Full "batteries-included" experience with CLI scaffolding, i18n, and integrated caching.
  • Maintainability: Clean architecture with zero-dependency TypeScript templates.

See the Full Comparison in the readme.

Continuous Integration

This project utilizes continuous integration to automate checks and builds:

  • CodeQL: Analyzes code for security vulnerabilities.
  • Quality Gate: Automates build, test, and linting processes for the main and staging branches.
  • Release Train: Automates the stabilization process between staging and main.

Project Statistics

Technologies Used

TechnologyDescription
TypescriptA programming language that adds static typing to JavaScript. Facilitates the development of robust and scalable code.
Drizzle-ORMAn Object-Relational Mapping (ORM) library for TypeScript. Simplifies database interactions.
FastifyA fast and low overhead web framework for Node.js.
RedisAn in-memory data structure store, widely used as a cache or message broker. Enhances data storage and retrieval efficiency.
TSXTypeScript Execute. A CLI tool to execute TypeScript files with zero configuration.
TSUPA fast TypeScript bundler tool. Simplifies the build and distribution process.
BiomeA fast all-in-one toolchain for web projects (formatter and linter), used to maintain code quality.
Bun TestA fast test runner for JavaScript and TypeScript projects, used to ensure code quality.
PM2Process manager for Node.js applications that simplifies deployment, management, and monitoring of applications in production.
Status PageMonitors the availability and performance of online services (Uptime Kuma).

Interactive Repository Map

Visualize the project structure and how the different layers interact:

Main Folders (src/)

FolderDescription
commands/Application entry points, process handlers (PM2), and build scripts.
domain/Business logic layer: Entities, Actions, Schemas, and Routes organized by domain.
functions/Shared utilities and helper functions used across the project.
infrastructure/Technical implementation: Cache, Database, Server, i18n, etc.

Infrastructure Details

FolderDescription
cacheRedis implementation for fast data retrieval with TTL support.
languagesInternationalization (i18n) support for multi-language responses.
logsStandardized logging handlers.
messagesMessaging system supporting both Redis (Pub/Sub) and Node.js Events.
migrationsAutomated database schema versioning scripts via Drizzle Kit.
repositoriesData access layer and database connection management.
serverCore Fastify (HTTP) and Scalable WebSockets.
settingsEnvironment variables and application-wide configuration.

Internal References

Observations: This list of folders is not exhaustive. The project may contain other files and directories not listed here. For more detailed information, refer to the specific documentation pages in the sidebar.