UI package for the app shell, routes, and client runtime.
The package runtime lives in everything-dev/ui:
| Export | Purpose |
|---|---|
everything-dev/ui/client |
Browser router/runtime factory |
everything-dev/ui/server |
SSR router/runtime factory |
everything-dev/ui/types |
Shared router and head types |
The app-level barrel is ui/src/app.ts and is the preferred import for route code.
Shared dependencies (singleton via bos.config.json → shared.ui):
react,react-dom@tanstack/react-query,@tanstack/react-router@hot-labs/near-connect,near-kitbetter-auth,better-near-auth
bos dev --host remote # Typical: remote host, local UI + API
bos dev --api remote # Isolate UI workbos.config.json only needs the UI runtime URLs and package metadata. Build-time module exposes stay in ui/rsbuild.config.ts.
File-based routing with auth guards via TanStack Router:
_authenticated.tsx- Requires login, redirects to/login_authenticated/_admin.tsx- Requires admin role
- Framework: React 19
- Routing: TanStack Router (file-based)
- Data: TanStack Query + oRPC client
- Styling: Tailwind CSS v4 + shadcn/ui
- Build: Rsbuild + Module Federation
- Auth: better-auth client
bun dev- Start dev server (port 3002)bun build- Build for productionbun type-check- Type checking