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

tyr-cli

v0.6.1

Published

A command line interface for hammer-io.

Downloads

36

Readme

Build Status codecov npm version FOSSA Status Gitter chat

tyr

A CLI tool to scaffold Node.js microservice applications with DevOps capabilities. It takes an opinionated approach, meaning we've done the homework and start you off with what we think are the best tools for a small team creating a new open-source project. Upon running the CLI, it will ask you a series of questions and use the answers to do the following:

  • generate a new Node.js project,
  • add testing, web, and database frameworks,
  • initialize and push the code to a new GitHub repository,
  • establish a continuous integration environment,
  • build a container for the code, and
  • deploy the app container to a cloud service.

The goal is to save you time and headaches and get you started developing code faster.

Getting Started

Prerequisites

Before you can use Tyr, you need to make sure you've done the following:

  1. Create a GitHub account. At this current stage of development, GitHub is the default version control platform for storing and managing your code.
  2. Ensure that you linked your TravisCI account to your GitHub account.
  3. Create a Heroku account. At this current stage of development, Heroku is the default web hosting service.
  4. After creating a Heroku account, find your API key here. Make sure to copy it as you'll need it to sign in to Heroku.

Installation

npm install --global tyr-cli

Usage

tyr [OPTIONS]

Options:

  • -V, --version output the version number
  • --config <file> configure project from configuration file
  • --logfile <file> the filepath that logs will be written to
  • -h, --help output usage information

Configuration File

Project Configurations

| Name | Required | Note | |---------------|----------|--------------------------------------------------------------------------------| | projectName | Yes | Must be a valid directory name and cannot be a directory that already exists. | | description | Yes | | | version | No | Must match (number)(.number)* | | author | No | For multiple authors, use comma separated values | | license | No | |

Tooling Choices

| Name | Required | Description | Valid Choices | |--------------------|----------|------------------------------------------------|-----------------------| | ci | Yes | The Continuous Integration Tool you want to use | <None>, TravisCI | | containerization | Yes | The Containerization tool you want to use | <None>, Docker | | deployment | Yes | The deployment tool you want to use | <None>, Heroku | | sourceControl | Yes | The source control tool you want to use | <None>, GitHub | | web | Yes | The web framework you want to use | <None>, ExpressJS | | test | Yes | The test framework you want to use | <None>, Mocha | | orm | Yes | The Object-relational Mapping framework you want to use | <None>, Sequelize |

  • If Source Control Choice is <None>, then CI Choice, Containerization Choice, and Deployment Choice must also be <None>.

  • If CI Choice is <None>, then Containerization Choice and Deployment Choice must also be <None>.

  • If Containerization Choice is <None>, then Deployment Choice must also be none.

File Format

{
  projectConfigurations:
    {
      projectName: '{project name}',
      description: '{project description}',
      version: '{version number}',
      author: ['author1', 'author2', ...],
      license: '{license}'
    },
  toolingConfigurations:
    {
      sourceControl: '{source control choice}',
      ci: '{ci choice}',
      containerization: '{containerization choice}',
      deployment: '{deployment choice}',
      web: '{web framework choice}',
      test: '{test framework choice}',
      orm: '{orm framework choice}'
    }
}

Contributing

Please see our Contributing Guide for contribution guidelines.

License

FOSSA Status

Security Information Management Policy

In order to orchestrate the various third party applications for your project, we will periodically ask for your username and password to these applications. To find out more about how we use these credentials and what steps we are taking to keep your information safe, please read the Security Information Management Policy.