γράφος /ˈɣɾ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.

Step through real situations and see what graphos does in each: who reaches the graph, how data gets in and stays right, and what you can compute and read from it.

Use cases · latest release

Each use case says what shows it: a measured result, the automated tests, or an example you can run.

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).
your servicestyped HTTP · Python clientinternal networkthe database has no published portgraphos-api/v1 · /mcp · tokens and grants · audit logAI agentsMCP · /mcpgraph algorithmsbeside the API · igraph optionalPostgreSQL 18 + Apache AGE 1.8only graphos-api connectspeoplethe web UIacmeits own AGE graphdemoits own AGE graphsalesits own AGE graphchange feed · in the same transaction as each write
  • Data in or out
  • A call to the API
  • graphos's own SQL
  • Refused, or a failure
  • A tenant's graph
  • The database
  • Refused
Your services, AI agents and people call graphos-api, with a bearer token; it alone connects to PostgreSQL and Apache AGE, on an internal network. Each tenant is its own AGE graph. Graph algorithms run beside the API, in a process of their own, and write their results back; every write is recorded in the change feed, in the same transaction.

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-api and graphos-ui, amd64 and arm64
Licence
Apache-2.0; community detection, an optional extra, uses a GPL library (which installs have it)
Agents
An MCP endpoint, /mcp: 22 read tools on the API's tokens and grants

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.

Reads of a graph of 251,246 nodes and 940,144 edges, warm: 30 runs of a mix of 12 reads (360 requests), no pause between requests, none failed. Times are per-request medians (p50).
Read1 user5 users at once
The whole mix, requests per second360 requests in 67 s and in 35 s5.4 /s10.3 /s
Shortest paths of up to 4 hops154 ms529 ms
Neighbours of a node (up to 200)350 ms at 5 users
Console aggregate over a whole label621 ms1,397 ms
Writes and computations, each on the data its row names.
MeasuredResult
Bulk edge writesCOPY-staged upserts; 13k nodes and 44k edges, 4 GB shared_buffers1,153–4,840 edges/s
Dataset import into an empty tenantthe graph above, 1.19 million rows, every row through the tenant's indexes447 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, sampledabout 1 s
Graph metrics, first rundegree, PageRank and components; synthetic, 270,000 nodes and 1.0 million edges51 s
Louvain communities, first runthe optional igraph extra; the same synthetic graph276 s
Where the speed comes from: before and after graphos
Factor = before ÷ after; bars on a log scale. Writes: 13k nodes and 44k edges, 4 GB shared_buffers. Lookups: a ~117k-row label. Reads: the graph and machine above. Re-runs: a synthetic 250,080 nodes and 951,272 edges, 1 % more edges added between runs.
MeasuredBeforegraphosFactor (log scale)×
Bulk edge writesper-row Cypher MERGE → COPY-staged INSERT … ON CONFLICT31 /s1,153–4,840 /s37–156
Substring search on a nameno index → the trigram index graphos creates1.2 s1.3 ms~920
Lookup by community idno index → the index graphos creates2.4 s0.5 ms~4,800
12-read mix, 5 users, 360 requestsPostgreSQL 16 / AGE 1.6 → PostgreSQL 18 / AGE 1.857 s35 s1.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 s17 s2.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 s28 s3.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

The Explore view of the demo tenant, an invented software ecosystem: about 450 nodes coloured by the community Louvain found, six clusters around shared core libraries; the selected library's panel shows its community id and the graph metrics graphos computed.
UI 01Explore, on the demo tenant: coloured by community (the optional igraph extra), a core library selected with the metrics graphos computed for it.
The schema diagram of the demo tenant: Library, Framework and Tool in a block under their parent label Package, the selected label's relationships, its properties in a panel (declared, or carried without a definition), and the Add menu for a new label, relationship type, search index or property.
UI 02The schema editor: labels with their kinds, relationship types, and adding to the schema in place.
The Query page of the demo tenant: a saved query's Cypher, coloured, its parameter as a field, the result as a table with each node shown with its label's icon, and the tenant's saved queries beside it.
UI 03The Query page (where the Cypher console is on): Cypher coloured and suggested as you type, a saved query's form, the result with each node's label icon.
A query's result on the canvas, laid out in layers from left to right: a package, the packages it depends on and theirs, each drawn in its label's colour with its icon, with a legend of the labels and their counts.
UI 04A query's result on the canvas, laid out in layers along its edges and drawn with the tenant's label styles.
The Explore canvas of the demo tenant with 31 nodes picked by a loop drawn with Shift-drag, shown in the accent colour; a bar at the foot offers Expand, Hide, Export and Delete for them, and a minimap in the corner frames the part of the graph on screen.
UI 05Many nodes at once: a loop drawn with Shift-drag (or Ctrl / ⌘ click) picks them; the bar expands, hides, exports or deletes them together. A minimap frames the part on screen.
The CSV import dialog: a semicolon-separated file of people mapped to the Person label, its columns as properties with their types, and graphos's check of every row before anything is written: one row refused for an empty id, a repeated id merged, a value that does not read as a number left out.
UI 06Importing a CSV file: the columns mapped to a label's properties, and graphos's check of every row before anything is written.

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",...}
  1. Sign in to the UI at http://127.0.0.1:8081 as graphos / graphos and choose a new password: the installation guide.
  2. Register a tenant, write nodes and edges, read them back: the usage guide, or the Python client (pip install graphos-client, on PyPI).
  3. 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 /mcp is, 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

Questions people ask first: How it works →