For Devs: A Slackware packages API


Recommended Posts

One of the things I've struggled with while creating tools for unRAID is the lack of a consumable package API. After outgrowing two half-assed iterations, I decided to write a real lib to parse the official package lists (it's called slapp, if you're interested).

 

I'm very happy to announce this new API. The next refactor of trolley will use it officially.

 

Page caching is used throughout the app, so requests should be fairly quick. I was seeing ~500ms on the slow ones. There's a lot of data here: over 4600 package versions across 4 Slackware versions. Feel free to use it in your own projects; I look forward to seeing what you might create.

 

Okay, here it is: http://slackware-packages.herokuapp.com/

 

Endpoints

 

/slackwares

 

List of all Slackware versions. Includes versions 13.1-current

 

/slackwares/:id

 

List of packages for a Slackware version (`:id`)

 

/packages

 

List of all packages for all Slackware versions

 

/packages/:id

 

Package details for `:id`. Also supports slugged name.

 

Code and full docs available on Github: https://github.com/nicinabox/slackware-packages

 

TIP: If using Chrome, check out the JSON Formatter extension: https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.