{"slug": "i-spent-a-year-writing-a-full-stack-framework-with-0-dependencies", "title": "I spent a year writing a full-stack framework with 0 dependencies", "summary": "ZyoraLabs released Niral, a compiler-first full-stack framework written from scratch with zero dependencies, alongside Niral DI, a coding agent that runs on a user-supplied model and key, and Niral Studio, a local browser workspace. In the company's own end-to-end benchmark (1000-row dynamic SSR page, 100 connections × 10s), Niral served ~2,200 req/s at a 40 ms p50 and 0.2 s build, versus ~580 req/s at 128 ms for SvelteKit 2 (Svelte 5) and ~290 req/s at 310 ms for Next 16 (React 19). Niral DI ships 21 tools, requires approval before every file change, confines file access and commands to the workspace, refuses shell chaining such as `npm install && rm -rf .`, and keeps Git read-only.", "body_md": "**A full-stack framework, a coding agent, and a browser workspace. No dependencies.**\n\nWritten from scratch at [ZyoraLabs](https://zyoralabs.com) — not a fork, not a wrapper.\n\n|  | What it is | Install | \n|---|---|---|\n| **Niral** | Compiler-first full-stack framework. Components, routing, SSR, auth, jobs, realtime. | `npx create-niral my-app` | \n| **Niral DI** | A coding agent that runs on your own model and key. 21 tools, every change asks first. | `npm i -g niral-di` | \n| **Niral Studio** | The same agent in a local browser workspace, with an editor, terminals and a live preview. | `npx niral-studio` | \n\nEach works on its own. DI works in any project, Niral or not.\n\nOne file holds a feature: server code, client code, markup and scoped styles.\n\n```\n<server>\nexport async function load() {\n  return { posts: await sql`select id, title from posts limit 10` }\n}\n</server>\n\n<script>\n  let { posts } = $props\n</script>\n\n<ul>\n  {#for post of posts key post.id}\n    <li><a href=\"https://github.com/post/{post.id}\">{post.title}</a></li>\n  {/for}\n</ul>\n\n<style>\n  li { padding: 8px 0 }\n</style>\n```\n\nThe `<server>` block never reaches the browser. Exported functions become RPCs\ncallable by name from client code.\n\nEach framework's own production server, dynamic SSR per request, the same\n1000-row page, 100 connections × 10s — [run it yourself](https://github.com/Zyora-Dev/niral/blob/main/bench/e2e):\n\n| framework | req/s | p50 | p99 | build | \n|---|---|---|---|---|\n| **niral** | **~2,200** | **40 ms** | ~150 ms | **0.2 s** | \n| sveltekit 2 (svelte 5) | ~580 | 128 ms | ~1.6 s | 2.3–3.7 s | \n| next 16 (react 19) | ~290 | 310 ms | 2.3–3.2 s | 3.3–5.5 s | \n\nHydration ties Svelte at 6.6 ms / 1000 rows, 29.7 KB of JS.\n\n```\nnpx create-niral my-app\ncd my-app && npm run dev\n```\n\nA 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.\n\n```\nnpm install -g niral-di\nniral-di setup\nniral-di chat\n```\n\n**It reads, writes and verifies.** Creates files and directories, edits part of\na file without rewriting it, searches by meaning, compiles what it writes, runs\nyour tests, and reports what it could not verify.\n\n**It asks first.** Every change to your files waits for you. Deleting and moving\nalways ask, whatever you allowed before.\n\n**It cannot wander off.** File access and commands are confined to the\nworkspace. Commands never reach a shell, so there is no chaining or\nredirection — `npm install && rm -rf .` is refused rather than run. Git is\nread-only: DI can read history and diffs, but cannot commit, push or discard.\n\n**It scans for the mistakes that ship.** Credentials written into source, SQL\nbuilt by joining strings, markup written from untrusted values, weak randomness\nfor secrets. Pattern matching, not proof — a clean result is not a secure\nproject.\n\nAlso in [VS Code](https://marketplace.visualstudio.com/items?itemName=ZyoraLabs.niral-di)\nand in Studio. [Full documentation](https://niral.site/docs/niral-di).\n\nThe same agent in a local browser workspace: file tree, editor, terminals, Git, and a live preview. Nothing is uploaded; it runs on your machine.\n\n```\nnpx niral-studio\n```\n\n**Compiler, not runtime.** The work happens once, at build time.\n\n**Zero dependencies.** `niral` and `niral-di` both ship with none. No supply\nchain, no audits, no upstream breakage — every line that runs is a line you can\nread.\n\n**Honest measurement.** Every benchmark here is reproducible. We would rather\nyou check.\n\n```\nbin/niral.js        the CLI — create · dev · check · test · build · start · deploy · doctor\nsrc/compiler/       parser, codegen (DOM + string-SSR), rewriter\nsrc/runtime/        signals, DOM ops, hydration, router, i18n, rpc client\nsrc/server/         dev + prod servers, sessions, auth, jobs, live, ai, rag, migrate\nsrc/di/             the agent, vendored from packages/niral-di\npackages/niral-di/  the agent engine — the source everything else consumes\nstudio/             the browser workspace\neditors/vscode/     the VS Code extension\napps/docs/          the documentation site, itself a Niral app\nbench/              reproducible benchmarks vs Next.js, SvelteKit, SolidStart, Astro\ntests/              the test suite — npm test\n```\n\nDocumentation: [niral.site](https://niral.site) ·\n[Getting started](https://niral.site/docs/getting-started) ·\n[CLI reference](https://niral.site/docs/cli) ·\n[DI](https://niral.site/docs/niral-di)\n\nMIT licensed. NiralScript is Apache-2.0.\n\nநிரல் — \"program\" in Tamil · Built in India · [ZyoraLabs](https://zyoralabs.com)", "url": "https://wpnews.pro/news/i-spent-a-year-writing-a-full-stack-framework-with-0-dependencies", "canonical_source": "https://github.com/Zyora-Dev/niral", "published_at": "2026-12-03 17:00:38+00:00", "updated_at": "2026-12-03 17:19:00.371569+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-tools"], "entities": ["ZyoraLabs", "Niral", "Niral DI", "Niral Studio", "SvelteKit 2", "Svelte 5", "Next 16", "React 19"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/i-spent-a-year-writing-a-full-stack-framework-with-0-dependencies", "markdown": "https://wpnews.pro/news/i-spent-a-year-writing-a-full-stack-framework-with-0-dependencies.md", "text": "https://wpnews.pro/news/i-spent-a-year-writing-a-full-stack-framework-with-0-dependencies.txt", "jsonld": "https://wpnews.pro/news/i-spent-a-year-writing-a-full-stack-framework-with-0-dependencies.jsonld"}}