Skip to content

Core concepts

Hyperterse is built around three simple concepts: Adapters, Queries, and Inputs. Understanding these will help you build powerful data APIs quickly.

  1. Adapters establish database connections
  2. Queries define SQL statements that use those adapters
  3. Inputs parameterize queries with validated, typed data
  4. Hyperterse generates REST endpoints, MCP tools, and documentation automatically
name: my-api
# 1. adapter: connect to the database
adapters:
main_db:
connector: postgres
connection_string: 'postgresql://user:pass@localhost:5432/app'
# 2. query: define what to expose
queries:
get-user:
use: main_db # Which adapter to use
description: 'Get user by ID'
statement: |
SELECT id, name, email
FROM users
WHERE id = {{ inputs.userId }} # 3. Input: Parameterize
inputs:
userId:
type: int
description: 'User ID'

This single configuration generates:

  • POST /query/get-user — REST endpoint
  • MCP tool get-user — For AI assistants
  • OpenAPI documentation at /docs
  • LLM-friendly documentation at /llms.txt

Understanding what Hyperterse doesn’t do helps set expectations:

Hyperterse IsHyperterse Is Not
A query gatewayAn ORM
Configuration-drivenA code generator
Stateless runtimeA database migration tool
Read-optimizedA full CRUD framework

You write SQL directly—Hyperterse doesn’t abstract it away. This gives you full control over query performance and behavior.