Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { codeFrame } from './src/lib/code-frame.mjs';
import { readFileSync, readdirSync, writeFileSync } from 'node:fs';
import { join, relative } from 'node:path';
import { fileURLToPath } from 'node:url';

// Old docs URLs moved in the October 2026 restructure. Static output writes a redirect page at each
// old path (meta refresh plus canonical), which works on GitHub Pages.
Expand Down Expand Up @@ -63,16 +64,16 @@ const postBuild = {
name: 'post-build-seo',
hooks: {
'astro:build:done': ({ dir }) => {
const out = dir.pathname;
const pages = walk(out).filter((f) => f.endsWith('.html') && !f.includes('/pagefind/'));
const out = fileURLToPath(dir);
const pages = walk(out).filter((f) => f.endsWith('.html') && !/[\\/]pagefind[\\/]/.test(f));
for (const f of pages) {
const html = readFileSync(f, 'utf8');
const labelled = html.replace(/<th([^>]*)><\/th>/g, '<th$1><span class="sr-only">Item</span></th>');
if (labelled !== html) writeFileSync(f, labelled);
}
const noindex = pages
.filter((f) => /<meta name="robots" content="noindex"/.test(readFileSync(f, 'utf8')))
.map((f) => `${SITE_URL}/${relative(out, f).replace(/\.html$/, '').replace(/(^|\/)index$/, '')}`.replace(/\/$/, ''));
.map((f) => `${SITE_URL}/${relative(out, f).replaceAll('\\', '/').replace(/\.html$/, '').replace(/(^|\/)index$/, '')}`.replace(/\/$/, ''));
for (const f of readdirSync(out).filter((n) => /^sitemap-\d+\.xml$/.test(n))) {
const path = join(out, f);
const xml = readFileSync(path, 'utf8').replace(/<url><loc>([^<]+)<\/loc>[\s\S]*?<\/url>/g, (m, loc) => (noindex.includes(loc) ? '' : m));
Expand Down
74 changes: 74 additions & 0 deletions src/components/BuildWithAi.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
interface Props {
compact?: boolean;
}
const { compact = false } = Astro.props;
const promptText =
'Fetch https://10xgraph.com/prompt.md and follow it to build this with 10xGraph:\n<describe your app here>';
---
<div class:list={['build-ai', { 'build-ai-compact': compact }]} data-pagefind-ignore>
<div class="build-ai-row">
<button class="build-ai-btn" type="button" data-build-prompt={promptText} aria-label="Build with AI: copy starter prompt">
<span class="build-ai-label">Build with AI</span>
<span class="build-ai-badge">
<svg class="build-ai-icon build-ai-icon-copy" width="13" height="13" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="6" y="6" width="8" height="8" rx="1.5" />
<path d="M4 10H3.5A1.5 1.5 0 0 1 2 8.5v-5A1.5 1.5 0 0 1 3.5 2h5A1.5 1.5 0 0 1 10 3.5V4" />
</svg>
<svg class="build-ai-icon build-ai-icon-check" width="13" height="13" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M3.5 8.5L6.5 11.5L13 5" />
</svg>
<span class="build-ai-status" aria-live="polite">Copy prompt</span>
</span>
</button>
<p class="build-ai-note">
Paste into Claude Code, Codex or Copilot. <a href="/prompt.md">View prompt.md</a>
</p>
</div>
<pre class="build-ai-code" tabindex="0"><code>{promptText}</code></pre>
</div>

<script>
document.querySelectorAll<HTMLButtonElement>('[data-build-prompt]').forEach((btn) => {
const status = btn.querySelector<HTMLElement>('.build-ai-status');
const code = btn.closest('.build-ai')?.querySelector<HTMLElement>('.build-ai-code code');
const resetText = status?.textContent ?? 'Copy prompt';
let timer: ReturnType<typeof setTimeout> | undefined;

function notify(msg: string) {
if (!status) return;
status.textContent = msg;
btn.setAttribute('data-copied', msg === 'Copied' ? 'true' : 'false');
if (timer) clearTimeout(timer);
timer = setTimeout(() => {
status.textContent = resetText;
btn.removeAttribute('data-copied');
}, 1800);
}

function selectFallback() {
if (code && window.getSelection) {
const range = document.createRange();
range.selectNodeContents(code);
const sel = window.getSelection();
sel?.removeAllRanges();
sel?.addRange(range);
}
notify('Selected');
}

btn.addEventListener('click', async () => {
const text = btn.dataset.buildPrompt ?? '';
try {
if (navigator.clipboard && navigator.clipboard.writeText) {
await navigator.clipboard.writeText(text);
notify('Copied');
return;
}
} catch {
// Fall through to selection fallback.
}
selectFallback();
});
});
</script>
1 change: 1 addition & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const docLinks: DocSection[] = ['Get started', 'Concepts', 'Build agents', 'API
<nav aria-label="AI and feeds">
<h2>AI and feeds</h2>
<ul>
<li><a href="/prompt.md">prompt.md</a></li>
<li><a href="/skill.md">skill.md</a></li>
<li><a href="/llms.txt">llms.txt</a></li>
<li><a href="/llms-full.txt">llms-full.txt</a></li>
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/compare/10xgraph-vs-autogen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The first rows are where the two differ most. Orchestration basics are at the bo
| Replay-safe tool calls after a crash | Tool ledger in the checkpointer: a tool that already ran is not executed again on resume. Needs a checkpointer | Not documented. State is saved and loaded with `save_state()` and `load_state()` ([state docs](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/state.html)) |
| Versioned (compare-and-swap) state writes | Optimistic version check on durable writes in `PgCheckpointer` | Not documented. AutoGen returns state as a serializable dictionary and leaves storage to you ([state docs](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/state.html)) |
| Node and tool timeouts | `node_timeout` and `tool_timeout`, off until you set them | `TimeoutTermination` stops a team after a duration in seconds ([termination docs](https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/tutorial/termination.html)) |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose --k8s` writes `Dockerfile`, `docker-compose.yml`, `k8s.yaml` | Not documented |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose` or `--k8s` writes `Dockerfile`, `docker-compose.yml`, or `k8s.yaml` | Not documented |
| License | MIT, including API/CLI and client | MIT and CC-BY-4.0 dual license per the repository ([repository](https://github.com/microsoft/autogen)). `autogen-agentchat` on PyPI lists MIT ([PyPI](https://pypi.org/project/autogen-agentchat/)) |
| TypeScript client | Typed `10xgraph-client` | Not documented |
| Project status | 1.0, actively developed | Maintenance mode, community managed ([repository](https://github.com/microsoft/autogen)) |
Expand Down Expand Up @@ -156,9 +156,9 @@ asyncio.run(main())

```bash
pip install 10xgraph 10xgraph-api
10xgraph init --yes --mode full --auth jwt
10xgraph init --yes --mode full --auth jwt --storage postgres
10xgraph dev --host 0.0.0.0 --port 8000 --no-open
10xgraph build --docker-compose --k8s
10xgraph build --docker-compose # or --k8s separately
```

Endpoints include:
Expand Down Expand Up @@ -206,7 +206,7 @@ for await (const chunk of client.stream(
## Weak spots of 10xGraph

- Smaller community and fewer integrations than the Microsoft ecosystem.
- Renamed from Agentflow, so the 10xGraph name has little search history yet.
- Renamed from Agentflow, so the 10xGraph name has limited search history.
- No Studio-style visual builder. The playground is a test chat.
- Code-first only, and Python 3.12 or newer.

Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/compare/10xgraph-vs-crewai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The first rows are where the two differ most. Orchestration basics are at the bo
| Replay-safe tool calls after a crash | Tool ledger in the checkpointer: a tool that already ran is not executed again on resume. Needs a checkpointer | Flows can persist state with `@persist`. The Flows docs do not address tool call replay ([Flows docs](https://docs.crewai.com/en/concepts/flows)) |
| Versioned (compare-and-swap) state writes | Optimistic version check on durable writes in `PgCheckpointer` | Not documented |
| Node and tool timeouts | `node_timeout` and `tool_timeout`, off until you set them | `max_execution_time` on an agent, optional with no default ([agents docs](https://docs.crewai.com/en/concepts/agents)) |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose --k8s` writes `Dockerfile`, `docker-compose.yml`, `k8s.yaml` | Not documented for the open-source package. AMP lists cloud, dedicated VPC and self-hosted options ([pricing](https://www.crewai.com/pricing)) |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose` or `--k8s` writes `Dockerfile`, `docker-compose.yml`, or `k8s.yaml` | Not documented for the open-source package. AMP lists cloud, dedicated VPC and self-hosted options ([pricing](https://www.crewai.com/pricing)) |
| License | MIT, including API/CLI and client | MIT ([PyPI](https://pypi.org/project/crewai/)). AMP plans are commercial ([pricing](https://www.crewai.com/pricing)) |
| TypeScript client | Typed `10xgraph-client` | Not documented |
| Orchestration model | Typed `StateGraph` with nodes, conditional edges | Crews run tasks under a sequential or hierarchical process. In hierarchical mode a manager agent delegates ([processes docs](https://docs.crewai.com/en/concepts/processes)) |
Expand Down Expand Up @@ -123,9 +123,9 @@ Add `ROUTER`, `BILLING` and `SHIPPING` nodes to a `StateGraph` and let the route

```bash
pip install 10xgraph 10xgraph-api
10xgraph init --yes --mode full --auth jwt
10xgraph init --yes --mode full --auth jwt --storage postgres
10xgraph dev --host 0.0.0.0 --port 8000 --no-open
10xgraph build --docker-compose --k8s
10xgraph build --docker-compose # or --k8s separately
```

`10xgraph.json` points at your compiled graph:
Expand Down Expand Up @@ -155,7 +155,7 @@ You get `POST /v1/graph/invoke`, `POST /v1/graph/stream` (NDJSON), a WebSocket e
## Weak spots of 10xGraph

- Smaller community and fewer integrations.
- Renamed from Agentflow, so the 10xGraph name has little search history yet.
- Renamed from Agentflow, so the 10xGraph name has limited search history.
- No visual studio. The playground is a test chat, not a no-code builder.
- Code-first only, and Python 3.12 or newer.

Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/compare/10xgraph-vs-google-adk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The first rows are where the two differ most. Orchestration basics are at the bo
| Replay-safe tool calls after a crash | Tool ledger in the checkpointer: a tool that already ran is not executed again on resume. Needs a checkpointer | Not documented |
| Versioned (compare-and-swap) state writes | Optimistic version check on durable writes in `PgCheckpointer` | `DatabaseSessionService` uses in-process locking, and row-level locking on PostgreSQL and MySQL, to prevent races ([sessions docs](https://adk.dev/sessions/session/)) |
| Node and tool timeouts | `node_timeout` and `tool_timeout`, off until you set them | Not documented |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose --k8s` writes `Dockerfile`, `docker-compose.yml`, `k8s.yaml` | Documented deployment targets are Agent Runtime, Cloud Run, GKE and any container host ([deployment docs](https://adk.dev/deploy/)) |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose` or `--k8s` writes `Dockerfile`, `docker-compose.yml`, or `k8s.yaml` | Documented deployment targets are Agent Runtime, Cloud Run, GKE and any container host ([deployment docs](https://adk.dev/deploy/)) |
| License | MIT, including API/CLI and client | Apache-2.0 ([PyPI](https://pypi.org/project/google-adk/)) |
| TypeScript | Typed `10xgraph-client` for the 10xGraph API | ADK for TypeScript, an agent framework for Node.js and browsers, Apache-2.0 ([adk-js](https://github.com/google/adk-js)). It is a framework, not a client for a Python server |
| Model providers | OpenAI, Anthropic (direct, Vertex AI, Bedrock), Google (Gemini, Vertex AI), OpenAI-compatible endpoints | Gemini first-party, plus OpenAI, Anthropic and others through LiteLLM ([LiteLLM docs](https://adk.dev/agents/models/litellm/)) |
Expand All @@ -57,7 +57,7 @@ The first rows are where the two differ most. Orchestration basics are at the bo
1. **Auth and isolation are generated.** The `adk api_server` page documents session and run endpoints but no authentication ([API server docs](https://adk.dev/runtime/api-server/)). 10xGraph's Full setup turns on JWT auth, owner-only threads and a Redis rate limit in `10xgraph.json`.
2. **Side effects survive crashes.** 10xGraph's tool ledger skips tools that already ran when a run resumes. See [replay-safe tools](/docs/concepts/replay-safe-tools).
3. **Compare-and-swap on durable writes.** `PgCheckpointer` checks a state version on write and guards the Redis cache write by version, so a stale run cannot overwrite a newer one.
4. **Deploy files for two targets.** `10xgraph build --docker-compose --k8s` writes the files you would otherwise write by hand.
4. **Deploy files for two targets.** `10xgraph build --docker-compose` or `10xgraph build --k8s` writes the files you would otherwise write by hand.

## A support agent in 10xGraph on Gemini

Expand Down Expand Up @@ -124,9 +124,9 @@ app.invoke(

```bash
pip install 10xgraph 10xgraph-api google-genai
10xgraph init --yes --mode full --auth jwt
10xgraph init --yes --mode full --auth jwt --storage postgres
10xgraph dev --host 0.0.0.0 --port 8000 --no-open
10xgraph build --docker-compose --k8s
10xgraph build --docker-compose # or --k8s separately
```

Endpoints include `POST /v1/graph/invoke`, `POST /v1/graph/stream` (NDJSON), a WebSocket endpoint and thread state endpoints. The server is a container you can run on Cloud Run, GKE or any other host.
Expand Down Expand Up @@ -169,7 +169,7 @@ for await (const chunk of client.stream(
## Weak spots of 10xGraph

- Smaller community and fewer integrations.
- Renamed from Agentflow, so the 10xGraph name has little search history yet.
- Renamed from Agentflow, so the 10xGraph name has limited search history.
- No Google-managed runtime or visual tooling. The playground is a test chat.
- Code-first only, and Python 3.12 or newer.

Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/compare/10xgraph-vs-langgraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The rows below start with what differs most between the two. The shared basics (
| Replay-safe tool calls after a crash | Tool ledger in the checkpointer: a tool that already ran is not executed again on resume. Needs a checkpointer | Resume replays from a checkpoint. The docs advise wrapping side effects in tasks and making them idempotent ([functional API docs](https://docs.langchain.com/oss/python/langgraph/functional-api)) |
| Versioned (compare-and-swap) state writes | Optimistic version check on durable writes in `PgCheckpointer` | Not documented |
| Node and tool timeouts | `node_timeout` and `tool_timeout`, off until you set them | `TimeoutPolicy` per node, async nodes only, plus `RetryPolicy` ([fault tolerance docs](https://docs.langchain.com/oss/python/langgraph/fault-tolerance)) |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose --k8s` writes `Dockerfile`, `docker-compose.yml`, `k8s.yaml` | `langgraph build` builds an image ([CLI docs](https://docs.langchain.com/langsmith/cli)). Standalone self-hosting documents Helm and a Docker Compose example, and needs a license key ([standalone docs](https://docs.langchain.com/langsmith/deploy-standalone-server)) |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose` or `--k8s` writes `Dockerfile`, `docker-compose.yml`, or `k8s.yaml` | `langgraph build` builds an image ([CLI docs](https://docs.langchain.com/langsmith/cli)). Standalone self-hosting documents Helm and a Docker Compose example, and needs a license key ([standalone docs](https://docs.langchain.com/langsmith/deploy-standalone-server)) |
| License | MIT, including API/CLI and client | MIT for the library. LangSmith plans are commercial ([pricing](https://www.langchain.com/pricing)) |
| TypeScript client | Typed `10xgraph-client` for the 10xGraph API | `@langchain/langgraph-sdk`, MIT ([npm](https://www.npmjs.com/package/@langchain/langgraph-sdk)) |
| Visual tooling | Browser playground (`10xgraph dev`) | LangSmith Studio, free with a LangSmith account ([Studio docs](https://docs.langchain.com/oss/python/langgraph/studio)) |
Expand Down Expand Up @@ -94,9 +94,9 @@ Then scaffold, serve and package it:

```bash
pip install "10xgraph[google-genai,pg_checkpoint]" 10xgraph-api
10xgraph init --yes --mode full --auth jwt
10xgraph init --yes --mode full --auth jwt --storage postgres
10xgraph dev --host 0.0.0.0 --port 8000 --no-open
10xgraph build --docker-compose --k8s
10xgraph build --docker-compose # or --k8s separately
```

The Full setup writes an `10xgraph.json` with `"auth": "jwt"` and a Redis rate limit. If the process is killed after `refund_order` returns but before the run is saved, the resumed run reads the tool ledger and does not refund twice. See [replay-safe tools](/docs/concepts/replay-safe-tools).
Expand Down Expand Up @@ -144,7 +144,7 @@ For multi-agent handoffs, see [the handoff how-to](/docs/guides/handoff-between-
## Weak spots of 10xGraph

- Smaller community and fewer integrations than LangGraph.
- Renamed from Agentflow, so the 10xGraph name has little search history yet.
- Renamed from Agentflow, so the 10xGraph name has limited search history.
- No Studio-equivalent visual tool.
- Code-first only, and Python 3.12 or newer.

Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/compare/10xgraph-vs-llamaindex-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The first rows are where the two differ most. Orchestration and retrieval basics
| Replay-safe tool calls after a crash | Tool ledger in the checkpointer: a tool that already ran is not executed again on resume. Needs a checkpointer | Not documented. The docs mention durable workflows without detail ([workflow server docs](https://developers.llamaindex.ai/python/llamaagents/llamactl/workflow-api/)) |
| Versioned (compare-and-swap) state writes | Optimistic version check on durable writes in `PgCheckpointer` | Not documented |
| Node and tool timeouts | `node_timeout` and `tool_timeout`, off until you set them | Not documented |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose --k8s` writes `Dockerfile`, `docker-compose.yml`, `k8s.yaml` | Not documented |
| Docker Compose and Kubernetes manifests | `10xgraph build --docker-compose` or `--k8s` writes `Dockerfile`, `docker-compose.yml`, or `k8s.yaml` | Not documented |
| License | MIT, including API/CLI and client | `llama-index-core` is MIT ([PyPI](https://pypi.org/project/llama-index-core/)). LlamaParse is credit-priced with Free, Starter, Pro and Enterprise tiers ([pricing](https://www.llamaindex.ai/pricing)) |
| TypeScript | Typed `10xgraph-client` for the 10xGraph API | LlamaIndex.TS, a separate MIT-licensed TypeScript framework ([repository](https://github.com/run-llama/LlamaIndexTS)), and React UI hooks in LlamaAgents ([overview](https://developers.llamaindex.ai/python/llamaagents/overview/)) |
| Retrieval and indexing | Bring your own, exposed as a tool | The core of the framework: indexes, query engines, parsing ([PyPI](https://pypi.org/project/llama-index-core/)) |
Expand Down Expand Up @@ -134,9 +134,9 @@ app.invoke(

```bash
pip install "10xgraph[google-genai,pg_checkpoint]" 10xgraph-api llama-index
10xgraph init --yes --mode full --auth jwt
10xgraph init --yes --mode full --auth jwt --storage postgres
10xgraph dev --host 0.0.0.0 --port 8000 --no-open
10xgraph build --docker-compose --k8s
10xgraph build --docker-compose # or --k8s separately
```

You get REST and NDJSON streaming endpoints for invoke, stream and thread state, plus a WebSocket endpoint, with JWT checks and owner-only threads in front of them.
Expand Down Expand Up @@ -177,7 +177,7 @@ console.log(result.messages.at(-1)?.text());
## Weak spots of 10xGraph

- Smaller community and fewer integrations.
- Renamed from Agentflow, so the 10xGraph name has little search history yet.
- Renamed from Agentflow, so the 10xGraph name has limited search history.
- No built-in retrieval stack and no visual tooling. The playground is a test chat.
- Code-first only, and Python 3.12 or newer.

Expand Down
Loading
Loading