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

@avot/avot

v1.0.0

Published

Avot automates the creation of microservices.

Downloads

10

Readme

Avot

Avot automates the creation of microservices in your project. It's is fully customizable.

  • It asks the questions you define.
  • Runs your pre scripts. (eg. create git repo and build pipeline)
  • Scaffolds your template files by copying them to your preferred location and replacing variable words.
  • Running your post scripts. (eg. commit and push to git)

Avot has served it's purpose when it is as easy as "avot new", to create a microservice with built in:

  • repository setup
  • build pipeline setup
  • template scaffolding
  • after scripts

How To

Install

npm i -g @avot/avot

Overview

  • To your project structure create an avot configuration file
  • To your project structure create a template directory for avot to scaffold a new service
  • Run avot new if you have avot.json in the root of your project or avot new --path path/to/avot.json

Configuration File

An example avot.json

{
  "variableQuestions": [
    {
      "name": "SERVICE_NAME",
      "message": "Service name:"
    }
  ],
  "preCommands": [
    {
      "command": "echo",
      "args": ["'SERVICE_NAME'"]
    }
  ],
  "paths": {
    "fromDirectory": "../files",
    "toDirectory": "../services"
  },
  "postCommands": [
    {
      "command": "echo",
      "args": ["'hello world'"]
    }
  ]
}

variableQuestions

The value of property "name" will be replaced everywhere in your scaffold files and commands. The value of property "message" will be displayed as the question in the cli. "SERVICE_NAME" is reserved for file and folder naming purposes.

preCommands & postCommands

You can run any commands pre and post scaffolding your template files. The property "command" is the command to be executed. The property "args" are the arguments passed to the command. You can add flags and anything else to the args property.

paths

The property "fromDirectory" should point to your service template directory. The property "toDirectory" should point to your services root directory.

Done

  • A working version with customization only
  • A how to guide
  • A small contribution guide

Upcoming

  • avot init to create basic folder and files to current directory.

Contribution

  • Fork
  • Hack
  • Run node index.js new --path example/config/avot.json to try it out
  • Pull request