@pdfsbuild/core
v0.5.1
Published
Framework-free editor core for pdfs.build: stores, document compiler, and API clients.
Maintainers
Readme
@pdfsbuild/core
Framework-free editor core for the pdfs.build embeddable document editor.
This package is meant to be consumed through @pdfsbuild/react in React
applications. It is published separately for hosts that want to build their own
UI on top of the same state, compiler, and API clients.
Installation
npm install @pdfsbuild/corePublic surface
createApiClient/createApiClient— scoped HTTP client with injectable auth and unauthorized handling.createEditorStores/getDefaultEditorStores— isolated Zustand store sets for one editor instance.createTypstCompiler— isolated Typst WASM compiler worker instance.createDataPartDispatcher,createChatActionsRef— assistant-runtime wiring.templates-api,conversation-storage,org-fonts-api,org-images-api,preview-compiler,typst-data-injection— lower-level helpers.
See src/index.ts for the full export list.
