What This Package Is
@elata-biosciences/create-elata-demo is a CLI scaffolder that generates ready-to-run Elata web apps.
Use it when you want a clean scaffolded app or a consumer-facing reference project.
When To Use It
Use this package when you want:- the fastest path to a working Elata app
- a reference project that matches the published package surface
- a known-good baseline before integrating packages into an existing app
Templates
The scaffolder exposes three user-facing app starters:| Template | Description |
|---|---|
rppg-demo | React + Vite rPPG starter app |
eeg-demo | React + Vite EEG starter app with synthetic data and browser EEG wiring |
eeg-ble | Muse-compatible EEG starter with Chrome or Bluefy-on-iOS Web Bluetooth guidance |
| Alias | Resolves to |
|---|---|
rppg | rppg-demo |
eeg | eeg-demo |
ble | eeg-ble |
ble | eeg-ble |
Install And Invocation
This package is usually invoked without installing it permanently:List Available Templates
Recommended Usage
--template, it prompts you to pick a template. In non-interactive runs, it falls back to rppg-demo.
If you omit the project directory, the CLI also prompts for the project name.
What You Get
Each generated app includes:- a minimal Vite + React app shell
- Elata packages pinned to a compatible set of versions
- a template-specific
README.md - a
buildscript that type-checks and runsvite build
What Happens Behind The Scenes
The scaffolder binary:- Prompts for the app type first when running interactively without
--template - Prompts for
projectNamewhen missing - Validates the selected starter name
- Copies the chosen template into the target directory
- Renames
_gitignoreto.gitignore - Rewrites placeholders like
__APP_NAME__and package-version placeholders
Workspace Caveat
If you scaffold a new app inside anotherpnpm workspace and that app is not added to the workspace globs, run this from the parent directory:
Repo Verification
The package is tested from the repo with:When To Use The Scaffolder vs. Examples
| If you want… | Use |
|---|---|
| A clean, self-contained scaffolded app with pinned deps | create-elata-demo |
| A full product-shaped reference with routing, game loops, and charts | Example Apps |
| To modify the SDK itself | In-repo dev demos (eeg-demo/, packages/rppg-web/demo/) |
Next
Build Your First App
Scaffold and run a starter app
Choose A Package
Package decision guide
Example Apps
Full reference implementations