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

create-vitriol

v0.9.9

Published

Create Mithril + Vite projects

Downloads

632

Readme

create-vitriol

npm version License npm downloads

A scaffolding tool for creating Mithril.js projects powered by Vite.

Features

  • ⚡️ Fast: Powered by Vite for lightning-fast development and building.
  • 🔧 Flexible: Choose between Standard (Hyperscript) or JSX syntax.
  • 📘 TypeScript: Optional TypeScript support for type safety.
  • 📱 Ionic: Optional Ionic Framework integration for building mobile-ready apps.
  • 🐳 DevContainer: Optional DevContainer configuration for consistent development environments.

Usage

With NPM:

npm create vitriol@latest

With Yarn:

yarn create vitriol

With PNPM:

pnpm create vitriol

With Bun:

bun create vitriol

Interactive Mode

Simply run the command without arguments to start the interactive prompt. You will be asked to:

  1. Select a project type (Standard or JSX).
  2. Enter a project name (which will be the folder name).
  3. Choose whether to use TypeScript.
  4. Choose whether to include Ionic integration.
  5. Choose whether to include DevContainer configuration.

Command Line Arguments

You can also pass arguments directly to skip some prompts:

npm create vitriol@latest [target-dir] [options]

Note: If you are using npm create or npm init, you may need to use a double dash -- to pass flags to the generator, e.g., npm create vitriol@latest my-app -- --standard.

  • [target-dir]: The directory to create the project in.

Options:

  • --standard, --std: Use Standard (Hyperscript) template.
  • --jsx: Use JSX template.
  • -i, --ionic: Enable Ionic integration.
  • --noi, --no-ionic: Disable Ionic integration (skip prompt).
  • --dc, --devcontainer: Add DevContainer configuration.
  • --nodc, --no-devcontainer: Disable DevContainer configuration (skip prompt).
  • --ts, --typescript: Use TypeScript.
  • --js, --javascript: Use JavaScript.

Examples

Create a standard Mithril project in a folder named my-app:

npm create vitriol@latest my-app -- --standard

Create a standard Mithril project with TypeScript:

npm create vitriol@latest my-app -- --standard --ts

Create a JSX Mithril project with Ionic support:

npm create vitriol@latest my-ionic-app -- --jsx --ionic

Templates

Vitriol keeps every variant in sync by sourcing shared .vitriol files from the template/ root. During scaffolding it also copies the matching markdown tutorial from template/tutorials into the generated project.

| Template | Syntax | Ionic | Tutorial source | | --- | --- | --- | --- | | standard | Hyperscript + JavaScript | No | template/tutorials/standard-js.md | | standard-ts | Hyperscript + TypeScript | No | template/tutorials/standard-ts.md | | standard-ionic | Hyperscript + JavaScript | Yes | template/tutorials/standard-ionic-js.md | | standard-ionic-ts | Hyperscript + TypeScript | Yes | template/tutorials/standard-ionic-ts.md | | jsx | JSX + JavaScript | No | template/tutorials/jsx-js.md | | jsx-ts | JSX + TypeScript | No | template/tutorials/jsx-ts.md | | jsx-ionic | JSX + JavaScript | Yes | template/tutorials/jsx-ionic-js.md | | jsx-ionic-ts | JSX + TypeScript | Yes | template/tutorials/jsx-ionic-ts.md |

License

MIT

Tutorial

Tutorial can be found here

Developer Tutorial

Want to contribute to the generator itself? Read tutorial-dev.md for instructions on local setup, editing .vitriol templates, packaging the VS Code syntax extension, and submitting issues or pull requests.