npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

kosmtik-deploy

v0.0.6

Published

Deploy your local Kosmtik project on a remote server

Downloads

3

Readme

Kosmtik-deploy

Deploy your Kosmtik project on a remote server. Only SSH supported for now.

Experimental, not suited for production use.

Install

While in your kosmtik root, type:

node index.js plugins --install kosmtik-deploy

Usage

Only command line for now. Eg.:

node index.js deploy ~/Code/maps/transilien/project.yml

Get details about the available options with:

node index.js deploy -h

All the options can also be set in your project config file (.mml/.yml), using the deploy key. For example:

{
    "protocol": "ssh",  // optional, as it's the default (and only one supported)
    "username": "foo",
    "password": "123456",
    "root": "xxx/yyyy/zzz",  // remote root where to scp your project
    "ignore": ['this/dir', 'this/file.txt']  // paths to be ignored, can be regex,
    "include": ['this/dir', 'this/file.txt']  // paths of files and dirs to be included (default to project root)
    "xml": "mapnik.xml"  // Name of the created Mapnik XML
}

If you are using public key based authentication, you can use one those option:

  • you are on a Unix system and your private key is ~/.ssh/id_rsa: do nothing, it will be automatic
  • add a privateKeyPath key with the path to your private key
  • add a privateKey key with your SSH private key content

SSH is managed under the hood by the ssh2 module, so you may have a look there to get more details about the available options (you can use all of those in your project.yml deploy key).

Also, remember that you can use your local config file to manage project config information your don't want to visible in the versionned project.yml/.mml file.

Here is an example of a localconfig.js file:

exports.LocalConfig = function (localizer, project) {
    project.mml.compareUrl = 'http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png';
    localizer.where('Layer').if({'Datasource.type': 'postgis'}).then({
        'Datasource.dbname': 'idf',
        'Datasource.password': '',
        'Datasource.user': 'ybon',
        'Datasource.host': ''
    });
    project.mml.deploy = {
        host: 'xxxx.kimsufi.com',
        root: 'maps/transilien'
    };
};

Issues and feature requests

Please report any issue or feature request on the main kosmtik repository