Skip to content

feat(reference-server): add extensibility support for custom implementations#46

Open
horner wants to merge 1 commit intomainfrom
feat/server-extensibility
Open

feat(reference-server): add extensibility support for custom implementations#46
horner wants to merge 1 commit intomainfrom
feat/server-extensibility

Conversation

@horner
Copy link
Copy Markdown
Member

@horner horner commented Jan 4, 2026

  • Add ServerOptions interface for comprehensive server customization
  • Add AuthHandler type for custom authentication (JWT, API keys, etc.)
  • Add lifecycle hooks: onBeforeRoutes and onAfterRoutes
  • Export individual route plugins for selective registration
  • Add package.json exports for types, util, and routes
  • Make routes, static serving, and docs conditionally registerable
  • Add route prefix support for API versioning
  • Update tsconfig for proper declaration generation
  • Add comprehensive Extensibility documentation to README

This enables downstream projects to import and extend the reference server as a library, implementing custom auth, adding routes, and configuring behavior without forking.

…tations

- Add ServerOptions interface for comprehensive server customization
- Add AuthHandler type for custom authentication (JWT, API keys, etc.)
- Add lifecycle hooks: onBeforeRoutes and onAfterRoutes
- Export individual route plugins for selective registration
- Add package.json exports for types, util, and routes
- Make routes, static serving, and docs conditionally registerable
- Add route prefix support for API versioning
- Update tsconfig for proper declaration generation
- Add comprehensive Extensibility documentation to README

This enables downstream projects to import and extend the reference
server as a library, implementing custom auth, adding routes, and
configuring behavior without forking.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant