# mock

API mocking.

Source: [Console review](<https://console.dev/tools/mock>)

Website: [https://dhuan.github.io/mock/latest/index.html](<https://dhuan.github.io/mock/latest/index.html>)

Profile updated: 2026-10-16

Category: [API clients](<https://console.dev/tools/categories/developer-tools-api-client>)

## Supported tech stack

Research checked: 2026-10-11

### Runs on

- Linux (Operating system)
- macOS (Operating system)

### SDK support

- Go (Language)

Source: [Research source](<https://dhuan.github.io/mock/latest/index.html>)

Documented compatibility; coverage may be incomplete. Written in describes implementation, not user-project language support.

HTTP mocking tool provides a Go package and Linux/macOS downloads.

## Console’s review — 2025-11-06

Reviewed: 2025-11-06

Author: [David Mytton](<https://console.dev/about#david-mytton>)

Citation: [This review](<https://console.dev/tools/mock#review_92bcc934deff0d27f6beee953974a3c3de4c3edcefbff2c700e4f21b6ef90bed>)

### What we like

Define arbitrary API routes and response handlers from a CLI or config file. Extend any HTTP service with new routes. Handlers can be shell scripts. Supports conditional responses and middleware. Define test assertions with integration into Go for programmatically adjusting tests.

### Tradeoffs

Only provides builds for macOS and Linux even though it’s written in Go and could offer more.

This review reflects Console’s assessment at publication on 2025-11-06. Features and limitations may have changed since the review date.

## Is mock a fit?

Based on [Console’s review published on 2025-11-06](<https://console.dev/tools/mock#review_92bcc934deff0d27f6beee953974a3c3de4c3edcefbff2c700e4f21b6ef90bed>).

Summary updated: 2026-10-16

### Who it’s for

Developers of HTTP services should consider this tool for defining and testing API routes

### Why consider it

This tool allows developers to define arbitrary API routes and response handlers

### Keep in mind

The tool's limitation is that it only provides builds for macOS and Linux

[Selection criteria](<https://console.dev/selection-criteria>) · [About Console](<https://console.dev/about>) · [Browse tools](<https://console.dev/tools>)
