Quickstart
Get Grapity running in under five minutes.
What you will do
- Install the Grapity CLI
- Initialize local configuration
- Start the Registry and Hub
- Push your first API spec
- Browse it in the Hub
Prerequisites
- Node.js 20+ or Bun 1.3.5+
- One OpenAPI or AsyncAPI spec file (or use the example below)
1. Install the CLI
bash
npm install -g @grapity/cli @grapity/registry @grapity/hubbash
bun add -g @grapity/cli @grapity/registry @grapity/hub2. Initialize local mode
bash
grapity init --localThis creates ~/.grapity/config.yaml with default settings:
yaml
mode: local
local:
port: 3750
sqlitePath: ~/.grapity/registry.db3. Start both servers
bash
grapity serveYou will see:
text
● Registry ready · http://localhost:3750
● Hub ready · http://localhost:3000The Registry stores and validates specs. The Hub is the developer portal.
4. Push your first spec
Create a minimal OpenAPI file named openapi.yaml:
yaml
openapi: "3.1.0"
info:
title: Payments API
version: "1.0.0"
paths:
/v1/payments:
get:
summary: List payments
responses:
"200":
description: OKThen push it:
bash
grapity registry push ./openapi.yaml --name payments-apiYou will see:
text
✓ Spec validated
✓ Backward compatibility: 0 breaking, 0 safe changes
✓ Version 1.0.0 registered5. Browse the Hub
Open http://localhost:3000 in your browser.
You will see payments-api in the spec list. Click it to explore endpoints, view the compatibility report, and compare versions.
Next steps
- Installation options — Docker, PostgreSQL, and remote mode
- Backward Compatibility — Learn what changes are blocked and why
- CLI Reference — Explore all commands