News for hackers. Stuff that matters.
Re:A Personal API by mawalu on Monday December 02, 2019 @02:26PM (#21685876)
I'm toying around with this idea myself. After some thoughts I created a simple node.js app that provides services like a http server and a spotify api client to module that are autoloaded from some folder.

Whenever I feel like it I can very easily extend this platform by just writing a new javascript file. Currently there are thinks like

  * An endpoint to show my currently playing track on spotify
  * An endpoint that renders one of my todoist lists as html (my whislist)
  * A reporting module that receives webhooks from different backup scripts and sends me a report by mail every day
  * Move new songs from a spotify playlist to an archive playlist after a few weeks to keep the playlist "fresh"
I always wanted to create a bigger project based on my learnings but I'm not yet completely happy with the technical implementation
Re:A Personal API by keithwhor on Monday December 02, 2019 @02:46PM (#21686075)
You should check out Code on Standard Library [0], we do exactly this - turn JavaScript files into APIs via the open source FunctionScript specification [1]. We’re a Stripe-backed company and we do a lot of other stuff, too (handle auth between multiple providers... etc.), but building APIs easily is where we started.

We have a lot of new tooling coming soon, so if this is of interest to you please reach out! You can e-mail me directly: keith at (our domain).

[0] https://code.stdlib.com/

[1] https://github.com/functionscript/functionscript

Re:A Personal API by mawalu on Monday December 02, 2019 @02:55PM (#21686178)
I signed up to stdlib a while back because it sounds like exactly what I want and looked really cool. I don't remember what through me off exactly but I will take another look.
Re:A Personal API by keithwhor on Monday December 02, 2019 @03:19PM (#21686419)
No worries! We’re improving all the time. The problems we solve within organizations revolve around connecting APIs together (like Stripe and Slack), but the system we’ve built to manage that is effectively a fully-functional API registry and module management system you can use on your own :).