Niral Studio
Run Niral Studio locally to manage projects, edit in a browser IDE with terminals and Git, preview a running app, and work with DI built in.
On this page 5 sections
Niral Studio is an optional local workspace for Niral projects: a dashboard that runs them, a browser IDE, and DI built in. It binds to 127.0.0.1, requires no account and sends no telemetry.
Studio is a development milestone distributed through the repository, not a published npm package. Node.js 22 or newer is required.
Run it
git clone https://github.com/Zyora-Dev/niral.git
cd niral
npm --prefix studio install
npm --prefix studio run postinstall
npm --prefix studio run build:ui
node studio/cli.js
Studio opens your browser on 127.0.0.1:5188 and prints the URL. The first launch includes a one-time setup token in the URL fragment: keep that link private, create an administrator with a password of at least 12 characters, then use the dashboard. Later launches show the login page.
For a local command, install it globally after the steps above:
npm install --global ./studio
niral-studio --port 5200 --no-open
niral-studio --data-dir /absolute/private/directory
Starting again with the same data directory opens the existing instance. Ctrl+C stops Studio, its shells, and the projects it started.
What is inside
Dashboard. Create a project or open an existing folder containing routes/. Run, stop and restart it on a remembered port, with live logs. Projects left running resume when Studio next opens.
Browser IDE. Monaco with the Niral language server: completion, hover, diagnostics and go-to-definition for .niral and .nrs. Quick Open, command palette, workspace search, local file history and native PTY terminals.
Source control. Stage, unstage, discard, commit and switch branches, with a diff view for the working tree and the index.
Live preview. The running app in a frame with selectable viewport widths. Turn on inspection and clicking an element opens the source line that produced it.
Server inspector. Route and RPC traces from the dev server: status, timing, failures and which loader broke. Payload capture is opt-in, time-boxed and key-redacted.
DI inside Studio
The same DI that runs standalone through niral di is built into Studio, with the services Studio already runs. It compiles what it writes, reads language-server diagnostics, runs the project's tests, reviews configuration for secrets and session problems, and reads failing requests from the dev server.
Writes pause for Studio's editor guard, which refuses to overwrite unsaved work; Changed files offers a diff, Keep and Undo. Commands run through a shell tool that never invokes a shell: the command is tokenised and spawned directly, so there is no chaining, redirection or substitution, and anything destructive — including every Git write — stops for your approval.
Bring your own model: OpenAI, Anthropic, Azure OpenAI, AWS Bedrock or any compatible endpoint. Credentials live in Studio's private data directory with owner-only permissions and are never written into your project.
Lost credentials
A forgotten username is readable: auth.json in the data directory stores it in plaintext. Only the password is hashed.
A forgotten password is replaced without losing the account. Stop Studio, then:
niral-studio reset-password
It keeps the username, projects, local history and saved DI conversations, and signs every existing session out. reset-admin is the heavier option: it discards the administrator entirely, and saved DI conversations are addressed by username, so they become unreachable unless the same username is chosen again.
What Studio is not
It is not a sandbox. Running a project loads its .env and executes its code with your own account's privileges, so only open and run projects you trust.
It is not multi-user or remote. One administrator, one machine, loopback only. Session scoping is not isolation: every session runs as the same OS user.
Stored credentials are plaintext local files with owner-only permissions, not an encrypted vault or an OS keychain.
