Overview of Stone.js Extensions
Stone.js provides opt-in capabilities that attach via blueprints to extend framework functionality. Available extensions include:
- Validation: Unified schema enforcement for both APIs and forms.
- Auth: Stateless JWT/OAuth implementation using
requireAuthandrequireScopes. - Authorization: Isomorphic RBAC and ABAC using
defineAbilityandauthorize. - Resources: Output shaping via
defineResource, fields, and envelopes. - OpenAPI: Automatic derivation of public contracts from schemas.
- Testing: Behavioral testing using
createTestAppandsend(makeIncomingHttpEvent). - MCP Server & llms.txt: Agent tooling and documentation map generation.
- Telemetry: Pluggable exporters for spans and metrics.