Context
Bring schemas, selections, formulas, drafts, rows, and permissions into the workflow your app already owns.
Ship the model to the data.
Browser-local LLM workflows for web apps that already hold the context: schemas, selections, formulas, drafts, permissions, and tools. The model reasons in the tab; your app validates what can change.
Dhamaka is useful when the model can reason over private app state, call exact product tools, and return output your UI can validate before anything changes.
Bring schemas, selections, formulas, drafts, rows, and permissions into the workflow your app already owns.
Let the model request exact lookups, calculations, rewrites, and product actions without pretending to be the database.
Apply only structured output that clears confidence gates, schema checks, and review rules before anything changes.
Workflow is the core API. Give Dhamaka intent, input, app context, schema, tools, and validators. A local model handles messy reasoning while deterministic code owns the action layer.
await workflow.run({
intent: "Turn this invoice into an AP draft",
context: { vendorSchema, openPOs, selectedCompany },
schema: { invoiceNo: "string", total: "number" },
tools: [matchPurchaseOrder, normalizeVendor],
validators: [
totalMustBePositive,
confidenceAtLeast(0.7)
]
})
The demos are intentionally small: address autofill, contextual spellcheck, smart paste, and formula work. Each one shows the same boundary: local inference, structured output, and app-owned validation.
Type a city and resolve state, country, timezone, and currency without a network call.
Open demo SCCatch homophones and misspellings with context-aware suggestions in a textarea.
Open demo SPPaste a contact blob and watch fields split into the form your app already owns.
Open demo FXRewrite spreadsheet formulas from plain-English instructions with reviewable output.
Open demoDhamaka sits above browser model runtimes. The SDK keeps one product API while the runtime chooses LanguageModel, Transformers.js, WASM, or MockEngine depending on the environment.
Model-first app work with context, tools, schema, validators, confidence, and review state.
Focused rewrites and explanations for formulas, DSL snippets, field values, and structured text.
Narrow UI primitives for smart fields, smart forms, contextual spellcheck, and smart paste.
Published task and browser checks keep regressions visible, including failures that still need work.
Trust boundary user intent -> private app context -> local model reasoning -> deterministic tools -> validators -> review or apply provider calls: 0
The model can reason, but the product owns permissions, persistence, calculations, and review gates. That matters for ERP formulas, invoice imports, CRM cleanup, policy checks, and any workflow where private context is the product.
Use it in import screens, spreadsheet-like editors, admin panels, textareas, form fields, and workflow-heavy product surfaces where the model needs private state to be useful.
import { Workflow } from "dhamaka";
const workflow = new Workflow({ backend: "auto" });
const result = await workflow.run({
intent,
input,
context,
schema,
tools,
validators
});
if (!result.needsReview) apply(result.output);
Not primarily. It is the workflow layer above browser model runtimes, with tools and validators built for product work.
The API stays stable while the runtime falls back through Transformers.js, WASM, and MockEngine.
Because complex app tasks need private context, and the browser already has that context in memory.