Install
pnpm add @sigil/sdknpm install @sigil/sdkyarn add @sigil/sdkThe package ships two entrypoints:
| Import | Use it for |
|---|---|
@sigil/sdk | Vanilla TS / JS. Framework-agnostic. |
@sigil/sdk/react | React. <SigilProvider> + hooks. |
Both are pure ESM with CJS fallback, fully typed, and tree-shakeable. Bundle target is < 30 KB gzipped (current actual: ~15 KB without React).
Peer dependencies
react ≥ 18 is a peer dep, marked optional. If you only use the vanilla
entrypoint you don’t need React installed.
Versioning
Semantic versioning. Anything in @sigil/sdk v1.x will keep its
public API stable. Internal types prefixed with _ may change.
What’s next
- Vanilla JS / TS — the
Sigilclass. - React — hooks-first integration.
- Configuration — every option explained.