@aihu/context
v0.2.1
Published
Async-context-friendly request/SSR context primitives for aihu.
Readme
@aihu/context
Aihu — agentic discovery and interaction, for human purpose.
Async-context-friendly request/SSR context primitives for aihu.
Part of the runtime core layer of the Aihu meta-framework. It is DOM-free and has no runtime dependencies, so it can be used by both browser and server code.
The package exposes typed context tokens, hierarchical client scopes, and an explicit flat map for server rendering. The ./ssr subpath is a live re-export of the same implementation, so server consumers can depend on the narrow entry point without losing behavior.
Install
npm install @aihu/context
# or
bun add @aihu/contextAuto-generated against @aihu/[email protected].
Package facts
| | |
|---|---|
| Version | 0.2.1 |
| Tier | A — Reactive runtime core — async-context request primitives |
| Bundle size | 420 B (gz) — limit 450 B |
| Published files | 3 entries |
| License | MIT |
Auto-generated against @aihu/[email protected].
Exports
| Subpath | ESM | CJS |
|---|---|---|
| . | ./dist/index.js | — |
| ./ssr | ./dist/ssr.js | — |
Auto-generated against @aihu/[email protected].
Dependencies
Zero runtime dependencies.
Auto-generated against @aihu/[email protected].
See also
Auto-generated against @aihu/[email protected].
License
MIT — see LICENSE.
Auto-generated against @aihu/[email protected].
