IreneKnapp / codex

A container for discussion and early exploratory work towards a new package repository for Haskell.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

What endpoints do we support? #14

Open IreneKnapp opened 11 years ago

IreneKnapp commented 11 years ago

What endpoints do we support? That is, what URIs?

See http://hackage.haskell.org/trac/hackage/wiki/HackageDB/2.0/URIs for the Hackage 2 ones, and http://hackage.haskell.org/trac/hackage/wiki/HackageDB for the Hackage 1 ones.

IreneKnapp commented 11 years ago

The existing Hackage 1 endpoints are:

Note that the "front end" stuff is somewhat inside this structure - pkg-list.html is the "main page", and the docs are in each package's doc/html/ subdirectory - but somewhat not - the package "index and status" pages are generated dynamically, it appears.

I think we should actually abolish the main page in favor of an AJAXy thing. I am wary of feature creep, but it's not hard these days to have a tree that loads its parts as they're expanded, and it would save substantially on server load. I actually maintain, for some friends, a thing in Perl that has a similar front-page list, and even with caching to a static file, YES, loading that big front page is a huge hit!

IreneKnapp commented 11 years ago

Do we need 100% compatibility with this layout? I didn't realize drop-in hackage compatibility was a target feature. That does constrain the implementation a bit.

cartazio commented 11 years ago

we don't need to do drop in hackage. just something that provides an interface cabal-install can get stuff from