Skip to content
dudko-devPublic

About

Planning AI agents in TypeScript: Node server agent, in-browser agent (BYOK cloud or local WebGPU models), React bindings and a live demo. Built on the Vercel AI SDK and MCP.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

agents

CI license last commit

agent.dudko.dev · docs · live demo · app

Monorepo of the @dudko.dev agent packages: one planning loop (plan → execute → replan → answer) as an agent for Node and the same agent running fully in the browser, plus the layers that put its chat on a page - React, Vue, Angular, Svelte and a web component for any page - the apps and the site built on them, and reference deployments of the Node agent as a swarm.

Packages (published to npm)

Path Package What it is
packages/agent @dudko.dev/agent
npm downloads
Node / server: the planning loop over stdio and HTTP MCP servers, OAuth 2.1, a REPL CLI, persistence and resume, OpenTelemetry, a safe fetch. Docs
packages/agent-web @dudko.dev/agent-web
npm downloads
The same loop in the browser: bring-your-own-key cloud models or local WebGPU models, an encrypted key vault, HTTP MCP, WebMCP, a virtual file system. Docs
packages/agent-web-ui @dudko.dev/agent-web-ui
npm downloads
The chat with no framework: the state (reducer and controller - also createRemoteAgentController for an agent on a server), labels in 33 languages, Markdown as a tree, the sandbox and MCP Apps security cores, the pipeline definition format, the stylesheets. The base of every layer below. Docs
packages/agent-web-react @dudko.dev/agent-web-react
npm downloads
React: the useAgent hook, a provider and a drop-in chat; useRemoteAgent for an agent on a server (the swarm's gateway). Docs
packages/agent-web-element @dudko.dev/agent-web-element
npm downloads
<dd-agent-chat>: the whole chat as one web component in its own Shadow DOM (or the light DOM), for a page on any stack; backend points it at an agent on a server, and then nothing of the core is loaded. Docs
packages/agent-web-vue @dudko.dev/agent-web-vue
npm downloads
Vue 3: the useAgent() composable. Docs
packages/agent-web-angular @dudko.dev/agent-web-angular
npm downloads
Angular: injectAgent(), the chat state as signals. Docs
packages/agent-web-svelte @dudko.dev/agent-web-svelte
npm downloads
Svelte 4 and 5: createAgent(), the chat state as a store. Docs

Each package keeps its own README, docs, CHANGELOG and version, and is published independently (npm Trusted Publishing, with provenance).

Apps, examples and tooling (private, never published)

Path What it is
apps/site agent.dudko.dev: the landing page and the docs, generated from the packages' READMEs and docs/ and the examples' READMEs, with the support chat on every page.
apps/app The app: an in-browser AI assistant on these packages - bring your own key, models picked for you, everything on the device.
apps/demo The demo of the React package.
apps/chrome Agent by dudko.dev, the Chrome extension: the in-browser agent in the side panel with your own key, tools for the browser's tabs and windows, and for the pages you allow it on - it reads them (text and elements, pictures, DevTools), acts on them with your consent, works canvas apps (Flutter web) by pictures and real input, and can share what you look at with each message (stage 2). Built and loaded unpacked; not in the Web Store.
apps/studio Pipeline Studio: the front end of the pipelines executor - draw a pipeline, save versions, run it on your executor and watch every node live, retry a failed node, cancel a run.
apps/worker The Cloudflare Worker of agent.dudko.dev: the public demo MCP server at /mcp/demo; every other path is the static site.
apps/app-sandbox The Cloudflare Worker that serves the MCP Apps sandbox page on its own host.
apps/vscode Agent by dudko.dev for VS Code (stage 1, read-only, not published): the Node agent in the extension host, <dd-agent-chat> in a webview, bring your own key - build the .vsix and install it locally.
examples Deploying the Node agent: one process, or a swarm of workers behind one HTTP API on Temporal + Postgres, Cloudflare, Google Cloud or AWS, sharing examples/swarm-shared.
examples/pipelines The pipelines executor, a Cloudflare Worker (agent-pipelines) each person deploys with their own keys: versioned pipeline definitions, runs on a Durable Object per run and a Workflow per attempt with the core's graph engine, live events, retry of a failed node, cancel.
examples/support-cloudflare The support chat of agent.dudko.dev, as a Cloudflare Worker (agent-support): the Cloudflare swarm's runtime behind the swarm gateway's visitor auth, an agent that answers only about these libraries, sponsoring the project and contacting its author, with Turnstile, a classifier, exact limits and text only. Docs
packages/test-servers Test servers for the packages' own tests: an enterprise IdP, an MCP authorization server and an MCP server, on loopback.

Working in the repo

Needs Node ≥ 22.6 and pnpm 10 (corepack enable). Tasks run through Nx, which orders them by the dependency graph (a package's dist is built before what consumes it) and caches the results.

pnpm install

pnpm check                 # typecheck, format:check, build and test for everything
pnpm affected              # the same, only for what changed against main
pnpm test:e2e              # the React package's browser tests (Playwright over the built demo)
pnpm nx run app:test:e2e   # the app's browser tests (each package and app has its own test:e2e)

pnpm nx test @dudko.dev/agent-web          # one target of one package
pnpm nx run-many -t build -p demo          # the demo and everything it needs
pnpm --filter demo dev                     # the demo's dev server (build the library first)
pnpm nx build site                         # the whole site: landing page, docs and the demo
pnpm --filter site dev                     # the site's dev server
pnpm --filter @dudko.dev/agent start       # the Node agent's REPL from source

Packages depend on each other through workspace:*, so a change in the core is tested against the React package and the demo in the same pull request.

Releasing

Bump version in the package.json of the package(s) to publish, in a pull request of its own. When CI has passed on main, the Release workflow publishes every package whose version is not on npm yet (npm Trusted Publishing, with provenance), tags it <package-dir>-v<version> and creates a GitHub release. The Node agent is published only after a smoke test against a real model. A package that depends on another workspace package is held until that version is on npm, and until its source has not changed since its release tag (bump both and the next run publishes the rest). node .github/scripts/release-plan.mjs --human shows what the next run would publish.

History

The first three packages were separate repositories (dudko-dev/agent, dudko-dev/agent-web, dudko-dev/agent-web-react); their histories were merged in. To follow a file past the move: git log --follow -- packages/agent/src/runner.ts.

License

MIT © Siarhei Dudko

About

Planning AI agents in TypeScript: Node server agent, in-browser agent (BYOK cloud or local WebGPU models), React bindings and a live demo. Built on the Vercel AI SDK and MCP.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages