DecCF./ˈdɛk.ɛf/

Embed a Calculator App on your website

Publish the Calculator App, open its Embed dialog, and enter the exact website origin on which you will use it. Copy the generated snippet into that site's HTML. The snippet identifies one published version; later drafts and publications do not change it.

Wait for the element's script registration and ready before controlling it. Set or read the Web API request envelope, then call run() when a calculation is wanted. Input changes alone do not run or spend calculation credits. Use deccf-input-change to observe user edits without writing them back repeatedly. Each component owns its input state, navigation and result, so several can share one page.

For private saved cases, connect an authenticated host backend through caseProvider. The public embed key cannot read cases. Keep the user's separately scoped DECCF PAT on your backend and authorize every case operation there using the reference adapter. Case loading fills inputs and leaves calculation as an explicit action.

The complete embedded-app reference covers the copied HTML, lifecycle, request/result methods, navigation, hidden inputs, events, styling, error codes and working browser/backend examples. Replace older div-based snippets by generating a new snippet.