hn.today

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

github.com4 points0 comments
Screenshot of I spent a year writing a full-stack framework with 0 dependencies

Niral is a dependency-free, compiler-first full-stack framework built alongside a coding agent and a local browser-based development workspace. Its framework puts server logic, client behavior, markup, and scoped styles in one feature file; server functions become callable client-side RPCs, while server-only code and secrets are excluded from browser bundles. The compiler also detects environment variables used by an app and reports missing names before deployment. The project presents this compile-time approach as a way to improve performance and make security boundaries explicit. In a reproducible test serving a dynamic, uncached 1,000-row page, Niral handled 4,722 requests per second, with a 20 ms median and 40 ms 99th-percentile response time. It also reported a 0.1-second build and 196 MB memory use, outperforming the tested frameworks on those measures.

Niral DI is a model-agnostic coding agent that uses a key supplied by the user and can work in any project. It can edit files, compile code, and run tests, but asks before each change; file access and commands stay within the workspace, and Git operations are read-only. Its security checks flag patterns such as exposed credentials and unsafe SQL, while explicitly not claiming to prove a project secure. Niral Studio offers the same agent in a local browser workspace with an editor, terminals, Git tools, and live preview; files remain on the user’s machine. The framework and agent have no dependencies, and the project publishes its benchmark setup and source for inspection.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.