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

More flexible API or frontend #8

Open
Noratrieb opened this issue Jun 6, 2022 · 6 comments
Open

More flexible API or frontend #8

Noratrieb opened this issue Jun 6, 2022 · 6 comments

Comments

@Noratrieb
Copy link

It would be useful to be able to sort the crates (for example by download count).

This could either be implemented here, or another solution that would work as well would be to offer a raw data API, using which you could quickly hack together such sorting or filtering yourself on the command line.

A possible API might look like this:

  • /raw to get the (shortened, just name/version/error/download count) data of all crates
  • /raw/ub to only get those with ub
  • /raw/logs to get the logs of a crate run (just as the raw bytes) (though I'm not sure about the usefulness of this one)

I might be able to hack some if this together tomorrow

@saethlin
Copy link
Owner

saethlin commented Jun 6, 2022

You're saying API but this is just a static site served out of an S3 bucket behind CloudFront.

I'm definitely not opposed to having more pages. Just making sure you know how simple the architecture is.

@Noratrieb
Copy link
Author

Yes, I am aware of that. Although I don't know whether CloudFront is able to serve static json, that would be useful.

@Noratrieb
Copy link
Author

Actually, I don't think I have a need for this anymore right now. Might still be useful for someone in the future though.

@oli-obk
Copy link
Contributor

oli-obk commented Jun 13, 2022

I could hack up a Rust -> wasm thing that gives us a fully interactive website that processes a big json blob which has the actual data (essentially rendering on the fly instead of statically)

@saethlin
Copy link
Owner

saethlin commented Jun 13, 2022

🤷 I'm much more interested in #7 than this, because the primary site now has every crate on crates.io and it's still decently usable. But I'll probably take any PR that looks like I can hack on it later.

@oli-obk
Copy link
Contributor

oli-obk commented Jun 13, 2022

makes sense. Won't spend time on the frontend then.

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

3 participants