TypeScript throughout
Typed contracts for pages, services and state keep your application explicit.
UDIOT by Tagna brings web pages, reactive state, middleware and application services into one TypeScript toolkit. Compose the pieces you need, from your first route to your next AI workflow.
npm install @tagna/udiot@1.0.0-rc.1import { defineWebApp }
from '@tagna/udiot/web';
export const app = defineWebApp({
site: { name: 'My UDIOT app' },
seo: {
sitemap: true,
robots: true
}
});import { definePage }
from '@tagna/udiot/web';
export const page = definePage({
route: '/',
render: 'ssg',
loader: async () => ({
props: { message: 'Hello, UDIOT.' }
})
});import { Container, Injectable }
from '@tagna/udiot';
class GreetingService {
hello() { return 'Hello, UDIOT.'; }
}
Injectable()(GreetingService);
const root = new Container();
root.registerClass('greeting',
GreetingService, 'scoped');Typed contracts for pages, services and state keep your application explicit.
Connect middleware, scoped services and stores around your application.
Use typed pages for server rendering, static sites and hybrid web apps.
Evaluate the pinned RC with documented stable-candidate and experimental APIs.
Explicit contracts. Connected application layers.
Choose the modules you need. See a composition recipe →
Real APIs. Readable code. Observable state.
import { createStore }
from '@tagna/udiot/browser';
const store = createStore(
{ count: 0 },
(state, action) => ({
count: state.count + action.payload
})
);
await store.dispatch({
type: 'ADD', payload: 1
});
store.getState(); // { count: 1 }
store.undo();Know the shape of your application.
Choose explicit providers and scopes.
Subscribe to each state transition.
Inspect history and undo a change.
Pages, loaders, rendering
Stores and time travel
Compose execution steps
Containers and scopes
Providers and invalidation
Publish and subscribe
Queues and providers
Logs, metrics and tracing
ExperimentalValidate your integration
ExperimentalTools and run workflows
ExperimentalEvaluating 1.0.0-rc.1? Review the support matrix for stable-candidate and experimental surfaces.
Start with UDIOT’s documented application patterns.