γράφος /ˈɣɾa.fos/ noun a written record, a letter; from γράφω, to write.
graphos
A multi-tenant property-graph service.PostgreSQL and Apache AGE behind a typed HTTP API.
For teams whose services share connected data (dependencies, assets, knowledge graphs, agent memory) and who already run PostgreSQL.
Use cases · latest release
In 30 seconds
- The problem
- Connected data turns up in most systems. Once several services need it, each one ends up holding database credentials, writing its own Cypher, and solving bulk loading, indexing and isolation on its own.
- The approach
- One service owns the graph. Your services call a typed REST API, and AI agents use the same reads over MCP. Only graphos talks to PostgreSQL + Apache AGE, on a private network.
- What it is not
- Not a new database engine, and not tied to any domain: graphos ships no labels of its own. Not a Cypher passthrough either: Cypher is read-only, by design, because writing through the API is far faster and safer on AGE (why).
- Licence
- Apache-2.0. Optional community detection uses a GPL library, left out of the published images (details).
- Data in or out
- A call to the API
- graphos's own SQL
- Refused, or a failure
- A tenant's graph
- The database
- ×Refused
At a glance
What graphos is made of
- Storage
- PostgreSQL 18 with Apache AGE 1.8; each tenant is its own AGE graph
- API
- Typed HTTP (FastAPI), JSON and NDJSON; the contract at
/openapi.json - Access
- Users and service accounts, 15-minute tokens, OpenID Connect sign-on, a level per tenant
- Algorithms
- Louvain and Leiden (optional extra), PageRank, betweenness, components, degree
- Clients
- An async, typed Python client; an optional web UI; plain HTTP
- Images
ghcr.io/pomentum/graphos-apiandgraphos-ui, amd64 and arm64- Licence
- Apache-2.0; community detection, an optional extra, uses a GPL library (which installs have it)
- Latest
- the latest release
- Agents
- An MCP endpoint,
/mcp: 22 read tools on the API's tokens and grants
Use cases
Find a situation close to yours and step through it.
Measured In graphos's latest release, with a result measured in graphos's own docs; each says on what.Tested In graphos's latest release and covered by graphos's automated tests; no result is measured for it here.Example Shown by an example script in the repository, its output quoted in the docs.
One graph, many services
Several services need the same connected data, and none of them should hold the database.
Platform teams6 steps
Load a big graph, and load it again
Tens of thousands of edges should go in fast, and sending them again after a failure should be safe.
Data and integration teams6 steps
Keep the edges equal to the source
The graph should match the source system's current edges, without a gap while it catches up.
Data and integration teams6 steps
A spreadsheet in, checked first
A CSV file from a spreadsheet or another system should become nodes, with every row checked before anything is written.
Analysts and data stewards5 steps
Follow every change
A search index, a cache or another service should learn what changed in the graph, and never miss a write.
Integration teams6 steps
Explore a software ecosystem
Hundreds of packages, people and teams, and you want to see which packages matter and how they group.
Engineering and platform teams6 steps
Communities and key nodes, re-run cheaply
Find the graph's central nodes and its communities, and keep them current without rewriting the whole graph each time.
Analysts and platform teams6 steps
An AI agent reads the graph
An AI agent should answer questions from the graph, read only what its person may read, and leave a record of every call.
AI and platform teams6 steps
Many teams, one service, single sign-on
Each team gets a graph of its own, people sign in with the company's provider, and the record says who asked.
Platform and security teams6 steps
Leave whenever you want
If you stop using graphos, your graph should still be yours: readable without it, and easy to take out.
Architects and platform owners5 steps
Benchmarks
What to expect on a single machine
Measured on a single machine with PostgreSQL 18 and AGE 1.8, the image's default settings (128 MB shared_buffers) and a single graphos API process. Your hardware and settings will differ: read these as orders of magnitude, not guarantees.
| Read | 1 user | 5 users at once |
|---|---|---|
| The whole mix, requests per second360 requests in 67 s and in 35 s | 5.4 /s | 10.3 /s |
| Shortest paths of up to 4 hops | 154 ms | 529 ms |
| Neighbours of a node (up to 200) | 350 ms at 5 users | |
| Console aggregate over a whole label | 621 ms | 1,397 ms |
| Measured | Result |
|---|---|
Bulk edge writesCOPY-staged upserts; 13k nodes and 44k edges, 4 GB shared_buffers | 1,153–4,840 edges/s |
| Dataset import into an empty tenantthe graph above, 1.19 million rows, every row through the tenant's indexes | 447 s, about 2,500 rows/s |
| Recording a write in the change feedin the same transaction as the write; on a single patch | +1.8 ms |
| Map of every label and the edges between themten million edges, sampled | about 1 s |
| Graph metrics, first rundegree, PageRank and components; synthetic, 270,000 nodes and 1.0 million edges | 51 s |
| Louvain communities, first runthe optional igraph extra; the same synthetic graph | 276 s |
Where the speed comes from: before and after graphos
| Measured | Before | graphos | Factor (log scale) | × |
|---|---|---|---|---|
Bulk edge writesper-row Cypher MERGE → COPY-staged INSERT … ON CONFLICT | 31 /s | 1,153–4,840 /s | 37–156 | |
| Substring search on a nameno index → the trigram index graphos creates | 1.2 s | 1.3 ms | ~920 | |
| Lookup by community idno index → the index graphos creates | 2.4 s | 0.5 ms | ~4,800 | |
| 12-read mix, 5 users, 360 requestsPostgreSQL 16 / AGE 1.6 → PostgreSQL 18 / AGE 1.8 | 57 s | 35 s | 1.6 | |
| Graph metrics re-run after 1 % more edgesevery moved score rewritten (0.13.2) → scores that moved under 1 % left as stored (0.14.0) | 40 s | 17 s | 2.4 | |
| Community re-run after 1 % more edgesthe optional igraph extra: Louvain from scratch, the default → Leiden from the stored communities, on request (0.14.0) | 103 s | 28 s | 3.7 |
The MERGE baseline came from an earlier graphos that still wrote with Cypher, so it can no longer be rerun; the index rows compare a table without the index against one with it; the PostgreSQL 16 copy of the read-mix graph carried about 3× dead space, which favours PostgreSQL 18. Setups and caveats: measured on PostgreSQL 18, why every write is SQL.
Web UI
Explore, edit, query






Get started
Run it on your machine
Docker with a recent Docker Compose (the docker compose plugin) and about 4 GB of memory for Docker. These commands run the published images (ghcr.io/pomentum/graphos-api and graphos-ui, amd64 and arm64), so nothing is built. They leave out community detection, whose library is GPL: add -f docker-compose.igraph.yml to download it at the first start. To build from source, add -f docker-compose.build.yml (the installation guide).
git clone https://github.com/pomentum/graphos.git && cd graphos
# 1. Random database passwords and graphos's master key, written once to
# services/graphos/deploy/secrets/ (gitignored)
bash scripts/init-secrets.sh # Windows: pwsh scripts/init-secrets.ps1
# 2. Database, API and web UI, from the published images (leave out --profile ui for the API alone)
docker compose -f docker-compose.graphos.yml --profile ui up -d
# 3. Up?
curl -s http://127.0.0.1:8080/readyz # {"status":"ready",...}- Sign in to the UI at
http://127.0.0.1:8081asgraphos/graphosand choose a new password: the installation guide. - Register a tenant, write nodes and edges, read them back: the usage guide, or the Python client (
pip install graphos-client, on PyPI). - Load the demo tenant to explore: 08_demo_ecosystem.py. Its communities, the colours of UI 01, need the igraph extra: start the stack with
-f docker-compose.igraph.yml, or the demo loads without them.
Documentation
Read further
- Installation guide
- Installing, the first sign-in, users, single sign-on, production settings, upgrading
- Reading graphos's data without graphos
- The table layout, reading it with SQL or Cypher, taking it out, loading an export into plain AGE
- Upgrading the database
- Moving an older graphos database to PostgreSQL 18 / AGE 1.8 with
docker compose up - Single sign-on
- Registering graphos at an OpenID Connect provider, a Keycloak example, troubleshooting
- Graph algorithms
- What the communities (Louvain, Leiden), PageRank, betweenness, components and degree find, what they are for, and how Louvain and Leiden differ
- Usage guide
- Practical integration patterns
- Connecting an agent (MCP)
- Where
/mcpis, getting a token, configuring a client, the tools and resources, security - Feature survey
- Every capability, briefly
- Concept
- Architecture, endpoint catalogue, capacity planning
- Apache AGE notes
- AGE pitfalls, indexing, Postgres tuning, measured numbers
- Web UI
- Running the UI, its views, how its code and text are organised