Skip to content

Repository files navigation

Archer

The Ultimate Universal Local Mock API Server

Archer is a blazing-fast, zero-config, embedded SQLite-backed API server designed to supercharge frontend and mobile development. Stop waiting for the backend team. Archer provides a gigantic pre-seeded universe of mock data instantly, complete with a beautiful built-in Postman-style UI.

image

Features

  • Massive Pre-seeded Database: Over 68,000 realistic records across nearly 70 endpoints (Users, E-commerce, Finance, Medical, Travel, Crypto, and more!).
  • ✨ The Magic Engine: Need an endpoint that isn't pre-seeded? Just request it! GET /api/spaceship-parts — Archer will instantly infer the schema, generate 1,000 realistic records using AI/Faker logic, and create a brand new SQLite table on the fly.
  • Advanced Querying: Full support for pagination, sorting, and filtering built-in.
    • ?_limit=10&_page=2
    • ?_sort=price&_order=desc
    • ?price_gte=100&status=active
  • Universal URL Parsing: Smart URL rewriting lets you test any path format. Query /api/v1/users or /api/tenant/v2/users and Archer will gracefully route it.
  • Beautiful API Explorer: A sleek, dark-mode GUI built right into the server for exploring endpoints, testing queries, and viewing syntax-highlighted JSON responses.
  • Vercel Ready: Fully configured for serverless deployment on Vercel with a read-only filesystem workaround.

Installation & Setup

  1. Install dependencies:

    npm install
  2. Generate the Massive Dataset (First Time Only):

    node bin/archer.js reset

    This takes ~300ms and generates a complete SQLite database packed with mock data.

  3. Start the Server:

    npm start
  4. Explore the Data: Open your browser to http://localhost:4000 to launch the Archer API Explorer.

Endpoints out of the box

Just a handful of the 68+ pre-seeded REST APIs you get immediately:

Core & CRM: /api/users, /api/companies, /api/customers, /api/projects Commerce: /api/products, /api/orders, /api/transactions, /api/invoices Tech & Dev: /api/servers, /api/networks, /api/hackers, /api/passwords Transport & Travel: /api/airlines, /api/flights, /api/hotels, /api/vehicles Finance: /api/crypto_wallets, /api/credit_cards, /api/banks, /api/investments

Deploying to Vercel

Archer is ready for the cloud. It features a clever /tmp filesystem workaround allowing the robust SQLite engine to run flawlessly in Vercel's serverless environment.

  1. Push your repository to GitHub.
  2. Import the project in Vercel.
  3. Deploy! (Vercel automatically detects vercel.json and api/index.js).

Built with ❤️ by icy000z.

About

Archer is a blazing-fast, zero-config, embedded SQLite-backed API server designed to supercharge frontend and mobile development. Stop waiting for the backend team. Archer provides a gigantic pre-seeded universe of mock data instantly, complete with a beautiful built-in Postman-style UI.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages