ai surface
Agent runtimes, RAG, media pipelines, and provider tooling
- Stability
- Stable
- Scope
- Global
- Boundary
- packages/ai
ai
packages/aiAI runtime · tool registry · MCP boundary
Capability graph
ai/aiRun ledger
- 1Inputpackages/ai/request
- 2Planmessage reducer -> model turn
- 3Tool policytool schema · auth scope · rate limit
- 4Stream UIevents -> UI state machine
- 5Output@nebutra/agents response envelope
1import { Agent, tool } from "@nebutra/agents";
2import { z } from "zod";
3
4const agent = new Agent({
5 model: "claude-sonnet-4-6",
6 tools: {
7 search: tool({
8 description: "Search internal docs",
9 parameters: z.object({ query: z.string() }),
10 execute: async ({ query }) => searchDocs(query),
11 }),
12 },
13});
14
15const stream = await agent.stream({
16 prompt: "Find Q4 revenue trends",
17 maxSteps: 6,
18});
19
20for await (const event of stream) {
21 console.log(event.type, event.data);
22}3d-pipeline
3D asset generation + render — text-to-mesh + USD export + Three.js preview, with GPU-pool routing on the backend.
Exploreagent-runtime
Lower-level agent execution — message reducer, tool invocation, streaming state machine. The kernel @nebutra/agents wraps.
ExploregenerateText({ model, prompt }) → { text }streamText({ model, prompt }) → AsyncIterableembed({ model, value }) → { embedding }
agents
Multi-step agent runtime — Vercel AI SDK foundation, tool registry, streaming UI, MCP integration. The skeleton for every Sailor agentic feature.
Exploreai-primitives
Shared helpers used across all AI packages — token counting, prompt templating, stream-parser, retry-with-backoff. No provider dependency.
Exploreai-providers
Provider metadata — pricing per million tokens, context windows, modalities. Drives model selection and cost estimates.
Exploreatelier-canvas
Infinite design canvas — multiplayer cursors, layer panel, frame export. The drawing surface every atelier play renders into.
Exploreaudio-pipeline
Audio processing chain — voice clone, denoise, transcribe, summarize. Streams through one async iterator per stage.
Explore- p1
- p2
- p3
- p4
- p5
- Make work flow
- Calm power
AI brand kit · 5 variations
brand-genesis
Brand creation flow — pick palette, type pair, motion preset; ships a synced @nebutra/brand override and a Figma preview link.
Explorebrowser-control
Headless browser drive for agents — Vercel Agent Browser primary, Playwright fallback. Screenshot, click, type, evaluate.
Explorecinema
Atelier cinema mode — distraction-free fullscreen with timed scene playback, perfect for demoing a play or rehearsing a pitch.
Exploreconst total = orders
.filter(o => o.status === 'paid')
.reduce((s, o) => s + o.amount, 0)code-execution
Sandboxed code execution for agents — JS / Python / shell — short-lived containers, network-isolated, capability-gated by @nebutra/permissions.
Explore- packages/iam/auth/src/handler.ts:420.91
export async function handler(req: Request) - packages/iam/auth/src/middleware.ts:180.84
const auth = await handler.verify(token) - backends/gateway/src/auth.ts:70.78
import { handler } from "@nebutra/auth"
code-index
Repository code index for agents — symbol graph, embedding, file watcher. Lets the agent answer "where is X defined" without grep'ing.
Explorecofounder-match
Skill-and-stage cofounder matching — answers a small intake, surfaces ranked candidates with shared interest and warm intros.
Explorecontent-store
Headless CMS adapter — Sanity / Strapi / Notion behind one ContentEntry<T> read API. Drives marketing pages and product copy.
Exploredocument-pipeline
Ingestion for PDF / docx / markdown — chunk, table-aware extract, embed, route to @nebutra/knowledge-base. OCR fallback for image-only pages.
Exploreecosystem-safety
Pre-flight safety check — license sweep, dep-vuln audit, prohibited-content scan. Surfaces blockers before a play ships to marketplace.
Exploreevent-log
General-purpose event log primitive — append, query, time-window aggregate. Sits below audit, analytics, and trace-store as their record.
Exploreexecution-policy
Policy rules that route agent tasks to compute backends — render → Vercel Sandbox, long → Lambda, internal → local-runner.
Explore- idea·"Acme SaaS"2024-08no PMF
- idea·"VR Yoga"2024-12pivot needed
- idea·"AI Chef"2025-02competitor moved fast
founder-cemetery
Failed-startup memorial — anonymized post-mortems with cause tags. Read-only catalog, source of the recurring failure pattern dashboard.
Exploregeneration-context
Token-budgeted context window manager — system prompt, RAG, user history, scratchpad. Picks what to drop when the window fills.
Exploreidea-plaza
Public idea board — submit, upvote, comment; the seed pool atelier plays draw from when a founder asks "what should I build".
Exploreimage-pipeline
Image generation + transform pipeline — provider-routed, watermark + safety filter, cached output, per-tenant quota.
Exploreknowledge-base
Document store + indexer for RAG. Watches sources (S3, Notion, GitHub), schedules re-embed, surfaces freshness in the agent answer.
Exploreknowledge-graph
Entity + relationship store on top of @nebutra/graph-model. Lets agents traverse "customer → invoice → product" without a SQL detour.
Exploreknowledge-rag
Retrieval-augmented generation pipeline — chunk, embed, store, retrieve, rerank — pluggable per vector store.
Explorelanding-builder
Block-based landing page builder — drag pre-styled sections, edit copy in place, publish to a subdomain with one click.
Explorellm-gateway
Provider-routing edge for LLM calls — fallback chains, per-tenant quota, response caching, usage metering wired in.
Explorelocal-embedding
On-device embedding via ONNX / WebGPU. Avoids the round-trip when the embed is short, private, or rate-limited at the provider.
Exploresearch_docs · query corpus247msread_file · fs.read at path12msrun_query · SQL on tenant DB84msfetch_url · HTTP get URL412ms
mcp
Model Context Protocol server primitives — register tools, expose resources, stream subscriptions. Run inside Sailor or stand-alone.
Exploreoutreach-engine
Cold-outreach orchestrator — list dedupe, persona-aware drafting, send via SES/Resend, reply detection. Routes hot replies back into @nebutra/agents.
Exploreplay-loader
Hot-reload loader for atelier plays — sandboxed iframe, message bridge, persistence on save.
Explore- Stripe Onboarding2.4k★ 4.8
- Slack Recap1.2k★ 4.7
- Notion Sync847★ 4.6
- Linear Triage412★ 4.5
play-marketplace
Marketplace shell for shareable atelier plays — discovery, ratings, install, attribution.
Exploreprovider-registry
Authoritative catalog of every supported provider — billing, queue, search, LLM — with capability matrix and per-region availability.
Explorereel
Short-form vertical video primitive — captures atelier moments, auto-captions via TTS pipeline, publishes to social channels.
Exploresandbox-runtime
Vercel Sandbox + Lambda + local runner adapter under one execute() call. Picks the runner from a policy rule list.
Exploresupport-deflector
Inline AI support layer — answers from your docs + past tickets before a human is needed. Hands off cleanly with full transcript.
Exploretime-machine
Project history scrubber — snapshot every save, branch a play from any past frame, diff two snapshots side by side.
Exploretool-registry
Runtime tool catalog — schemas, descriptions, safety levels. Hot-swap tools between agents without re-deploying.
Explorevideo-pipeline
Long-form video pipeline — split, caption, b-roll, render. Distributes the long stages to backends/python via queue.
Explorevoice-realtime
Realtime voice loop — input ASR, model stream, output TTS — sub-300ms end-to-end. Bridges OpenAI Realtime + Deepgram + ElevenLabs.
Explore