Skip to content

Examples

End-to-end examples that exercise the full adapter surface, each a runnable app in the repository. Like the built-in plugins, they are written across different UI frameworks on purpose: the node-side definition stays the same while the browser bundle varies, so the set demonstrates that devframe is framework-agnostic at both the plugin and the host level.

ExampleUI frameworkWhat it shows
files-inspectorPreactLists files in the cwd via RPC; exercises the CLI dev / build / spa surfaces.
streaming-chatPreactStreams synthetic chat tokens server → client, with history kept in shared state.
next-runtime-snapshotReact (Next.js)A Next.js App Router SPA over RPC, surfacing the host Node runtime.
minimal-vite-devframe-hubVanilla TypeScript (Vite)A ~120-line Vite host wiring @devframes/hub end to end.
minimal-next-devframe-hubReact (Next.js)The same hub protocol, hosted from a Next.js route handler.

Run any example

Each example ships its own scripts; from the repository root:

sh
pnpm install
pnpm --filter <example-name> dev

See the individual pages for the package name, the build / static-deploy commands, and what to look for in the running app.

Released under the MIT License.