@nifrajs/web
@nifrajs/web
Optional server components are implemented for React, Vue, Svelte and Solid in the post-4.0 feature branch. React uses native RSC/Flight; the other adapters use native islands in validated server ranges. Definitions require closed input/public-props schemas and authorization. Refresh executes the actual owner GET, preserving admission, read capabilities, budgets and cancellation; output is private/no-store. Mutate through validated server functions or actions.
Use the /server-components, /server-components/client, /server-components/islands and
/server-components/build exports with an explicit componentPipeline named config export.
See the server-components guide and the four runnable
repository examples for complete entries, native outlets, exact compiler pins and rollback.
Framework-agnostic SSR core for nifra - the render seam + HTML document orchestration.
Part of the nifra full-stack TypeScript framework - one core, five UI libraries, every runtime. Scaffold a new app with bun create nifra.
Guarding pages
A _layout.backend.ts loader is data, not a guard: a client navigation can skip it while the browser
keeps the layout's data, and an action below it runs without it. Refuse access in that file's
middleware, or export gate = true so its loader runs on every request and before every action,
ahead of the page loader. In development, nifra warns when a layout loader without gate refuses a
request, and nifra check reports one whose refusal it can read (NF-C042). See Layout loaders on navigation.
Install
bun add @nifrajs/web
Docs
- Reference: https://nifra.dev/docs
- AI-readable: https://nifra.dev/llms.txt
MIT
For AI agents
Start with LLM.md - this package's contract card (the exports you call + its footguns),
one cheap read instead of the whole corpus. For the wider framework: the repo's
AGENTS.md is the copy-paste quick reference, and
llms-full.txt is the full machine-readable corpus. Run nifra check as the
done-gate, or nifra mcp to give the agent live project tools.
Related Packages
Islands architecture add-on for Gracile — SSR and hydrate components from any fr...
Vue render adapter for @nifrajs/web - streaming SSR + hydration, with a .vue SFC...
A high-performance microfrontend framework supporting Vue, React, Preact, Solid,...
A high-performance microfrontend framework supporting Vue, React, Preact, Solid,...
Version History
| Version | Released | License |
|---|---|---|
| 5.5.1 | MIT | |
| 5.5.0 | MIT | |
| 5.4.0 | MIT | |
| 5.3.0 | MIT | |
| 5.2.0 | MIT | |
| 5.1.0 | MIT | |
| 5.0.0 | MIT | |
| 4.0.2 | MIT | |
| 4.0.0 | MIT | |
| 3.5.0 | MIT | |
| 3.3.0 | MIT | |
| 3.2.0 | MIT | |
| 3.1.0 | MIT | |
| 2.14.1 | MIT | |
| 2.13.0 | MIT | |
| 2.12.1 | MIT | |
| 2.12.0 | MIT | |
| 2.11.0 | MIT | |
| 2.10.0 | MIT | |
| 2.9.1 | MIT | |
| 2.9.0 | MIT | |
| 2.8.2 | MIT | |
| 2.8.1 | MIT | |
| 2.8.0 | MIT | |
| 2.7.1 | MIT | |
| 2.7.0 | MIT | |
| 2.6.1 | MIT | |
| 2.6.0 | MIT | |
| 2.5.0 | MIT | |
| 2.4.0 | MIT |
Showing the latest 30 of 52. See every release on npm
Pre-releases (11)
| Version | Released | License |
|---|---|---|
| 1.0.0-beta.4 | MIT | |
| 1.0.0-beta.3 | MIT | |
| 0.1.0-beta.2 | MIT | |
| 0.1.0-beta.1 | MIT | |
| 0.1.0-beta.0 | MIT | |
| 0.1.0-alpha.6 | MIT | |
| 0.1.0-alpha.5 | MIT | |
| 0.1.0-alpha.4 | MIT | |
| 0.1.0-alpha.3 | MIT | |
| 0.1.0-alpha.2 | MIT | |
| 0.1.0-alpha.1 | MIT |