Skip to content

pufflyai/kaset

Repository files navigation

Kaset banner

Kaset [kaˈset] is an open source toolkit to build browser-first, agentic web apps.

DocsPlaygroundIssuesMIT License

bun lerna docs

Kaset is in early development, join our discussions and help shape it.

Introduction

Programming has always been a prelude: developers write code, ship it, and users consume it.

Now imagine your average user being able to create plugins for your web app on the fly.

No coding experience required.

Directly inside your app.

Curious? Check out our documentation.

Contents

  • Packages overview
  • Local development
  • Docs site

Packages

A simple coding agent for the browser.

React hooks for working with the browser's Origin Private File System.

OPFS helpers: ls/tree, grep, safe file reads (text/binary/SVG/PDF), patch utilities.

Two‑way sync between OPFS and a remote S3 like provider (Supabase adapter included).

Prompt/JSON helpers for LLM workflows.

AI task building blocks: streaming LLM tasks with tool calls, a minimal agent loop, history truncation/summarization, and scratchpad utilities.

Plugin runtime for OPFS-backed plugins with manifest validation, command routing, and settings persistence.

Composable, interrupt-friendly workflows for TypeScript/JavaScript. Pause, persist, and resume long-running work.

Browser-first plugin runtime that compiles OPFS sources with esbuild-wasm and exposes host capabilities to plugin iframes.

Service worker bundler and runtime asset manager for Tiny UI plugins.

Generate an LLM‑ready Markdown context for a folder (library + CLI).

Local development

Requires Bun >=1.3.13. From repo root:

bun install         # install
bun run build       # build all packages (lerna)
bun run test        # run all tests

Helpful scripts:

  • bun run formatbun run format:check
  • bun run lint
  • bun run clean
  • bun run reset:all (clean → install → lint → build → test)

Per‑workspace examples:

bun run --filter @pstdio/opfs-utils build
bun run --filter @pstdio/opfs-sync test

Docs site

VitePress site lives in clients/documentation/.

bun run --filter documentation start   # dev server
bun run --filter documentation build   # static build

License

MIT © Pufflig AB. See LICENSE.