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

miku

v0.8.0

Published

A general-purpose JS/CSS/HTML prototype tool.

Readme

miku!

NPM version NPM downloads Build Status donate

A general-purpose JS/CSS/HTML prototype tool.

Like jsbin/jsfiddle/codepen but lies on your file system, with more powerful preprocessors support and your favorite editor is your playground!

中文介绍

How to use

Install it:

yarn add miku --dev
# optionally you can install it globally
# but recommend to install locally

Add npm scripts:

{
  "scripts": {
    "try": "miku example.js"
  }
}

After that, populate an example.js with the code you wanna try in your project:

setInterval(() => {
  document.body.innerHTML = new Date()
}, 1000)

Finally, you can run yarn try to see how your code works in action.

You can also run miku init my-demo to create an empty project in seconds.

Run ./node_modules/.bin/miku -h or miku -h if installed globally to get help.

How does it work

Every input file will be processed by miku using webpack, and we also use an index.html to load them, you can also pass in an HTML file to override this file, eg: miku example.js example.html

What languages and preprocessors it supports

  • JavaScript/ES2015+ (built-in)
  • JSX (built-in)
  • PostCSS with cssbag (built-in)
  • TypeScript
  • CoffeeScript
  • LiveScript
  • Pug/Jade
  • Stylus
  • SASS/SCSS
  • Less
  • Vue
  • Svelte

Note: to use non-built-in features, please install its loader first, for example:

# for sass
yarn add node-sass sass-loader --dev
# for vue
yarn add vue vue-loader vue-template-compiler --dev

Babel

We have babel presets and plugins included:

  • babel-preset-es2015
  • babel-preset-stage-2
  • babel-plugin-transform-runtime
  • babel-runtime

However you can use .babelrc to override it.

Static file support

You can import images and fonts directly, and it will return the path to the file which you can use.

Note that for .svg file it will return its raw content, since we're more likely to use Inline SVG.

Production mode

Sometimes you need to distribute your work for others to visit, then just use --prod or --production to do this.

Advanced usage

All cli options can be kept in a local config file in project folder: .miku/config.js, for example:

module.exports = {
  port: 6000
}

If an option shows in both local config and cli options, the latter would have higher priority.

You can also provide your own webpack config, we use webpack-merge to merge it into default webpack config, put it at .miku/webpack.config.js:

module.exports = {
  module: {
    rules: [/* add more loaders */]
  }
}

Use cases

  • you have some js code to demo: miku example.js
  • you have some css and html code to demo: miku example.css example.html
  • you need preprocessors: miku example.coffee

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

miku © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).

egoistian.com · GitHub @egoist · Twitter @rem_rin_rin