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 🙏

© 2026 – Pkg Stats / Ryan Hefner

mary-command

v0.3.0

Published

Bootstrapping node app for backend and CLI for create classes

Downloads

9

Readme

mary-command

Bootstrapping node app to backend and CLI to create classes

usage:

There are two ways to use the application:

With the init command: This command is the initiator of the bootstrapping function, this is executed with mary-command init, you can also pass some parameters to it, such as --type to specify what type of architecture you will use (only supports 'onion' and 'default'), another parameter is --cqrs to specify that the responsibility of command and query should segregate them.

With existing project:

You must be created a config.json file into root directory with the next fields:

{
  type: "onion" | "default"; //Only you choose one
  database: string; //Type of database you use
  cqrs: boolean; //Must differentiate command and queries
  shouldCreateRepositoryInterface: boolean; 
  shouldCreateQueryResult: boolean;

  // Paths
  repositoryInterfacePath: string;
  repositoryPath: string;
  queryInputPath?: string;
  commandInputPath: string;
  adapterPath: string;
  controllerPath: string;
  modelPath: string;
  commandHandlerPath: string;
  queryHandlerPath?: string;
  resultFilePath?: string;
  diPath: string; //DI file path with filename included
}

Based on the routes that are set in the configuration file, the application will rely on this to generate the different model files, controllers and services.

The listed commands supported so far are:

  • mary-command make:model this command will generate the model with parameters and types specified
  • mary-command make:repository this command will generate a repository with basic functions of that, (based on the expected configuration, this can generate the interface of the same) and in the DI, this command will binding the class with the import
  • mary-command make:test only to generate the structure of the test, either unitary or integration, being integration the default
  • mary-command make:controller will generate the basic controller and binding into DI with the import
  • mary-command make:usecase this will generate a complete use case with action, adapter, input and handler files binding into the DI container