The BioJS registry backend.
- Search for all packages with a special tag on npm ('biojs', bionode') + remove duplicate packages (uniq)
- Query npm -> package.json
- Run extensions
3.1) npm: history stats
3.2) github
3.2.1) github info
3.2.2) github stats
3.2.3) Optional: Query github for snippets (ls "snippets") - Run post processing (e.g. removal of duplicate keywords)
- Store the result in a DB
Currently the db is cleaned on every run.
(see workflow.js
)
A working instance can be browsed at workmen.biojs.net
.
If you want deploy access, ping @greenify - otherwise just send us a pull request here.
- check for package version: 60 seconds
- refresh all packages: 60 minutes
/all
: JSON with all biojs packages
/detail/:name
: info for only one BioJS packages
/stat
: General statistics
/demo/:name
: Listing of all available snippets
/demo/:name/:snippet
: Display the :snippet
.
Will forword you to the specific editors with the snippet.
/news/atom
: Display the package event stream in the ATOM format
/news/rss
: Display the package event stream in the RSS format
/news/json
: Display the package event stream in JSON
You can filter with the following parameter
limit
: many results show be shown (default: 5)versions
: what versions show be shown (default: all) e.g. http://workmen.biojs.net/news/json?versions=major&versions=minor (new package updates will be shown too)
/logs
: Display the latest log outputs
(see server.js
)
This branch is synchronized with a dev registry.
-> use it http://dev.workmen.biojs.net
git clone https://github.com/biojs/registry-workmen
cd registry-workmen
npm install
You might need to setup github API credentials (see below).
node server.js
(will be running on Port 3000)
Two requirements
- Return a promise
- Add your extension to "downloadPkg" in
workflow.js
Create your own oAuth token here with "public_repo" access
https://github.com/settings/tokens
creds.json
(root folder)
{type:"oauth", token:"<token>"}
define an enviroment variable
export GITHUB_TOKEN=<token>