@damatjs/framework
Damatjs framework for handling everything
- @damatjs/framework — Internals
@damatjs/framework — Internals Maintainer notes for the core framework. This index gives the module map, the end-to-end boot/request flow, and the global invariants; the split docs cover each concern in depth. Module map File / dir | Respon
- Bootstrap
Bootstrap Source: , driven by , types in . Responsibility assembles a ready-to-serve Hono from config, route directory, and (optional) health checks. It is the step between "services are initialized" and "start the server". It does not star
- Config
Config Source: — , , . Responsibility Define and load the application configuration ( ). is an identity helper that gives you type-checking and inference; dynamically imports the config file at runtime and caches it. Pure identity — its onl
- Handlers (built-in routes)
Handlers (built-in routes) Source: — , , , . Responsibility A small set of framework-provided routes mounted by (separate from the file-based application routes). Each factory returns a fresh sub-app that gets -mounted. Factory | Mounted wh
- Middleware
Middleware Source: — , , , , , , , . Responsibility Two kinds of middleware: - Global — installed once on the app by (security headers, timing, request setup, CORS, error wrapper). - Per-route — factories the router attaches to specific met
- Router (file-based routing)
Router (file-based routing) Source: — , , , , , . Responsibility Turn a directory of files into a mounted Hono router. The router maps folder structure to URL paths, attaches per-route middleware, rate limiting, auth, and validation, and ex
- Server & shutdown
Server & shutdown Source: , , and . Server starts the Hono app through , passing and optional . It returns a : is idempotent. It waits for a server that is still starting, closes the listener, and shares one promise across repeated calls. T
- Services (wiring)
Services (wiring) Source: — , shared service adapters, and stages for database, Redis, modules, auth, durability, wakeups, jobs, and durable events. Responsibility brings up the shared application layer before optional HTTP: logger, Postgre