What’s missing? CPAN for JavaScript

by barce on March 13, 2007

I’ve been messing around with Perl in-between conferences at SxSW. What’s delighted me is how little I have to code because of CPAN, an archive of Perl Modules.

In order to write a simple RSS aggregator all I had to do was:
1) Create a class for fetching and saving the RSS.
2) Use a Perl module with web client functionality. (LWP::Simple)
3) Use a Perl module that can parse RSS. (XML::RSS::Parser)

my $lostdogs = Fetcher->new();
$lostdogs->feed("http://sfbay.craigslist.org/search/ccc/nby?query=lost%20dog&fo
rmat=rss");
$lostdogs->getfeed();
$lostdogs->savefeed('lostdogs.rss');

Now what if there was something like CPAN for JavaScript? Wouldn’t it make building all those AJAX apps easier? You wouldn’t have to be committed to either Dojo or YUI or Prototype.

{ 4 comments… read them below or add one }

Ted Husted March 14, 2007 at 2:40 am

YUI has already started a mini JS CPAN with a twist. Since this is the ‘net and this is JavaScript, instead of downloading a library for local installation, your application can connect to Yahoo’s copy of the library hosted on their own high-performance network.

* http://yuiblog.com/blog/2007/02/22/free-yui-hosting/

So, it’s even easier that CPAN, or Maven, or any of that :)

-Ted.

barce March 15, 2007 at 12:17 am

Thanks, Ted. I just read the blog that Ted posted, and can’t wait to try the JPAN. I’ll follow up with another blog post.

Jesse Proulx April 10, 2007 at 11:05 am

My mind flubbed earlier; I wasn’t thinking of JSON, I was thinking of JSAN, the Javascript Archive Network that is closely derived from CPAN: http://www.openjsan.org/

barce April 18, 2007 at 11:34 pm

That’s exactly what I’m looking for, thanks!

Leave a Comment

Previous post:

Next post: