# I spent a year writing a full-stack framework with 0 dependencies

> Source: <https://github.com/Zyora-Dev/niral>
> Published: 2026-12-03 17:00:38+00:00

**Key takeaway:** Niral DI runs on a user-supplied model key with 21 tools, asks approval before every file change, confines commands to the workspace without a shell, and keeps Git read-only.

**A full-stack framework, a coding agent, and a browser workspace. No dependencies.**

Written from scratch at [ZyoraLabs](https://zyoralabs.com) — not a fork, not a wrapper.

|  | What it is | Install | 
|---|---|---|
| **Niral** | Compiler-first full-stack framework. Components, routing, SSR, auth, jobs, realtime. | `npx create-niral my-app` | 
| **Niral DI** | A coding agent that runs on your own model and key. 21 tools, every change asks first. | `npm i -g niral-di` | 
| **Niral Studio** | The same agent in a local browser workspace, with an editor, terminals and a live preview. | `npx niral-studio` | 

Each works on its own. DI works in any project, Niral or not.

One file holds a feature: server code, client code, markup and scoped styles.

```
<server>
export async function load() {
  return { posts: await sql`select id, title from posts limit 10` }
}
</server>

<script>
  let { posts } = $props
</script>

<ul>
  {#for post of posts key post.id}
    <li><a href="https://github.com/post/{post.id}">{post.title}</a></li>
  {/for}
</ul>

<style>
  li { padding: 8px 0 }
</style>
```

The `<server>` block never reaches the browser. Exported functions become RPCs
callable by name from client code.

Each framework's own production server, dynamic SSR per request, the same
1000-row page, 100 connections × 10s — [run it yourself](https://github.com/Zyora-Dev/niral/blob/main/bench/e2e):

| framework | req/s | p50 | p99 | build | 
|---|---|---|---|---|
| **niral** | **~2,200** | **40 ms** | ~150 ms | **0.2 s** | 
| sveltekit 2 (svelte 5) | ~580 | 128 ms | ~1.6 s | 2.3–3.7 s | 
| next 16 (react 19) | ~290 | 310 ms | 2.3–3.2 s | 3.3–5.5 s | 

Hydration ties Svelte at 6.6 ms / 1000 rows, 29.7 KB of JS.

```
npx create-niral my-app
cd my-app && npm run dev
```

A coding agent in your terminal or your editor, running on a model you choose. There is no default model, no account, and no middleman: you supply the key.

```
npm install -g niral-di
niral-di setup
niral-di chat
```

**It reads, writes and verifies.** Creates files and directories, edits part of
a file without rewriting it, searches by meaning, compiles what it writes, runs
your tests, and reports what it could not verify.

**It asks first.** Every change to your files waits for you. Deleting and moving
always ask, whatever you allowed before.

**It cannot wander off.** File access and commands are confined to the
workspace. Commands never reach a shell, so there is no chaining or
redirection — `npm install && rm -rf .` is refused rather than run. Git is
read-only: DI can read history and diffs, but cannot commit, push or discard.

**It scans for the mistakes that ship.** Credentials written into source, SQL
built by joining strings, markup written from untrusted values, weak randomness
for secrets. Pattern matching, not proof — a clean result is not a secure
project.

Also in [VS Code](https://marketplace.visualstudio.com/items?itemName=ZyoraLabs.niral-di)
and in Studio. [Full documentation](https://niral.site/docs/niral-di).

The same agent in a local browser workspace: file tree, editor, terminals, Git, and a live preview. Nothing is uploaded; it runs on your machine.

```
npx niral-studio
```

**Compiler, not runtime.** The work happens once, at build time.

**Zero dependencies.** `niral` and `niral-di` both ship with none. No supply
chain, no audits, no upstream breakage — every line that runs is a line you can
read.

**Honest measurement.** Every benchmark here is reproducible. We would rather
you check.

```
bin/niral.js        the CLI — create · dev · check · test · build · start · deploy · doctor
src/compiler/       parser, codegen (DOM + string-SSR), rewriter
src/runtime/        signals, DOM ops, hydration, router, i18n, rpc client
src/server/         dev + prod servers, sessions, auth, jobs, live, ai, rag, migrate
src/di/             the agent, vendored from packages/niral-di
packages/niral-di/  the agent engine — the source everything else consumes
studio/             the browser workspace
editors/vscode/     the VS Code extension
apps/docs/          the documentation site, itself a Niral app
bench/              reproducible benchmarks vs Next.js, SvelteKit, SolidStart, Astro
tests/              the test suite — npm test
```

Documentation: [niral.site](https://niral.site) ·
[Getting started](https://niral.site/docs/getting-started) ·
[CLI reference](https://niral.site/docs/cli) ·
[DI](https://niral.site/docs/niral-di)

MIT licensed. NiralScript is Apache-2.0.

நிரல் — "program" in Tamil · Built in India · [ZyoraLabs](https://zyoralabs.com)
