Skip to content

Scaffold Dhamaka: browser-native LLM stack with cross-site model hub#1

Merged
protosphinx merged 1 commit into
mainfrom
claude/dhamaka-llm-prompt-dHacl
Apr 11, 2026
Merged

Scaffold Dhamaka: browser-native LLM stack with cross-site model hub#1
protosphinx merged 1 commit into
mainfrom
claude/dhamaka-llm-prompt-dHacl

Conversation

@protosphinx
Copy link
Copy Markdown
Owner

Build out the full Dhamaka architecture end-to-end so the whole developer surface runs today, even while the WASM inference engine is still under construction.

Packages:

  • @dhamaka/hub cross-site model cache (iframe + IndexedDB + postMessage)
  • @dhamaka/runtime Engine interface, MockEngine (working), WasmEngine (loader)
  • dhamaka public SDK: Dhamaka.load / complete / stream / chat / evict
  • @dhamaka/playground zero-dep dev server + live demo UI with telemetry

Also: canonical manifest with the default dhamaka-micro model (SmolLM2-360M-Instruct Q4) and the planned registry variants, plus a sexy ASCII-art README documenting the architecture and the honest story on browser storage partitioning.

The SDK talks to the hub over a typed postMessage protocol with progress events, zero-copy ArrayBuffer transfer, SHA-256 integrity checks, and a graceful per-origin fallback when the iframe isn't reachable. The OpenAI /v1/chat/completions shim is included for drop-in compatibility.

Build out the full Dhamaka architecture end-to-end so the whole developer
surface runs today, even while the WASM inference engine is still under
construction.

Packages:
- @dhamaka/hub       cross-site model cache (iframe + IndexedDB + postMessage)
- @dhamaka/runtime   Engine interface, MockEngine (working), WasmEngine (loader)
- dhamaka            public SDK: Dhamaka.load / complete / stream / chat / evict
- @dhamaka/playground zero-dep dev server + live demo UI with telemetry

Also: canonical manifest with the default dhamaka-micro model
(SmolLM2-360M-Instruct Q4) and the planned registry variants, plus a
sexy ASCII-art README documenting the architecture and the honest story
on browser storage partitioning.

The SDK talks to the hub over a typed postMessage protocol with progress
events, zero-copy ArrayBuffer transfer, SHA-256 integrity checks, and a
graceful per-origin fallback when the iframe isn't reachable. The
OpenAI /v1/chat/completions shim is included for drop-in compatibility.
@protosphinx protosphinx merged commit f2e0098 into main Apr 11, 2026
@protosphinx protosphinx deleted the claude/dhamaka-llm-prompt-dHacl branch April 11, 2026 19:33
protosphinx added a commit that referenced this pull request Apr 11, 2026
Scaffold Dhamaka: browser-native LLM stack with cross-site model hub
protosphinx added a commit that referenced this pull request May 24, 2026
Scaffold Dhamaka: browser-native LLM stack with cross-site model hub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant