Why Nutin?
The web platform already provides powerful primitives for building web applications. What it doesn't provide is an architecture for organizing an application as it grows.
Nutin doesn't exist because the web needed another way to render a button.
It exists because there is a middle ground between writing every piece of application infrastructure yourself and adopting a large framework.
Nutin's concepts
Nutin provides a small set of explicit concepts, each with a clear responsibility:
- Views orchestrate application flow
- Components encapsulate UI behavior with explicit lifecycle methods
- Services handle application concerns through shared instances
- Events connect them through type-checked contracts
What Nutin adds
- Runtime: a router (guards, lazy routes), pipes, an HTTP client and an HTML tagged template that escapes interpolated values.
- Tooling: a generator, a dev server with live reload, and a builder (code splitting, minification, compression).
- Options: Tailwind CSS, i18n and SEO file generation.
- Features: Docker and Markdown.
When to use Nutin?
Nutin is a good fit when you:
- want application structure with a thin, explicit rendering model;
- want to work mostly with the DOM and browser APIs;
- want framework code and abstractions to remain visible and editable;
- prefer a small set of explicit concepts over a larger framework ecosystem.
This can include internal tools, dashboards, CRUD applications, documentation and content sites, and other small-to-medium applications. Nutin can also be a guest on someone else's page (a widget, a browser extension's popup...).
When not to use Nutin?
Nutin is not a good fit if:
- your project depends heavily on a mature ecosystem of framework-specific libraries or UI components;
- much of your UI depends on fine-grained state that changes often: Nutin has no reactive state and no DOM diffing;
- your team benefits from the conventions and tooling of an established framework ecosystem.
More about Nutin
Behind Nutin
If you're interested in how Nutin evolved and the thinking behind its design, read The Story Behind Nutin.
FAQ
See the FAQ.
Support
If you enjoy using Nutin, consider supporting its development on Ko-fi.