jupyterhub / binderhub

Run your code in the cloud, with technology so advanced, it feels like magic!
https://binderhub.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.57k stars 390 forks source link

JS: Move the binderhub API client to its own npm package #1689

Closed yuvipanda closed 1 year ago

yuvipanda commented 1 year ago

Many projects want / need to connect to the BinderHub API:

These all need to recreate a JS client interface to the BinderHub API.

This PR splits out the existing client API we have in the BinderHub JS codebase into its own package, and refers to that from the existing codebase. This has several advantages:

As added incentive, I've added doc strings for the methods in BinderImage. I will work on refactoring the JS code in there as well, but as a separate PR.

yuvipanda commented 1 year ago

https://github.com/jupyterhub/binderhub/issues/1373 is related, and in some ways I guess it's me picking up the work I was doing there :)

yuvipanda commented 1 year ago

AAAAND published! https://www.npmjs.com/package/@jupyterhub/binderhub-client