@aihu/app
v10.2.3
Published
Top-level app integration — wires runtime, router, and adapters into a Vite app.
Readme
@aihu/app
Aihu — agentic discovery and interaction, for human purpose.
Top-level app integration — wires runtime, router, and adapters into a Vite app.
Part of the meta-framework layer of Aihu. Provides whole-app capability — file-based routing, SSR, loaders, cookies — without the boilerplate other meta-frameworks impose. See arch-1 for the meta-framework contract.
(Hand-written prose lives in this block. Replace this placeholder; everything below is auto-generated.)
Static output
Set output: 'static' to prerender each route with its route head into the
build output. The default static.format: 'directory' writes /about to
about/index.html; use static: { format: 'file' } to write about.html
for hosts that serve extensionless paths without a trailing-slash redirect.
The root route always writes index.html.
dir.components accepts one directory or an array of directories. Include
workspace component packages there so they are registered in the client and
available to the static renderer, for example:
viteAihuPlugin({
output: 'static',
dir: { components: ['src/components', '../../packages/components'] },
})Static builds fail with the route and source file when a route cannot load or render, so incomplete output cannot be mistaken for a successful build.
Install
npm install @aihu/app
# or
bun add @aihu/appAuto-generated against @aihu/[email protected].
Package facts
| | |
|---|---|
| Version | 10.2.3 |
| Tier | B — Meta-framework — top-level integration of runtime, router, adapter |
| Bundle size | 1.77 kB (gz) — limit 1900 B |
| Published files | 3 entries |
| License | MIT |
Auto-generated against @aihu/[email protected].
Exports
| Subpath | ESM | CJS |
|---|---|---|
| . | ./dist/index.js | — |
| ./client | ./dist/client.js | — |
| ./ssr-document | ./dist/ssr-document.js | — |
Auto-generated against @aihu/[email protected].
Dependencies
Dependencies:
@aihu/compiler—^1.3.5
Peer dependencies:
@aihu/arbor—^4.1.2@aihu/context—workspace:*@aihu/router—workspace:*@aihu/runtime—workspace:*@aihu/server—workspace:*@aihu/signals—^0.5.1@aihu/store—workspace:*vite—>=5.0.0
Auto-generated against @aihu/[email protected].
See also
Auto-generated against @aihu/[email protected].
License
MIT — see LICENSE.
Auto-generated against @aihu/[email protected].
