npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

recurry

v0.0.27

Published

recurring REST call scheduler (instead of cron+flock)

Downloads

19

Readme

Recurry

recurrent REST call scheduler

Note: for delayed jobs please use a queue like kue

These days almost anything can be triggered using REST calls, so meet Recurry. Recurry does recurring REST calls, with a nice degree of (remote) control.

You can think of recurry as cron+flock on a unix platform, except without the files (but a REST interface).

Usage

$ npm install recurry coffee-script
$ echo '{"cache":{"scheduler":[],"timers":[]}}' > cache.json
$ RECURRY_CACHEFILE="cache.json" ./server

NOTE: Recurry supports persistance, but does not require a database (instead it uses a local jsonfile)

Hubot interface

Instead of fiddling with crontab-files, the recurry-hubot module allows hubot interfacing with the REST api:

  • starting, stopping, pausing, resuming recurring REST calls
  • adding and removing REST calls including payload

Make sure you run npm install recurry-hubot in your hubot rootdir, and get in control:

hubot> recurry

id           method  url                          payload  scheduler  triggered  triggered_last            status   timer
-----------  ------  ---------------------------  -------  ---------  ---------  ------------------------  -------  -----
ping         post    http://foo.com/ping          {}       1 minutes  1235       2015-06-12T13:35:49.173Z  start'd  {}   
pushjob      post    http://queue.foo.com/ping    {}       5 minutes  54         2015-06-12T13:35:49.173Z  start'd  {}   
flapjob      post    http://queue.foo.com/flap    {}       5 minutes  54         2015-06-12T13:35:49.173Z  start'd  {}   
...

JSON API

Documentation of API endpoints

GET /scheduler/remove/:id

stops and removes a scheduler

PUT /scheduler/trigger/:id

manually triggers a scheduler id

PUT /scheduler/action/:id

starts/stops/pauses/resumes a scheduler

Example payload:

 {
   "action": "pause"
 }

JSON Schema:

 {
   "type": "object",
   "properties": {
     "action": {
       "id": "http://recurry/scheduler/action",
       "type": "string",
       "required": true,
       "default": "pause",
       "enum": [
         "start",
         "stop",
         "pause",
         "resume",
         "trigger"
       ]
     }
   }
 }

PUT /scheduler/rule/:id

sets the scheduler

Example payload:

 {
   "scheduler": "5 minutes"
 }

JSON Schema:

 {
   "type": "object",
   "properties": {
     "scheduler": {
       "id": "http://recurry/scheduler",
       "type": "string",
       "required": true,
       "default": "5 minutes"
     }
   }
 }

GET /scheduler

returns complete content of scheduled jobs

POST /scheduler

allows posting of a job scheduler

Example payload:

 {
   "method": "post",
   "id": "call foo",
   "url": "http://foo.com/ping",
   "payload": {},
   "scheduler": "5 minutes"
 }

JSON Schema:

 {
   "type": "object",
   "properties": {
     "method": {
       "id": "http://recurry/method",
       "type": "string",
       "required": true,
       "enum": [
         "get",
         "post",
         "put",
         "delete",
         "options"
       ],
       "default": "post"
     },
     "id": {
       "id": "http://recurry/id",
       "type": "string",
       "default": "call foo"
     },
     "url": {
       "id": "http://recurry/url",
       "type": "string",
       "required": true,
       "default": "http://foo.com/ping"
     },
     "payload": {
       "id": "http://recurry/payload",
       "type": "object"
     },
     "scheduler": {
       "id": "http://recurry/scheduler",
       "type": "string",
       "default": "5 minutes"
     }
   }
 }

GET /scheduler/:id

get a scheduler object including payload

GET /scheduler/reset/:id

resets the 'triggered' counter of a scheduled job

PUT /payload/:id

updates (optional) specific arguments which will be passed to the job