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 🙏

© 2025 – Pkg Stats / Ryan Hefner

templatix

v1.0.56

Published

Simple template generator

Readme

Templatix

Instalation

npm install templatix --save-dev

Config initialization

// package.json
...your code
scripts: {
  ...your code
  "generate-config": "templatix-init", // create config file
  "generate": "templatix" // generate files
}

Config fields

| Field | Description | Default | | -------------------------------- | --------------------------------------------------- | -------------- | | framework | The chosen framework (react, none) | react | | router | The chosen router library (type-route, none) | type-route | | extension_list.general_extension | The general extension for files | ts | | extension_list.style | The extension for stylesheets | module.scss | | extension_list.route | The extension for route files | route.ts | | extension_list.page | The extension for page files | ts | | extension_list.component | The extension for component files | ts | | output.general | The directory for general output | src/output | | output.routes | The directory for route output | src/routes | | react.output.page | The directory for page components in a React app | src/pages | | react.output.component | The directory for general components in a React app | src/components | | react.extension_list.page | The extension for page components in a React app | page.tsx | | react.extension_list.component | The extension for general components in a React app | tsx |

Comand line arguments

| Option name | Type | Description | Required | Alias | | ----------- | ------ | ---------------------------------------------------- | -------- | ----- | | name | string | Name of the entity | true | n | | type | string | Type of generated template (component, page, entity) | true | t | | framework | string | Framework of the entity (React) | false | f | | path | string | Path to the generated file | false | p | | parentRoute | string | Parent route of the generated page | false | pr |

Usage

Page template creation

npm run generate -- --type page --name login

Route template creation

npm run generate -- --type route --name login

Route with parent

npm run generate -- --type route --name user --parentRoute users