@fractalcode/channels
v2.0.0
Published
Fractal Code Channels — pre-built, scoped I/O adapters for the Void sandbox
Downloads
210
Maintainers
Readme
@fractal-code/channels
Pre-built, scoped I/O adapters for the Fractal Code Void Environment. Channels are the only way data enters or exits the Wasm sandbox; the agent's logic never gets raw filesystem, network, or process access.
import { AnthropicChannel } from "@fractal-code/channels";
const claude = new AnthropicChannel("plan-llm", {
description: "Plan-cell LLM call",
apiKeyEnvVar: "ANTHROPIC_API_KEY",
apiVersion: "2023-06-01",
allowedOperations: ["createMessage"],
allowedModels: ["claude-sonnet-4-5"],
maxTokensPerCall: 4096,
maxCallsPerMinute: 30,
timeoutMs: 30000,
});The scope is frozen at construction. Agents cannot widen it because they cannot touch channel code.
Built-in channel families (V5):
- LLM: Anthropic, OpenAI, Cohere, Google GenAI, Mistral
- Code platforms: GitHub, GitLab, GitHub Actions
- SaaS: Slack, Linear, Notion, Jira, Stripe, Sentry, Datadog, Resend
- Infra/data: Postgres, SQLite, S3, SQS, Docker, Kubernetes, Vault, Pinecone
- Tooling: Vitest/Jest/Pytest/GoTest/CargoTest, BrowserChannel, ProcessChannel, BuildChannel
- Compliance: Redactor (HMAC-SHA-256), Fairness (DP + EO metrics)
See the Fractal Code repo for the constitutional model and integration patterns.
License
See LICENSE.
