@sublime-ui/framework
v4.0.1
Published
Laravel/Eloquent-style models, typed state, and a reactive data layer for cross-platform TypeScript apps.
Maintainers
Readme
@sublime-ui/framework
The data + state core of Sublime UI — write the non-UI parts of your app once and run them on mobile, web, and desktop.
It gives you a Laravel/Eloquent-style Model layer with a reactive, cache-first data flow: define a model, register it, and read it from any screen.
import { Model, registerModel } from '@sublime-ui/framework';
export class Task extends Model {
protected static resource = '/tasks';
declare id: number;
declare name: string;
declare done: boolean;
}
registerModel(Task);
// In a screen — reactive, cache-first:
const tasks = Task.rxAll();registerModel wires up a fetch-based Gateway (CRUD over resource), an
auto-registering Redux slice, and a discovery registry — no extra boilerplate.
Install
npm install @sublime-ui/frameworkDocumentation
Full guides, the model API, and the cross-platform story: https://sublime-ui.github.io/sublime-ui/docs/framework/overview
License
MIT
