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

@isdk/templify

v0.5.1

Published

πŸš€ Instantly convert projects into template.

Readme

Templify: Instantly convert project into template

Turn any project into a reusable template in secondsβ€”keep your structure, replace variables smartly, and ship templates that just work.

oclif Version Downloads/week

Usage

Install templify

$ npm install -g @isdk/templify
$ templify COMMAND
running command...
$ templify (--version)
@isdk/templify/0.5.1 linux-x64 node-v20.19.4
$ templify --help [COMMAND]
USAGE
  $ templify COMMAND
...

Turn project into template

Navigate to your project directory and mark the parts of the relevant files that need to be replaced with template placeholders using {{VAR}}. Then, run the templify scan command to initialize the template variable file.

For example, modify the package.json file as follows:

{
  "name": "{{name}}",
  "description": "{{description}}",
  "version": "{{version}}",
  "author": "{{author}}",
  "bugs": "{{githubUrl}}/issues",
  "homepage": "{{githubUrl}}",
  "keywords": {{keywords | tojson}},
  ...
}

Run the templify scan command in the project directory:

templify scan
found template file: package.json
Scanned. found 1 template files
Saved ./.templify.yaml

Open the generated .templify.yaml file and make some edits:

files:
  - package.json
parameters:
  name:
    type: string
    default: my-package-name
    title: Package Name
    description: Enter your project name
  description:
    type: string
    title: Package Description
    description: Enter your project description
  version:
    title: Package Version
    type: string
    default: 0.1.0
  author:
    type: string
  githubUrl:
    type: string
    default: https://github.com
  keywords:
    type: array
    description: Enter your project keywords

Note:

  • The default template format is a simplified version of jinja2.
  • The files or folders in the .gitignore will be ignored.

Apply template data configuration to the template folder directly

Ok, now you can run templify apply command to apply the template data configuration to the template folder directly:

templify apply
╭─ Templify: Instantly convert project into template β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€βŠ±
β”‚
β—†  Package Name
β”‚  Enter your project name
β”‚  my-name
β”‚
β—†  Package Description
β”‚  Enter your project description
β”‚  my-description
β”‚
β—†  Package Version
β”‚  0.1.0
β”‚
β—†  author
β”‚  Riceball LEE @snowyu
β”‚
β—†  githubUrl
β”‚  https://github.com
β”‚

╭─ keywords β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€βŠ±
β”‚
β—†  Add keywords[1] to array (empty to finish)
β”‚  good
β”‚
β—†  Add keywords[2] to array (empty to finish)
β”‚  better
β”‚
β—†  Add keywords[3] to array (empty to finish)
β”‚  best
β”‚
β—†  Add keywords[4] to array (empty to finish)
β”‚
β”‚
β”‚  keywords
β•°β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€βŠ±

β”‚  Templify: Instantly convert project into template
β•°β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€βŠ±

skip: test/fixture/README.md
apply template: test/fixture/package.json done.
Appied. Enjoy your project at .

Note:

  • By default, the interactive mode is enabled.
  • Use the --no-interactive flag to disable interactive mode. If a .templify-data.yaml file exists in the template folder, it will apply the data from that file; otherwise, it will generate a .templify-data.yaml data file in the template folder.
  • Use the -d your-data-file.yaml flag to specify the data file to apply.

Commands

templify TEMPLATE_DIR [DATA]

πŸš€ Apply template data configuration etc to the template folder directly. This is the default command to run.

USAGE
  $ templify  TEMPLATE_DIR [DATA] [-d <value>] [-i] [-n]

ARGUMENTS
  TEMPLATE_DIR  [default: .] the template folder to apply
  DATA          the json data to apply. see also `--data data-file-path`

FLAGS
  -d, --data=<value>      the data file to apply. see also DATA argument
  -i, --[no-]interactive  interactive mode
  -n, --dryRun            dry run mode

DESCRIPTION
  πŸš€ Apply template data configuration etc to the template folder directly. This is the default command to run.

ALIASES
  $ templify 

EXAMPLES
  $ templify  .
  Appied. Enjoy your project at "."

templify apply TEMPLATE_DIR [DATA]

πŸš€ Apply template data configuration etc to the template folder directly. This is the default command to run.

USAGE
  $ templify apply TEMPLATE_DIR [DATA] [-d <value>] [-i] [-n]

ARGUMENTS
  TEMPLATE_DIR  [default: .] the template folder to apply
  DATA          the json data to apply. see also `--data data-file-path`

FLAGS
  -d, --data=<value>      the data file to apply. see also DATA argument
  -i, --[no-]interactive  interactive mode
  -n, --dryRun            dry run mode

DESCRIPTION
  πŸš€ Apply template data configuration etc to the template folder directly. This is the default command to run.

ALIASES
  $ templify 

EXAMPLES
  $ templify apply .
  Appied. Enjoy your project at "."

See code: src/commands/apply/index.ts

templify scan TEMPLATE_DIR

πŸ”Ž Scan the template folder and generate or update the template config file(".templify.yaml").

USAGE
  $ templify scan TEMPLATE_DIR [-f <value>] [-n]

ARGUMENTS
  TEMPLATE_DIR  [default: .] the template folder to scan

FLAGS
  -f, --files=<value>  the file patterns to scan, split by comma
  -n, --dryRun         dry run mode

DESCRIPTION
  πŸ”Ž Scan the template folder and generate or update the template config file(".templify.yaml").

EXAMPLES
  $ templify scan .
  Scanned.

See code: src/commands/scan/index.ts