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

@prismify/ko

v0.4.0

Published

A project scaffolding CLI for the web

Downloads

55

Readme

ko

A project scaffolding and configuration CLI for the web

Node CI codecov oclif Version Downloads/week License

About

ko is a (WIP) project scaffolding and configuration tool that is meant to easily create or clone projects like Nuxt.js, Next.js, and Sapper.

This project is heavily inspired1 by Blitz. Blitz is a Ruby on Rails like project based on Next.js. Blitz also allows you to configure the project by using their CLI. However, rather than building a web framework, this project focuses on the configuration portion of their CLI and aims to target different frameworks.

At the time of this writng, ko can generate a basic Next.js app and clone repositories from GitHub, GitLab, and Bitbucket.

1 Before knowing about Blitz, I had created a Nuxt.js configurator that took a simiar approach.

Features

  • Generate Next.js projects
  • :warning: Experimental Configure the project via Recipes

Roadmap

  • Support other frameworks like Nuxt.js and Sapper
  • Support for Docker (?)
  • Add run command (e.g. installing a list of recipes from ko.config.json)

Get Started

1. Create the project

Create a Next.js app using TypeScript

ko create hello

Create a Next.js app using JavaScript

ko create hello --javascript # or -j

2. Configure the project

cd into the project

cd hello

Install Chakra

ko install chakra

3. Start developing!

yarn dev

Usage

$ npm install -g @prismify/ko
$ ko COMMAND
running command...
$ ko (-v|--version|version)
@prismify/ko/0.4.0 darwin-x64 node-v16.1.0
$ ko --help [COMMAND]
USAGE
  $ ko COMMAND
...

Commands

ko clone REPOSITORY [DESTINATION]

clone an existing project

USAGE
  $ ko clone REPOSITORY [DESTINATION]

ARGUMENTS
  REPOSITORY   The repository url (e.g. org/repo, github:org/repo, https://www.github.com/org/repo)
  DESTINATION  The destination to clone (optional)

See code: lib/packages/cli/clone.js

ko create NAME

create a new project

USAGE
  $ ko create NAME

ARGUMENTS
  NAME  The name of the project or "." for cwd

OPTIONS
  -f, --framework=next   [default: next]
  -j, --javascript       Use JavaScript
  -p, --prompt
  -v, --version=version  [default: latest]
  --no-git
  --offline

ALIASES
  $ ko new

See code: lib/packages/cli/create.js

ko help [COMMAND]

display help for ko

USAGE
  $ ko help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

ko install NAME

install the recipe and configure the app

USAGE
  $ ko install NAME

ARGUMENTS
  NAME  The name of the recipe or the repository where the recipe (e.g. "tailwind", org/repo, github:org/repo)

OPTIONS
  -c, --no-cache
  -d, --dryRun
  -f, --offline
  -g, --no-git
  -p, --prompt
  --host=github|gitlab|bitbucket  [default: github]

ALIASES
  $ ko add

See code: lib/packages/cli/install.js