Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (36 sloc) 1.76 KB

Google Library APIs Mirror

This is a subset mirror of the Google Libraries API CDN meant to be served from your local development machine when internet access is lacking.


Step 0: Clone this repository

git clone git://

Step 1: Run rake sync to download a copy of all the libraries listed in libraries.txt.

You'll probably want to run this step before you lose internet access.

Step 2: Run sudo rake serve or just sudo rake (serve is the default task). This binds a new virtual IP address ( to the loopback interface, and maps to it using the OS X Directory Service. It also starts a web server bound to the new virtual IP address such that behaves like a local mirror for the Google Libraries.

NOTE: You must run this as sudo. To stop the local web server mirror, just Ctrl-C the rake process.


If you aren't on OS X, you can alternatively map to using /etc/hosts or any equivalent. You will also need to create a virtual host on your local web server to serve Here's an example for Apache:

<VirtualHost *:80>
  DocumentRoot "/path/to/googleapis-mirror"
  <Directory "/path/to/googleapis-mirror">
     Options Indexes
     Order allow,deny
    Allow from all


Ryan McGeary (@rmm5t)


MIT License

Copyright (c) 2010-2017, Ryan McGeary (ryan -[at]- mcgeary [dot] org)