api-mirror

Set up and manage a local SQLite mirror for upstream API data.

19|9|Updated Mar 21, 2025
One-click install
npx skills add https://github.com/cyanheads/ntfy-mcp-server --skill api-mirror
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-mirror
Source: https://github.com/cyanheads/ntfy-mcp-server/tree/main/skills/api-mirror
Command: npx skills add https://github.com/cyanheads/ntfy-mcp-server --skill api-mirror

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a solution to inefficient server-side handling of large or slow APIs by mirroring the data locally. It enhances performance by reducing API requests and improving response times.

Core Features & Use Cases

  • Local Mirror: Sets up a persistent and self-refreshing mirror of bulk datasets, caching API responses locally.
  • Performance Improvement: Reduces API latency and server load by serving cached data directly.
  • Use Case: If your server handles a large, slow API, you can use this Skill to mirror the data and serve it locally for faster response times and reduced load.

Quick Start

Define the data mirror and ingester in your SKILL.md, and use papers.runSync() to start the mirror process with mode: 'init' to initialize and mode: 'refresh' for incremental updates.

Frequently Asked Questions about api-mirror

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cache slow API responses locally to improve performance?

You can cache slow API responses locally by setting up a persistent SQLite data mirror. This self-refreshing local store serves bulk datasets directly, reducing API latency and lowering server load.

What is a local SQLite data mirror for upstream APIs?

A local SQLite data mirror is a persistent store that wraps upstream data sources. It uses custom ingesters and schemas to cache bulk datasets locally, enabling faster response times and reducing external API requests.

How do I initialize and refresh a local API data mirror?

To initialize a local API data mirror, define the mirror and ingester in your configuration, then run the mirror process with mode 'init'. Use mode 'refresh' for incremental updates to the local SQLite store.

Does this local API mirror support custom schemas for specific datasets?

Yes, the local API mirror supports custom schemas and custom ingesters. This allows the SQLite store to be optimized specifically for your upstream data source and intended use case.

When should I use a local SQLite mirror instead of direct API calls?

You should use a local SQLite mirror when your server handles a large or slow API. Mirroring the bulk datasets locally reduces API latency, minimizes external requests, and significantly improves response times.