stacks-routes
OfficialOrganize Stacks routes with clarity.
Authorstacksjs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Defines and organizes route files and their registrations in a Stacks application, ensuring routes are discovered, loaded, and managed from a central registry.
Core Features & Use Cases
- Route Registry & Prefixing: Maps route files to URL prefixes via an app/Routes.ts registry, enabling clean, scalable routing.
- Route File Creation & Grouping: Define routes in routes/ with inline handlers or controllers, and group them with shared middleware for consistency.
- Versioned & Health Routes: Support for versioned route modules (e.g., routes/v1.ts) and automatic health checks for observability.
- Best Practices: Ensure route files are registered in app/Routes.ts to be loaded by the router system.
Quick Start
Create a new API route file under routes/api.ts and register it in app/Routes.ts to begin defining endpoints.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: stacks-routes Download link: https://github.com/stacksjs/stacks/archive/main.zip#stacks-routes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.