altseven is a reactive JavaScript framework for building single page applications — using core JavaScript language constructs, with no transpiling and no build step. Current release: 9.1.4 (see the release history).
Just what is altseven?
altseven is a reactive framework intended for building single page applications (SPA). It simplifies SPA development by relying on core JavaScript constructs — ES6 classes, ES modules, and template literals for templating — rather than extensions like JSX that require transpiling before deployment.
altseven has no runtime dependencies and no compile step: you write ES modules, the browser loads them, and templates are plain template literals that produce HTML strings. There is no virtual DOM; when a view’s state changes, its template is re-evaluated and its container element is repainted, with a render queue and configurable debouncing to keep repaints cheap.
Since version 8.0, the framework is organized as ES6 classes. You create an
Application instance, which initializes the modules your app needs — logging,
model, remote (AJAX/WebSocket), events, security, router and UI manager — and
exposes them as properties of that instance. Your application object becomes the
namespace for your code.
Why would I want it?
-
What it is good for:
- A declarative
Viewclass with state, templates and child views - A data layer with
Entity,ServiceandDataProviderclasses providing schema validation, client-side caching, data binding and request deduplication - A built-in remote module for JSON APIs, with token-based authentication and
an optional
credentialsmode for SAML/cookie-based SSO - Managed WebSocket sessions with exponential backoff, ping/pong zombie detection and online/visibility-aware reconnects (9.1.0)
- A Trie-based client-side URL router with parameters and browser history
- A publish/subscribe event system with isolated listeners
- A model with undo/redo/rewind/fast-forward history
- Logging with multiple levels and an optional in-browser console fed over WebSocket, so you can watch back-end logs in real time
- Error capture
- A declarative
-
What it is not good for: projects that want a compiler, bundler, tree shaking or code obfuscation. altseven development ships source modules directly to the browser.
-
What it is not yet proven for: very large scale deployments. If you need a framework with a long track record at scale, look at React or Vue.
Design principles
- Core language constructs over tooling. Templates are template literals; components are ES6 classes; modules are ES modules. If you know modern JavaScript, you already know most of altseven.
- Reactivity without a virtual DOM. Views declare a
templatethat reads theirstate. CallingsetState()schedules a debounced repaint of exactly that view. Child views render when their parent paints. - One cache, one source of truth. Services cache entities in the model and notify data providers when entities change, so views bound to the same data stay in sync without manual plumbing.
Where should I go next?
- Getting Started — install altseven and run a minimal app
- Your First App — a complete, runnable application
- Core Concepts — how the pieces fit together