helix-foundry README

项目的 README,来自 github.com/HelixDB/helix-foundry。合并为一个 markdown 文件:README.md。

Helix Foundry

Your company's data, connected into one ontology.

Try it on Helix Cloud · Docs · Run it on your computer · Apache 2.0

Connect your databases, tools and documents, let an agent draft an ontology over them, and load it into HelixDB as one connected graph. Explore it, follow every value back to the row or quote it came from, and ask questions with cited answers. Use it hosted at foundry.helix-db.com, or run it on your own computer with one command.

Try it on Helix Cloud, no install

Opens a sample company's data, ontology and Analyst, free. Connect your own when you're ready.

The Helix Foundry Explorer: customers, invoices and contracts as one connected graph, with the selected customer's properties and relationships beside it

Get started with your coding agent

On Helix Cloud. Paste this into Claude Code, Codex, Cursor or any agent that can run commands:

Set up Helix Foundry with me: https://foundry.new

The agent adds the Helix MCP, signs you up through it if you don't have an account yet, and builds your first ontology with you. You never need the Helix dashboard: the agent sends you a link only to sign in or to enter a password or key.

On your computer. With Docker running, paste this into your agent:

Set up Helix Foundry on this computer.

Clone https://github.com/helixdb/helix-foundry.git (or use the copy I
already have), then follow its README.md and local/README.md to start it
with Docker Compose and check that it is up. Ask me before deleting data,
removing Docker volumes or stopping anything that is already running.
When it is ready, give me the URL and tell me what to do next.

Approve its git and docker commands one at a time rather than all docker commands up front. You enter API keys and database passwords in Foundry, in your browser: your agent never needs them.

Run it on your computer

You need Docker with Compose v2, ports 3000 and 8333 free, and room for a few GB of images on the first start. Rather not install anything? Helix Cloud runs the same build, with a sample company to try first.

git clone https://github.com/helixdb/helix-foundry.git
cd helix-foundry
docker compose up -d --wait

Open http://localhost:3000. Foundry creates My workspace for you. No sign-in is required.

AI: Foundry uses the ANTHROPIC_API_KEY or OPENAI_API_KEY of the shell that ran docker compose up, else a local model in Ollama or LM Studio (docker compose --profile ollama up -d runs Ollama beside Foundry). Open Settings › AI models to see the selected provider or choose another. Until there is one, drafting, uploading documents and asking wait for it.

See the local setup guide for what runs, where data lives, AI providers, ports and connecting to databases on your computer.

What you do next

  1. No data to hand? Under Get started’s two cards, click Or look around a sample company first: Acme Corp, a made-up software company, as a PostgreSQL database (customers, subscriptions, invoices, support tickets, usage) and documents (contracts, call notes, an incident report). It walks you through the data, the goal, a ready-made ontology, its load and a question, in about a minute, once Foundry has an AI provider.
  2. Otherwise, connect your data or upload documents, say what you want to know, and let the ontology agent draft the ontology.
  3. Review the draft, make it current and load it into HelixDB.
  4. Explore the graph and its records, or ask the Analyst.

The Analyst answering a question about a customer contract, with a chart of the largest invoices and numbered sources for every claim

What you get

Everyday commands

Run these from the repository.

docker compose ps                         # status
docker compose logs -f site foundry       # follow logs (Ctrl+C to stop)
docker compose stop                       # stop
docker compose up -d --wait               # start again
git pull && docker compose up -d --wait   # upgrade to the latest release

Foundry starts again with Docker unless you stopped it. Your data lives in Compose volumes, which docker compose down keeps. Never run docker compose down -v unless you mean to delete everything: it removes your data and the key that seals every password and API key you gave Foundry.

Security model

The local install is for one person on their own computer. There is no sign-in, so anyone who can reach it controls it.

Documentation

Document What it covers
Helix Foundry docs Using Foundry, hosted or on your computer
local/README.md The local install: what runs, AI providers, Ollama, images, ports, databases on this machine
AGENTS.md The repository's guide for contributors and coding agents: layout, rules, each area
backend/README.md Foundry's Go backend: build, test and run it

Develop

The site, the Foundry app and its same-origin API proxy (Next.js), is at the root. It needs Node 24 and pnpm.

pnpm install
pnpm dev:mock        # the hosted site against a mock API, on http://localhost:3000
pnpm dev:mock:local  # the local build against the mock

The mock stands in for the API and sign-in, so no account or secret is needed. Before sending a change, run pnpm typecheck, pnpm lint, pnpm test and pnpm e2e (Playwright; needs pnpm exec playwright install chromium). AGENTS.md describes the layout and the rules.

backend/ is Foundry's backend, the Go module github.com/helixdb/helix-foundry/backend: the API, the workers that sync data, draft ontologies, load them into HelixDB and answer questions, and their MySQL store. backend/README.md says how to build, test and run it. Hosted Helix runs the same code as a library.

License

Everything in this repository, the site and the backend, is Apache 2.0, and so are Foundry's three images: foundry-site and foundry, built from it, and ontology-agent, the ontology agent's. HelixDB, which local/compose.yaml runs beside them, is Apache 2.0 too.

helix-foundry (HelixDB/helix-foundry)

正在搜索数据库…

这是什么?Helix Foundry 是一个本地优先的数据工作区,把你公司的各种工具(数据库、Stripe、WorkOS、PostHog、文件、API)连接成一份存储在 HelixDB 中的建议本体,让你可以探索数据并向数据提问。
这是托管服务,还是完全在我自己的机器上运行?它通过 Docker Compose 完全在你自己的电脑上运行,无需创建任何账号,也不需要在远程托管任何东西;AI 默认也在本地运行。
怎么让它跑起来?把安装提示词粘贴给 Claude Code、Codex 或 Cursor 这类编程代理,它会检查 Docker、生成加密密钥并构建/启动 Docker Compose 全套服务;你也可以自己用 scripts/setup.sh 手动快速启动。
开始之前需要装好哪些东西?需要带 Compose v2 插件的 Docker,另外安装脚本还需要 git、bash 和 openssl;首次运行还会下载几个 GB 的内容,包括 HelixDB、Ollama 和 qwen3:4b 模型。
它在 Windows 或 Intel Mac 上能用吗?Windows 未经过测试,因为脚本需要 bash;在 Apple Silicon 上 Docker 无法使用 Metal,所以为了获得更快的本地 AI,推荐用原生 Ollama 替代捆绑的 Docker 模型。
我的数据或 AI 使用会离开我的机器吗?不会,默认情况下一切都留在本地:应用只监听 127.0.0.1,拒绝来自其他来源的请求,AI 通过 Ollama 在本地运行,除非你主动选择 Claude 或 OpenAI 并输入自己的密钥。
它能连接哪些数据源?它支持 Neon、Supabase、PlanetScale、PostgreSQL、MySQL、Stripe、WorkOS、PostHog、REST API、兼容 S3 的存储、文件上传(CSV、JSON、JSONL、Parquet)以及一个通用数据接入 API。
它如何保持数据是最新的?在支持的地方,它对 PostgreSQL 和 MySQL 使用原生变更捕获,其他数据源则退回到定时快照刷新,存储带版本、不可变的 Parquet 快照并保留结构漂移历史。
向数据提问有哪些 AI 选项?安装时可以选择 Local、Claude 或 OpenAI;本地选项通过 Ollama 使用 qwen3:4b 模型,而 Claude 和 OpenAI 需要你在浏览器中提供自己的 API 密钥。
开发者能把 Helix Foundry 集成到其他工具中吗?可以,它在 /api/docs 提供 OpenAPI 规范、TypeScript SDK,以及默认只读的受限 API 令牌,可在 Settings → Developer tools 中获取。
有哪些类似的项目?semantica, pentagi, airbyte, m_flow, WeKnora, sim, supoclip, MemoryBear
作者
HelixDB
大小
30.7 MB
星标
2.2K
更新
提交Nov 17
时长
1个月
提交 · 90 天