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

@uscreen.de/create-fastify-app

v1.1.3

Published

cli to create a new @uscreen.de/fastify-app

Downloads

52

Readme

create-fastify-app

Test CI Test Coverage Known Vulnerabilities NPM Version

cli to quickly bootstrap a new fastify-app

This package provides the cli skript to create a new @uscreen.de/fastify-app from scratch. No need to install any other prerequisites than node and yarn. Features include:

  • initialize new git repository
  • initialize new yarn package.json
  • install all dependencies and devDependencies
  • add skripts and hooks to package.json
  • setup application skeleton
  • setup dotfiles and linting
  • setup .env for starting

Usage

Use yarn create to create a new fastify-app, like so:

$ yarn create @uscreen.de/fastify-app new-app

and follow instructions. It will create a directory called new-app inside the current folder. Inside that directory, it will generate the initial project structure and install any dependencies:

new-app
├── Makefile
├── README.md
├── app
│   ├── app.js
│   ├── config.js
│   ├── plugins
│   │   └── noop.js
│   ├── schemas.js
│   ├── server.js
│   └── services
│       └── noop.js
├── package.json
├── pm2-dev.config.cjs
├── pm2.config.cjs
├── test
│   ├── helper.js
│   └── noop.test.js
└── yarn.lock

yarn create will update itself and checkout the latest version of the boilerplate packed with lot's of best-practice settings and prepared for local dev and pm2 deployment.

More Details can be found in @uscreen.de/fastify-app README

After creation has finished cd into the new apps directory and check it's README for options. In general you should be able to start your new app in dev mode, like so:

$ cd ./new-app
$ make start
$ make logs

Roadmap

  • add tests
  • add more skeletons
  • add options to choose from
  • ...TBD

Changelog

1.1.2

Changed

  • upgraded to node 20.x (LTS)

1.1.1

Changed

  • upgraded to node 18.x (LTS)

1.1.0

Changed

  • migrated yorkie to husky
  • cleanup app.js and server.js

Added

  • uses @uscreen.de/common-esm for esm migration
  • uses @uscreen.de/fastify-app options for app creation
  • uses nodemon for dev mode

Removed

  • dropped pm2 package and config

1.0.0

Changed

v0.7.0

  • added: graceful shutdown in skeleton

v0.6.0

  • changed: use versions specified in skeleton's package.json

v0.5.0

  • moved to esm
  • upgraded to node 16.x (LTS)

v0.4.0

  • upgraded to node 14.x (LTS)

v0.3.0

  • upgraded to fastify 3.x
  • upgraded to node 12.x (LTS)

v0.2.0

  • added instructions

v0.1.0

  • initially bootstrapped
  • added basic skeleton app based on fastify-app

License

Licensed under MIT.

Published, Supported and Sponsored by u|screen