Repository examples
Run the LiteVerse examples from their source folders.
This page lists the real example projects in the repository. Each entry includes the folder, purpose, run command, and source link.
Each example has a source folder, purpose, and run command.
ExampleExampleExampleExampleExampleExample
Vanilla SDK
Path: examples/vanilla-sdk/
Browser example for bootstrap data, stream subscription, and recovery helpers.
Run: pnpm --dir examples/vanilla-sdk dev
React SDK
Path: examples/react-sdk/
React provider and hooks example for account-aware app shells.
Run: pnpm --dir examples/react-sdk dev
Widget embed
Path: examples/widget-embed/
Widget mounting example for a compact LiteVerse account snapshot.
Run: pnpm --dir examples/widget-embed dev
Node service
Path: examples/node-service/
Server-side Node example that uses the shared SDK against the platform API.
Run: pnpm --dir examples/node-service start
CLI pairing
Path: examples/cli-pairing/
Walkthrough for linking a terminal node to the same LiteVerse account.
Run: See README.md
InterLayer reference
Path: examples/interlayer-reference/
Reference flow for the live InterLayer service and account model.
Run: See README.md
Most examples use the same startup flow.
Common setup
Run `pnpm install` from the repository root before opening browser-based examples.
Use `?api=` or `VITE_LITEVERSE_API_BASE_URL` when testing against a different API base.
Use the live API by default so behavior matches the dashboard and node products.
Show unavailable state when bootstrap data cannot be loaded.
Commands
pnpm install pnpm --dir examples/vanilla-sdk dev pnpm --dir examples/react-sdk dev pnpm --dir examples/widget-embed dev pnpm --dir examples/node-service start
Detailed walkthroughs live with each example.
examples/README.md
Example index and shared run notes.
examples/vanilla-sdk/README.md
Browser SDK instructions.
examples/react-sdk/README.md
React provider and hooks instructions.
examples/widget-embed/README.md
Widget embed instructions.
examples/node-service/README.md
Server-side SDK usage.
examples/cli-pairing/README.md
Terminal pairing walkthrough.
examples/interlayer-reference/README.md
Live InterLayer service reference.