Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom endpoints #105

Open
kellydunn opened this issue Jan 26, 2015 · 9 comments
Open

Allow custom endpoints #105

kellydunn opened this issue Jan 26, 2015 · 9 comments

Comments

@kellydunn
Copy link

Hello there, and thanks for the neat tool! I'm excited to see it grow!

One feature I'd personally love to see is to have some ability to run clib as an on-premises, private, hosted service; it would be neat to use clib for private dependencies.

Drawing inspiration from tools like geminabox, npm enterprise, or even just trying to clone from private github repositories with go get, it seems like a natural evolution for clib, at least in my opinion.

Granted, this work might be blocked by a few present issues, like supporting repositories outside of github (#51), and ironing out the details of the publishing process (#76).

I think a quick proof of concept could be rolled out; a minimal viable product could be pointing to a privately hosted registry page, or something along those lines.

At any rate, I'd love to hear what @clibs/owners and @clibs/collaborators think about this, or if work has been done in the past to provide this functionality.

Thanks!

@brendanashworth
Copy link
Member

Ooh! I love the idea. However it presents the need for a server that will host the list (it could be made to just allow for custom URLs in the client for minimal changes there) - I don't think it'd be too hard to implement, but it might introduce the want to have a server that hosts the global list instead of the GitHub wiki as it is. 👍 from me on this, as I'd certainly like to see clib grow in this direction: away from just being a tool and onto being a macho package manager along with the big boys.

@Akagi201
Copy link

I hope the github wiki can move to a github repo just like homebrew's github repo. I will make contribution more easily!

@kellydunn
Copy link
Author

@brendanashworth fwiw, a locally running dep server worked brilliantly for me last week when I was tinkering with node out in the wilderness with no internet connection. I imagine having a server-based implementation for clibs would be equally well received.

After adding an additional /etc/hosts entry to point to my "local server", I was able to use the npm command line tool to switch my registry and download libraries from my local sever:

$ npm config set registry http://local.dev

I think borrowing from this workflow pattern works pretty well and could be an interesting use case to consider when scoping out the work for building a private clibs sever.

More info here: npm-registry

@brendanashworth
Copy link
Member

I'm not sure how the upper level management would think about a change like
this. Right now we don't have any sort of website at all so they might be a
bit apprehensive. We'd need at least server time and an HTTP server to
serve the requests.

@jwerle
Copy link
Member

jwerle commented Jul 23, 2020

While this would be great to have, it is currently not in scope at the moment. We'd need to support local configurations for this to work.

@jwerle
Copy link
Member

jwerle commented Jul 24, 2020

Perhaps, instead of a server, we allow "publishing" to the local cache and a tool that can install from it (disabling expiry). I am going to open another issue, closing this one, to start a discussion around that, as it is more feasible

@jwerle jwerle closed this as completed Jul 24, 2020
@jwerle jwerle reopened this Jul 24, 2020
@jwerle
Copy link
Member

jwerle commented Jul 24, 2020

Actually, I am reopening this.

@jwerle jwerle changed the title Private clib server Allow custom endpoints Jul 24, 2020
@jwerle jwerle self-assigned this Jul 24, 2020
@Isty001 Isty001 added this to To do in clib project Aug 19, 2020
@nouwaarom
Copy link
Contributor

Hi, has there been any progress in implementing this?

I want to configure registries in clib.json and want to make the interface for registries a bit more modular so that we can add more registries than github only. (gitlab or other platforms for example)
After that I want to implement fetching packages from different sources.
In this way clib can be used in private environments where not all dependencies are public as well.

@jwerle
Copy link
Member

jwerle commented Mar 8, 2021

@nouwaarom no progress just yet! We'd happily checkout a PR if you want to try to give it a try.
I have some other things I have been busy with at the moment so I haven't been able to work on clib recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
clib project
  
To do
Development

No branches or pull requests

5 participants