Skip to content

Takes http request data and dumps them into timestamped files

License

Notifications You must be signed in to change notification settings

RobKohr/request-recorder

Repository files navigation

Request Recorder

Request recorder is a tool that gives you a url that you can send web requests to, and it will record the header, info, the get query, and the body post to a log.

You will then be able to fetch the most recent requests from that log from an accompanying url.

A hosted example is up at: http://request-recorder.neverall.com/

Data is recorded in an sqlite3db

Usage

cp default-config.json config.json # you can change the port in config.json
npm install
npm start # this starts it in pm2 so it will run as a background process on your sever
npm run stop # to kill the process
npm run list # see if it is currently running

To Dos

  • Throttle writes to not overload the db
  • limit how many writes per channel
  • delete old writes
  • Some simple payment system to get more write access

This app is fairly dangerous to run on a server with other services. It liberally accepts requests and writes them to an sqlite db. It then allows you to read the 1000 most recent log messages for a channel. Also no security exists to

About

Takes http request data and dumps them into timestamped files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published