Skip to content
/ darkstar Public
forked from fasterize/darkstar

An API to flush any HTTP cache server/service

License

Notifications You must be signed in to change notification settings

ssuda/darkstar

 
 

Repository files navigation

Darkstar

Darkstar is an API to flush multiple HTTP cache servers, including CDN.

Usage example

Flush Fasterize cache:

curl -v -X DELETE http://localhost:9080/v1/caches/fasterize/zones/${FASTERIZE_CONFIG_ID} \
  -H Content-Type:application/json \
  --data '{"authorizationToken": "${FASTERIZE_API_KEY}"}'

Flush Fasterize and KeyCDN caches:

curl -v -X DELETE http://localhost:9080/v1/caches/zones \
  -H Content-Type:application/json \
  --data '{"fasterize": {"authorizationToken": "${FASTERIZE_API_KEY}", "zoneID": "${FASTERIZE_CONFIG_ID}"}, "keycdn": {"authorizationToken": "${KEYCDN_API_KEY}", "zoneID": "${KEYCDN_ZONE_ID}"}}'

Setup

Install tools:

npm install -g typescript gulp-cli typings

Install dependencies:

typings install
npm install

Run it

Start Darkstar:

gulp start

Run tests

Run tests:

gulp test

Continuously run tests:

gulp watch-test

API Documentation

When started, go to http://localhost:9080/doc

About

An API to flush any HTTP cache server/service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.1%
  • JavaScript 3.9%