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

thriller

v0.0.1

Published

Thriller is a configureless build system for Node.js microservices on top of Rollup

Downloads

2

Readme

Thriller

Thriller is an easy peasy build system for Node.js micro-services on top of Rollup. Thriller lets you create modern Node.js apps and services with zero config. Thriller handles all the watching, reloading, transpiling, and bundling for you. It comes with a few healthy defaults and support for modern JS features. Everything can be customized and you can easily add Thriller to your existing Node.js project with just a single dependency, batteries included. Inspired by backpack, nuxt.js, next.js, and create-react-app

Features

  • Zero-config, one dependency
  • Latest ES6 features (module syntax, async/await, object rest spread)
  • Live reloading

How to use

Install it:

npm i thriller --save

Add an npm script to your package.json:

{
  "scripts": {
    "dev": "thriller"
  }
}

Make sure src/index.js is the entry of your app.

Run your application in development mode:

npm run dev

Custom configuration

For custom advanced behavior, you can create a thriller.config.js in the root of your project's directory (next to package.json).

module.exports = {
  /* config options here */
}

Customizing rollup config

Example

To extend webpack, you can define a function that extends its config via thriller.config.js.

// thriller.config.js
module.exports = {
  rollup: (config, options, rollup) => {
    // Perform customizations to config
    // Important: return the modified config
    return config
  }
}

Customizing babel config

Example

To extend our usage of babel, you can define a .babelrc file at the root of your app. This file is optional.

If found, Thriller will consider it to be the defacto babel config, it will also need Thriller's preset thriller/babel.

Here's an example .babelrc:

{
  "presets": [
    "thriller/babel",
    "stage-0"
  ]
}

Building for Production

Add a npm script for the build step:

{
  "scripts": {
    "dev": "thriller",
    "build": "thriller build"
  }
}

Then run the build command and start your app

npm run build
node ./build/main.js

CLI Commands

thriller dev

Runs thriller in development mode.

Your code will reload if you make edits.

thriller build

Builds the app for production to the build folder.
It correctly bundles your production mode and optimizes the build for the best performance.

You can run your production application with the following command:

node ./build/main.js

Your application is ready to be deployed!

Inspiration