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 🙏

© 2026 – Pkg Stats / Ryan Hefner

kickstart-cli

v0.8.0

Published

Kick start a project by generating code according to template.

Downloads

51

Readme

kickstart

Kick start a project by generating code according to template. Defined a template project and reuse it again and again to kick start new projects. All kinds of projects are supported no matter what programming languages they use.

It's a much simpler alternative to Yeoman.

Install

yarn global add kickstart-cli

Usage

ks -k kickstart-project -o output-directory

A new project will be created at output-directory, using kickstart-project as template.

-o output-directory is optional. By default it is ., a.k.a. the current directory.

Features

  • Support projects in all programming languages.
  • Support any project to be used as template, even they are not created for scaffolding purpose.
  • Support templating, thanks to nunjucks.

Why?

Lots of projects look similar. For example, when I start a new JavaScript projects, I always created the following files: README.md, package.json, .gitignore, .editorconfig, .babelrc...etc.

I wanted a command line utility to create those files for me. I checked the popular Yeoman project but failed to comprehend its authoring workflow. I decided to create a new tool which is both flexible and straightforward.

Q & A

  • Is kickstart for JavaScript projects only?
    • Nope, it is for all kinds of projects no matter what programming languages they use.
  • Does kickstart support template projects with nested directory structure?
    • Yes. Template project can have deeply nested directory strucutre.
  • What's the main differences between Yeoman and kickstart?
    • A template project for Yeoman (they call it a generator project) must be a Node.js module. Kickstart doesn't have this requirement.
      • Yeoman could generate projects for all kinds of languages but the template/generator project must be Node based. So developers who don't write JavaScript might have difficulty authoring a template/generator project.
    • Kickstart is much simpler than Yeoman. On the other hand, it doesn't have as many features as Yeoman. Kickstart is pretty new and it is still under development.
  • Why is kickstart better than cp -r source-project target-directory ?
    • kickstart won't copy .git/
    • kickstart won't copy files/directories specified in .gitignore
    • kickstart supports configuration and templating.

How it works

First of all, ask yourself: do I or my users create similar projects again and again? If the answer is no, you probably don't need kickstart and you can stop reading on.

If the answer is yes, create a template project for those similar projects to abstract the things that they have in common. For strings that each project might have a different value, define them as {{ variable }}.

For example, I can define a template for JavaScript projects with the following directory structure:

kickstart-javascript
    - README.md
    - package.json
    - .gitignore
    - kickstart.yml

Please note that, a template project usually has a kickstart.yml file in its root directory. If no kickstart.yml file is found, an empty one will be used instead. Thus allows any project to be used as a template project.

A sample package.json file:

{
  "name": "{{ name }}",
  "version": "{{ version }}",
  "license": "{{ license }}",
}

A sample kickstart.yml file:

name: my-app
version: 0.1.0
license: MIT

Run the following command to generate a new project:

mkdir my-awesome-project && cd my-awesome-project
ks -k /path/to/kickstart-javascript/

The generated project:

my-awesome-project
    - README.md
    - package.json
    - .gitignore

Generated package.json file has the following content:

{
  "name": "my-app",
  "version": "0.1.0",
  "license": "MIT",
}

You can also edit the kickstart.yml file as below before executing the ks command:

name: cool-project
version: 0.2.0
license: MIT

In such case the generated package.json file is:

{
  "name": "cool-project",
  "version": "0.2.0",
  "license": "MIT",
}

Advanced templating

Nunjucks is the underlying templating engine.

You can use some of its adanvaced features. Sample:

kickstart.yml:

food:
  ketchup: 5 tbsp
  mustard: 1 tbsp
  pickle: 0 tbsp

Template:

{% for ingredient, amount in food %}
  Use {{ amount }} of {{ ingredient }}
{% endfor %}

Templating in directory/file name

You can use templating in directory/file name.

For example:

src/{{ serviceName }}/handler.js

Comments

You can write comments as {# comments #} which will be omitted when generating code.

Todo

  • Each template project must be a runnable project itself
  • Toml + regex as config file
    • Just use string match, no regex
    • Then how to support if, for...etc?
      • Can we give up these adavanced templating features?
        • Then no more nunjucks