By caviri
rete: cloud-native, range-queryable RDF graph files — build them from any source, publish them anywhere, query them from Claude.
Trending marketplaces
7-day visitors to each marketplace page
npx claudepluginhub caviri/reteBuild queryable single-file RDF graphs (.rete) from any data source, publish them to static hosting, and query 60+ public knowledge graphs (SPARQL, SHACL, media previews) through the rete MCP server.
Generate static websites from data (CSV, JSON, JSON-LD, N-Triples) where every page is HTML content, JSON-LD, a static JSON API entry and WebMCP tools for in-browser agents. Plus a skill for adding WebMCP to any page and a checker. No framework, no build step, any static host.
An RDF graph in one file. Put it on any static host and query it with SPARQL, without a database server.
Try it in your browser · Documentation · Changelog
[!WARNING] rete is a highly experimental project. Expect breaking changes, in the file format and in the APIs, until the format is stable in version 1.0.
This software is dedicated to Aaron Swartz.
rete (Latin for "net", pronounced RAY-teh) stores a whole RDF graph in one
immutable .rete file: the term dictionary, the sorted triple indexes, and
optional extras such as a Dataset Card or a full-text index. Put the file on
any host that serves HTTP range requests (S3, Cloudflare R2, GitHub Pages,
Zenodo) and clients run SPARQL against it where it sits. A query fetches only
the parts of the file it needs, so there is no server to run and no import
step. The same engine runs in the CLI, in Python and JavaScript, and in the
browser through WebAssembly.
If you know Parquet or PMTiles, it is the same idea applied to RDF graphs.
Each file can also describe itself. Its Dataset Card (title, license, counts, vocabularies, starter queries) and its schema summary are read in a couple of small range requests, without touching the indexes.
rete is built for graphs that you publish and other people read: a dataset release, a nightly dump, a knowledge-base export, one file per tenant or per year. You host a file instead of running a triplestore, and people query it from a browser tab, a notebook or a shell.
It is not a database. Files are immutable, so a change means a rebuild. If you
need writes, transactions or an always-on endpoint under load, use a
triplestore such as Oxigraph, Jena or
GraphDB. There is no full OWL/RDFS entailment at query time either: rete
rewrites queries for OWL 2 QL (--entail) and can bake RDFS/OWL RL inferences
into the file at build time (--materialize); see
reasoning.
cargo install rete-cli --locked # the rete command-line tool
pip install rete-graph # Python 3.9+, also in Pyodide
npm install rete-graph # JavaScript: Node 18+ and browsers
No Rust toolchain? The CLI is also published as a small container image,
ghcr.io/caviri/rete-cli (amd64 and arm64). With this alias the commands
below work as written on the files in your current directory:
alias rete='docker run --rm -i -v "$PWD:/data" -w /data ghcr.io/caviri/rete-cli:latest'
Read the three container pitfalls in
Getting started
first: piping needs -i, the image runs as root on Linux, and Git Bash on
Windows rewrites paths.
Build a file from an RDF dump. N-Triples, N-Quads, Turtle, TriG, RDF/XML,
Jelly, JSON-LD (.jsonld) and YAML-LD (.yamlld) are detected by extension, and several inputs merge into one file.
--card embeds a Dataset Card.
rete build dump.nt -o graph.rete --card --title "My graph"
Inspect and query it locally:
rete card graph.rete
rete sparql graph.rete 'SELECT ?s ?name WHERE { ?s <http://xmlns.com/foaf/0.1/name> ?name } LIMIT 10'
7-day visitors to each marketplace page
UI/UX design intelligence skill with 80 styles, 194 palettes, 74 font pairings, 25 charts, and 22 stack guidelines
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.