Re: [aur-dev] various implementations of a json api query endpoint for the aur

2011-03-27 Thread elij
On Sun, Mar 27, 2011 at 9:02 AM, Justin Davis  wrote:
> Very cool! Are any of these implementations hosted anywhere?

I have development versions running, but only the ruby version is
'live' right now.
http://test.awesometrousers.net/

There is also a live-search implementation that utilizes the ruby backend:
http://test.awesometrousers.net/search

As the api supports limit and offset query variables, I have thought
of making it the live-search also do load-on-scroll instead of load
all at once, but I haven't endeavored to do so yet.

> I have been making an AUR scraper/copier that saves package
> meta-information. There is also a web service that provides the data.
> I put both the database and webservice here: http://juster.us/aurlite

neat! I will take a look at it.

> This scraper saves the AUR data into a new schema as well as using
> SQLite so it has a slightly different angle than your projects.
> Because it is essentially read-only this works out well for my needs.
> I was not trying to mirror or re-implement the AUR. I was thinking of
> adding binary ALPM repos as well to provide a single service for
> searching/browsing packages across many repos as well as the AUR. This
> would probably have a javascript frontent much like your livesearch!

Certainly feel free to re-use any of the livesearch code. It is
liberally MIT licensed.
:)


Re: [aur-dev] various implementations of a json api query endpoint for the aur

2011-03-27 Thread Justin Davis
Very cool! Are any of these implementations hosted anywhere?

I have been making an AUR scraper/copier that saves package
meta-information. There is also a web service that provides the data.
I put both the database and webservice here: http://juster.us/aurlite

This scraper saves the AUR data into a new schema as well as using
SQLite so it has a slightly different angle than your projects.
Because it is essentially read-only this works out well for my needs.
I was not trying to mirror or re-implement the AUR. I was thinking of
adding binary ALPM repos as well to provide a single service for
searching/browsing packages across many repos as well as the AUR. This
would probably have a javascript frontent much like your livesearch!

The whole thing is written in perl. The webservice uses Dancer which
is basically a perl copy of ruby's Sinatra. Maybe you would be
interested in it because your web services seem so similar.
-- 
-Justin