Skip to content
add unreliability to any HTTP service
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
README.md
logo.png
main.go

README.md

Why?

I mostly do frontend at work, and I've always ignored building error states. Error states are a second class citizen in building UIs. One of the reasons is the developers building it don't get error states often from their APIs. What if we change that?

How?

rest-in-chaos is a command line utility that spawns proxy server, a really shitty one at that. Every request made to the rest-in-chaos server is either proxied to the passed URL, or returns an error response. It's completely random. It's chaos.

Installation

Run the following command

go get -u github.com/nshntarora/rest-in-chaos

The binary will now be available in the bin directory in your GOPATH

Usage

rest-in-chaos <<YOUR URL>>

The server will be running on the port 24267

Example

rest-in-chaos http://localhost:3000

Any request to localhost:24267 will be proxied to localhost:3000, with the exception of some requests chosen at random.

You can’t perform that action at this time.