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

generator-atomiq

v1.0.8

Published

Generate a Node microservice with Docker, Express, Babel, and Node Inspector debugging support

Downloads

40

Readme

generator-atomiq npm badge

Generate a Node microservice with Docker, Express, Babel, Node Inspector support, and optional directory-based routing conventions.

This is a generator for atomiq.

atomiq provides very lightweight structure and support useful for Express-based microservices. It is not a framework and doesn't get in the way of Express, but it does offer a nice convention for directory-based routing that you can use if you choose to.

This generator will scaffold an app that correctly handles signals for graceful server shutdown, including inside of a Docker container. It provides a useful set of docker-compose files for running containers for production and development (mounts the local dist directory during development).

It generates a few sample routes using ES6 classes and provides a simple Node.js make script that supports building, running, and testing locally and in a Docker container.

  • node make clean - remove the dist directory
  • node make dist - copies everything to dist directory except .js files
  • node make babel - transpile src to dist with sourcemaps (ES6 and async/await support)
  • node make build - transpile, then build a Docker image
  • node make run - start in container or start locally (--local)
  • node make test - run mocha tests in container or locally (--local)
  • node make debug - run with debugging support in container or locally (--local)
  • node make watch - when anything in src changes, re-transpile to dist
  • node make monitor - when anything in dist changes, restart server in container or locally (--local)
  • node make host - get Docker machine IP:PORT for the app running in a container (app must be running)

Features:

  • Docker support for production and development, including debugging support with Node Inspector
  • Signal handling for graceful server shutdown (including inside of Docker containers)
  • Babel support
  • ESLint / esformatter support

Installation

First, install Yeoman and generator-atomiq using npm. Requires Node.js v4 or v5.

npm install -g yo
npm install -g generator-atomiq

Then generate your new microservice project:

yo atomiq [name]

See new project README.md for further instructions.

Yeoman

This generator was build with Yeoman.

License

MIT © atomiq.io