npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hyperterse

v1.2.1

Published

A declarative interface to connect your database to your AI agents

Readme

Hyperterse

Hyperterse

Connect your data to your agents.

A declarative interface between your data and modern software. Turn database queries into stable APIs and AI-ready tools—without exposing SQL, writing boilerplate, or coupling your application to your database.

WebsiteDocumentationQuick StartFeaturesExamples


What is Hyperterse?

Hyperterse is a high-performance runtime server that transforms database queries into REST endpoints and MCP (Model Context Protocol) tools.

You describe your queries once, in a simple configuration file. Hyperterse does the rest:

  • Generates individual, typed endpoints
  • Validates inputs automatically
  • Produces OpenAPI documentation
  • Exposes queries safely to AI systems

No ORMs. No boilerplate. No exposed SQL.

Designed for Modern Systems

AI & LLM Applications

Hyperterse is built with AI in mind.

  • AI agents and assistants - Safely query databases through MCP without exposing raw SQL.
  • LLM tool calling - Let models discover and invoke database operations autonomously.
  • Retrieval-augmented generation (RAG) - Use structured database queries as reliable context.
  • Conversational interfaces - Power chatbots that access live business data.
  • AI-driven analytics - Enable models to generate insights through validated queries.
  • Multi-agent systems - Share consistent database access across agents.
  • Natural language to SQL pipelines - Bridge human input and databases using tool calls.
  • AI dashboards - Query and visualize data dynamically.

Traditional Use Cases

  • Database-backed APIs without boilerplate
  • Lightweight microservices without ORM overhead
  • Rapid prototyping with configuration-first workflows

Features

Hyperterse comes several features that help you leverage accessing your data in a secure manner for your AI agents and LLMs.

Declarative data interfaces

Define the shape and intent of data access once, and let Hyperterse handle execution, validation, and exposure.

Agent-ready by design

Connect your data to AI agents through discoverable, callable tools—without exposing SQL, schemas, or credentials.

Zero-boilerplate API

Turn queries into production-ready APIs with typed inputs, predictable outputs, and built-in documentation.

Single source of truth

Generate REST endpoints, OpenAPI specs, LLM-readable docs, and MCP tools from one configuration file.

Database independence

Work across PostgreSQL, MySQL, and Redis using a consistent, unified interface.

Fast and iterative development

Update queries and schemas with immediate feedback during development.

Portable deployment

Ship a self-contained runtime that moves cleanly from local development to production.

Built to scale

Support everything from prototypes to multi-agent systems without changing your architecture.

Quick Start

Installation

Install Hyperterse with a single command:

curl -fsSL https://hyperterse.com/install | bash

Supported platforms:

  • Linux (amd64, arm64, arm)
  • macOS (Intel, Apple Silicon)
  • Windows (amd64, arm64)

For more installation options, see the installation guide.

Your First Query

Create a configuration file:

name: my-api

adapters:
  my_database:
    connector: postgres
    connection_string: "postgresql://user:password@localhost:5432/mydb"

queries:
  get-user:
    use: my_database
    description: "Retrieve a user by email address"
    statement: |
      SELECT id, name, email, created_at
      FROM users
      WHERE email = {{ inputs.email }}
    inputs:
      email:
        type: string
        description: "User email address"

Start the server:

hyperterse run -f config.terse

Call the endpoint:

curl -X POST http://localhost:8080/query/get-user \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]"}'

Response:

{
  "success": true,
  "error": "",
  "results": [
    {
      "id": 123,
      "name": "John Doe",
      "email": "[email protected]",
      "created_at": "2024-01-01T00:00:00Z"
    }
  ]
}

Documentation

📚 Read the docs →

Runtime Endpoints

When running, Hyperterse exposes several endpoints:

  • OpenAPI Documentation: GET /docs - Interactive API documentation
  • LLM Documentation: GET /llms.txt - AI-friendly documentation format
  • MCP Protocol: POST /mcp - Model Context Protocol JSON-RPC endpoint

Examples

MCP Protocol

List available tools:

curl -X POST http://localhost:8080/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/list",
    "id": 1
  }'

Invoke a tool:

curl -X POST http://localhost:8080/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "get-user-by-id",
      "arguments": {
        "userId": "123"
      }
    },
    "id": 1
  }'

User Management

queries:
  get-user-by-id:
    use: user_db
    description: "Retrieve user information by ID"
    statement: |
      SELECT id, name, email, created_at
      FROM users
      WHERE id = {{ inputs.userId }}

Analytics

queries:
  daily-stats:
    description: "Daily statistics over a date range"
    statement: |
      SELECT
        DATE(created_at) AS date,
        COUNT(*) AS total_events,
        COUNT(DISTINCT user_id) AS unique_users
      FROM events
      WHERE created_at BETWEEN {{ inputs.startDate }} AND {{ inputs.endDate }}
      GROUP BY DATE(created_at)
      ORDER BY date DESC

CLI

Run:

hyperterse run -f config.terse

Development mode (hot reload):

hyperterse dev -f config.terse

Generate artifacts:

hyperterse generate llms -f config.terse
hyperterse generate skills -f config.terse

Initialize:

hyperterse init

Upgrade:

hyperterse upgrade

Export:

hyperterse export -f config.terse -o dist

Configuration

Hyperterse uses a simple YAML-like configuration format (.terse files) to define your database adapters and queries.

Supported input types: string, int, float, boolean, uuid, datetime

Template syntax:

WHERE price <= {{ inputs.maxPrice }}

Optional inputs:

optional: true
default: "20"

Multiple databases: Hyperterse supports multiple adapters in a single configuration file.

For complete configuration reference, see the configuration guide.

Security

Hyperterse is designed with security as a baseline:

  • 🔒 Credentials are never exposed - Connection strings stay server-side
  • 🛡️ SQL is never returned to clients - Raw queries remain hidden
  • Inputs are validated and escaped - Strong typing prevents injection
  • 🔇 Errors are sanitized by default - Internal details stay internal

For production deployments, place Hyperterse behind a reverse proxy for authentication, rate limiting, and TLS. See the production security guide for best practices.

Contributing

Contributions are welcome! We appreciate your help in making Hyperterse better.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Add tests for your changes
  4. Ensure code follows standard Go formatting
  5. Open a pull request

Please keep changes focused and well-tested. For major changes, open an issue first to discuss your proposal. See CONTRIBUTING.md for detailed development guidelines.

Please note: By participating in this project, you agree to abide by our Code of Conduct. We are committed to providing a welcoming and inclusive environment for all contributors.

Support


Made with care by the Hyperterse team.

WebsiteGitHubDocumentation