node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »



A basic tile server MBTILES, a striped down version of my previous efforts.

Install with:

npm install -g kublai
  Usage: kublai [options]
    -h, --help                     output usage information
    -V, --version                  output the version number
    -i, --ip <host>                IP address to bind to, defaults to process.env.IP or
    -p, --port <port>              port to listen on, defaults to process.env.PORT or 7027
    -t, --tile <path>              path to folder with tiles, defaults to "."
    -n, --number <forks>           number of forks, defaults to require("os").cpus().length
    -d, --domains <domain>         out domains, defaults to ip:port, add a "*" for subdomains
    -c, --config <path to config>  path to a config file

config file should be a json file with keys coresponding to the bracketed terms, an object like this is what kublai takes if used in node.

The demo is a tiled version of this old map of the coasts.