Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Proxy arbitrary repos from deno.land/x/? #188

Closed
bcomnes opened this issue Jan 15, 2020 · 3 comments
Closed

Proxy arbitrary repos from deno.land/x/? #188

bcomnes opened this issue Jan 15, 2020 · 3 comments

Comments

@bcomnes
Copy link

bcomnes commented Jan 15, 2020

Would it make sense to allow the viewing / proxying of any repo from https://deno.land/x/?

e.g. something like https://deno.land/x/gh/USERNAME/MODULE_NAME@BRANCH/SCRIPT.ts for GitHub. Or maybe just https://deno.land/gh/....

Gitlab and others could be supported with alternate reserved prefixes. Just thinking about the long term editorial and maintenance contract of database.json. But maybe its perhaps intended as an editorialized / secondary std.

It seems like maybe the idea behind https://deno.land/x is similar to that of https://godoc.org and/or the go module proxy?

@ry
Copy link
Member

ry commented Jan 15, 2020

I think we'll leave that to other hosts like pika.dev. In some ways deno.land/x is just way to bootstrap the HTTP module system. Maintaining database.json isn't much overhead.

(Ideally github would just have nice URLs, https://github.com/ry/foo/master/bar.js)

@ry ry closed this as completed Jan 15, 2020
@bcomnes
Copy link
Author

bcomnes commented Jan 15, 2020

Ok cool thanks for the context. Yes agreed nicer GitHub URL’s would be ideal. Fingers crossed pika supports an npm free workflow from GitHub in the future. Right now it looks like it still needs to be published to a registry.

@bcomnes
Copy link
Author

bcomnes commented Jan 15, 2020

Or perhaps GitHub’s own registry could support raw imports of assets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants