Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implement sane index

  • Loading branch information...
commit 4dea552ad271e1f6e836352495be76f337df9bb3 1 parent e2fe4e3
@kappa authored
Showing with 14 additions and 5 deletions.
  1. +1 −1  cpanhubble.pm
  2. +13 −4 views/index.tt
View
2  cpanhubble.pm
@@ -10,7 +10,7 @@ use CHI;
my $cache = CHI->new(driver => 'FastMmap', root_dir => '/tmp/hubble-cache', cache_size => '10m');
get '/' => sub {
- template 'index'; # XXX
+ template 'index';
};
get '/search' => sub {
View
17 views/index.tt
@@ -1,5 +1,14 @@
-<h2>CPAN Hubble</h2>
+<p>This simple web app allows you to search CPAN and Github in one simple
+step. Github search is limited to Perl repositories. Results are merged with a simple algorithm.</p>
-<form action="/search">
-<input name="q"><input type="submit" value="Search">
-</form>
+<p>It even uses familiar search.cpan.org design.</p>
+
+<p>Known issues:</p>
+<ol>
+<li>github search is very slow, unreliable and case-sensitive</li>
+<li>github heuristic to determine language is not perfect, some
+repositories are mis-classified</li>
+<li>CPAN XML API does not return distribution version</li>
+</ol>
+
+<p>Don't hesitate to provide feedback: XXX</p>
Please sign in to comment.
Something went wrong with that request. Please try again.