@pdxui/core
v1.0.0-beta.1
Published
Reactive core for PDX UI — signals, renderer, Web Component base
Readme
@pdxui/core
The runtime of PDX UI: signals, the template engine, the Web Component base, and the services an application builds on — forms, data loading, HTTP, i18n, permissions, accessibility helpers. It has no npm dependencies.
The .pdx compiler emits code that runs against this package, and it can also be used directly
from TypeScript.
pnpm add @pdxui/coreimport { signal, computed, effect } from '@pdxui/core';
const count = signal(1);
const doubled = computed(() => count() * 2);
effect(() => console.log(doubled())); // 2
count.set(v => v + 1); // 4Entry points
| Import | Contents |
|--------|----------|
| @pdxui/core | Everything |
| @pdxui/core/reactivity | signal, computed, effect, batch, onCleanup, ref |
| @pdxui/core/renderer | html and the template helpers |
| @pdxui/core/component | component(), the element base, provide/inject |
| @pdxui/core/i18n | Locales, $t, plural and ICU messages |
| @pdxui/core/testing | mount, tick, fireEvent, waitFor, cleanup |
| @pdxui/core/devtools | The development overlay and signal inspector |
| @pdxui/core/hydrate | installHydration, for an app whose pages are generated: the client adopts the server's markup |
| @pdxui/core/server | renderToString, for static generation in Node |
| @pdxui/core/server-dom | installServerDom, the server DOM, installed before anything else of core is imported |
Documentation
License
MIT.
