agentleFS
heptauheptau/pgarachne/docs/llms.txt

pgarachne

llms.txt7 starsChanged 35 days agoMITView on GitHub

Turn PostgreSQL into a secure JSON-RPC API instantly — define a SQL function, get an API endpoint. No boilerplate, native MCP support, real-time SSE notifications, and database-native security. PgArachne is a production-grade, single-binary backend gateway written in Go. It introspects PostgreSQL functions and exposes them as JSON-RPC 2.0 endpoints, authenticating every request as a real PostgreSQL role so Row-Level Security works automatically. It also exposes a native Model Context Protocol (MCP) endpoint so AI clients such as Claude Desktop and…

The file

Files
llms.txt
# PgArachne

> Turn PostgreSQL into a secure JSON-RPC API instantly — define a SQL function, get an API endpoint. No boilerplate, native MCP support, real-time SSE notifications, and database-native security.

PgArachne is a production-grade, single-binary backend gateway written in Go. It introspects PostgreSQL functions and exposes them as JSON-RPC 2.0 endpoints, authenticating every request as a real PostgreSQL role so Row-Level Security works automatically. It also exposes a native Model Context Protocol (MCP) endpoint so AI clients such as Claude Desktop and Cursor can discover and call your database functions as tools.

The complete English documentation is also available as a single plain-text file: [llms-full.txt](https://www.pgarachne.com/llms-full.txt).

## Docs

- [Quick Start](https://www.pgarachne.com/en/quickstart/): Step-by-step Hello World: a PostgreSQL function with a parameter, a real-time SSE notification and a generated file, called from a plain web page.
- [About & Architecture](https://www.pgarachne.com/en/about-architecture/): Project overview and how the JSON-RPC gateway is built.
- [Architectural Decisions](https://www.pgarachne.com/en/architectural-decisions/): Why JSON-RPC, SSE, Go, and PostgreSQL functions were chosen over alternatives.
- [Installation](https://www.pgarachne.com/en/installation/): Download prebuilt binaries or build from source.
- [Configuration](https://www.pgarachne.com/en/configuration/): Environment variables and configuration reference.
- [JSON-RPC](https://www.pgarachne.com/en/json-rpc/): Reference of the /jsonrpc endpoint: request and response format, writing functions, errors, authentication and idempotency.
- [MCP (Model Context Protocol)](https://www.pgarachne.com/en/mcp/): Native MCP endpoint so AI clients can call PostgreSQL functions as tools.
- [File Download](https://www.pgarachne.com/en/file-download/): Binary files and ZIP archives served by PostgreSQL functions via the /file endpoint.
- [Real-time Notifications (SSE)](https://www.pgarachne.com/en/real-time-notifications/): Streaming PostgreSQL NOTIFY events to clients over Server-Sent Events.
- [Security & Authentication](https://www.pgarachne.com/en/security-roles/): JWT authentication mapped to native PostgreSQL roles, and Row-Level Security.
- [Deployment & HTTPS](https://www.pgarachne.com/en/deployment-https/): Running PgArachne behind a reverse proxy with TLS.
- [Idempotency Key Cleanup](https://www.pgarachne.com/en/idempotency-cleanup/): Maintenance of the pgarachne.requests table.
- [Metrics (Prometheus)](https://www.pgarachne.com/en/metrics/): Built-in Prometheus metrics endpoint.
- [Error Codes](https://www.pgarachne.com/en/error-codes/): Reference of API error codes and their meaning.
- [Comparison: PgArachne vs. PostgREST](https://www.pgarachne.com/en/comparison/): How PgArachne differs from PostgREST.
- [Tools](https://www.pgarachne.com/en/tools/): API Explorer, SSE tester, JWT helper, and macOS toolbar app.

## Optional

- [What's New](https://www.pgarachne.com/en/whats-new/): Changelog and release notes.
- [License & Trademark](https://www.pgarachne.com/en/license/): Licensing terms and trademark usage.
- [Support the Development](https://www.pgarachne.com/en/support-donate/): Ways to support the project.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.