Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
A configurable server for mocking/stubbing external systems during development.
| Date | Stars |
|---|---|
| 2026-07-24 | 266 |
| 2026-07-25 | 266 |
| 2026-07-28 | 266 |
| 2026-07-30 | 266 |
| 2026-08-06 | 266 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
[](http://travis-ci.org/mrak/stubby4node)
[](http://badge.fury.io/js/stubby)
stubby4node
===========
A configurable server for mocking/stubbing external systems during development.
`stubby` takes endpoint descriptors in the form of a YAML or JSON file that tell it how to respond to incoming requests. For each incoming request, configured endpoints are checked in-order until a match is found.
## Table of Contents
* [Installation](#installation)
* [Supported Runtimes](#supported-runtimes)
* [Starting the Server(s)](#starting-the-servers)
* [Command-line Switches](#command-line-switches)
* [Endpoint Configuration](#endpoint-configuration)
* [Dynamic Token Interpolation](#dynamic-token-interpolation)
* [The Admin Portal](#the-admin-portal)
* [The Stubs Portal](#the-stubs-portal)
* [Programmatic API](#programmatic-api)
* [See Also](#see-also)
* [TODO](#todo)
* [NOTES](#notes)
## Installation
### via npm
npm install -g stubby
This will install `stubby` as a command in your `PATH`. Leave off the `-g` flag if you'd like to use stubby as an embedded module in your project.
### via source
git clone https://github.com/mrak/stubby4node.git
cd stubby4node
npm start -- <stubby args>
## Supported Runtimes
* [node.js](http://nodejs.org/) - latest and currently supported LTS versions
Development is on x86-64 Linux.
## Starting the Server(s)
Some systems require you to `sudo` before running services on certain ports (like 80)
[sudo] stubby
## Command-line Switches
```
stubby [-a <port>] [-c <file>] [-d <file>] [-h] [-k <file>] [-l <hostname>] [-p <file>] [-q]
[-s <port>] [-t <port>] [-v] [-w] [-H]
-a, --admin <port> Port for admin portal. Defaults to 8889.
-c, --cert <file> Certificate file. Use with --key.
-d, --data <file> Data file to pre-load endoints. YAML or JSON format.
-h, --help This help text.
-k, --key <file> Private key file. Use with --cert.
-l, --location <hostname> Hostname at which to bind stubby.
-q, --quiet Prevent stubby from printing to the console.
-p, --pfx <file> PFX file. Ignored if used with --key/--cert
-s, --stubs <port> Port for stubs portal. Defaults to 8882.
-t, --tls <port> Port for https stubs portal. Defaults to 7443.
-v, --version Prints stubby's version number.
-w, --watch Auto-reload data file when edits are made.
-H, --case-sensitive-headers Do not normalize response headers to lower-case.
```
When used from the command-line, `stubby` responds to the `SIGHUP` signal to reload its configuration.
## Endpoint Configuration
This section explains the usage, intent and behavior of each property on the `request` and `response` objects.
Here is a fully-populated, unrealistic endpoint:
```yaml
- request:
url: ^/your/awesome/endpoint$
method: POST
query:
exclamation: post requests can have query strings!
headers:
content-type: application/xml
post: >
<!xml blah="blah blah blah">
<envelope>
<unaryTag/>
</envelope>
file: tryMyFirst.xml
response:
- status: 200
latency: 5000
headers:
content-type: application/xml
server: stubbedServer/4.2
body: >
<!xml blah="blah blah blah">
<responseXML>
<content></content>
</responseXML>
file: responseData.xml
- status: 200
body: "Haha!"
```
### request
This object is used to match an incoming request to stubby against the available endpoints that have been configured.
#### url (required)
* is a full-fledged __regular expression__
* This is the only required property of an endpoint.
* signify the url after the base host and port (i.e. after `locExcerpt of 23,153 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:f8a7310ea20e383d, topic:testing