@owlmeans/web-router
v0.1.11
Published
React Router DOM integration for the OwlMeans context system.
Readme
@owlmeans/web-router
React Router DOM integration for the OwlMeans context system.
Overview
makeWebRouterService()— creates a router service backed by React Router DOMappendWebRouter(ctx)— registers the web router service in the context- Provides
useParams,useLocation,useNavigate,outlet(),provider()via the service - Used internally by
@owlmeans/web-client'smakeContext— not typically used directly
Installation
bun add @owlmeans/web-routerUsage
This package is registered automatically when using makeContext from @owlmeans/web-client. Direct use is only needed for custom context setup:
import { appendWebRouter } from '@owlmeans/web-router'
appendWebRouter(context)API
makeWebRouterService(): RouterService
Creates a router service with React Router DOM hooks and components.
appendWebRouter<C, T>(ctx): void
Registers the web router service in the given context.
Related Packages
@owlmeans/router—RouterServicebase interface@owlmeans/web-client— callsappendWebRouterinsidemakeContext
Agent guidance
This package ships embedded Claude Code skills and GitHub Copilot instructions under
agent-meta/. After installing your @owlmeans/* packages, run the OwlMeans
agent-skills installer to place them into your project's native locations
(.claude/skills/ and .github/instructions/):
npx @owlmeans/agent-skillsThe embedded files are version-matched to this package release. Do not edit them directly — they are regenerated on each publish. To contribute guidance edits, open a PR against the source monorepo.
