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

Make package index available as JSON. #21

Open
hayleigh-dot-dev opened this issue Sep 25, 2023 · 1 comment
Open

Make package index available as JSON. #21

hayleigh-dot-dev opened this issue Sep 25, 2023 · 1 comment

Comments

@hayleigh-dot-dev
Copy link
Member

The packages site was recently updated to expose the sqlite database directly (super cool!), it'd be nice if all the package info was available as JSON too. I'd like to create a lustre tutorial for folks to follow along with that recreates the packages site just as a client app (no backend or anything) and it'd be super nice I could just point people to a /packages.json endpoint.

Elm's package site provides this sort of info at:

These kinds of tutorial projects historically use things like the reddit, twitter, or hackernews api, but I think it'd be kinda nice if we could keep it all "in-house" and use only gleamy things, if it's not too much work to add this :)

@lpil
Copy link
Member

lpil commented Sep 25, 2023

What information would you be after? I don't think it's suitable to put the whole database as one JSON payload so we'd need more precise APIs.

The Elm endpoints there seem to offer a very small amount of the information for each package, but that seems like it wouldn't be useful to many people.

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

No branches or pull requests

2 participants