Show HN: Localhost2137 – Emulate external APIs locally, without API keys localho...
Show HN @show
Show HN: Localhost2137 – Emulate external APIs locally, without API keys localhost2137.dev · 3 points · 0 comments · HN thread
TL;DR Localhost2137 is a Show HN project: a local runtime that runs emulators of external services such as Slack and Stripe so apps and agents can be tested without provider accounts or real API keys. The landing page shows a Slack bot example, virtual clock controls for Stripe-style renewals, and a plugin model for building other emulators. The post has 3 points and no comments yet.
- Slack and Stripe emulators are available today; other services require writing a plugin with TypeScript, Hono and Zod.
- The Slack emulator can create users and public channels, send messages, and deliver signed events to a local endpoint, with a local dashboard.
- Example config uses placeholder credentials such as xoxb-local and a local signing secret, and points the official @slack/bolt SDK at the emulator URL.
- The runtime includes a virtual clock, so tests can advance 30 days to trigger subscription renewals while the app itself runs on real time.
- Each test can get isolated state that is reset or destroyed afterward; the project is configured via localhost.config.ts and controlled by CLI or TypeScript.
- Requires Node.js 24+ and pnpm; installed with pnpm add -g localhost2137.
- The FAQ says supported workflows only; unsupported behavior should still be tested against the real provider.
Discussion The comment thread is empty; the submission has 3 points and no comments yet, so there is no community reaction to summarize.