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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@avila-tek/cli

v1.2.1

Published

Cli for Avila Tek projects

Readme

avila-cli

A full-stack code CLI for code generation for the multiple tech stacks of Avila Tek

🛠️ Full-Stack Code Generator

A powerful and flexible code generator that scaffolds boilerplate code for multiple technology stacks. Whether you're building a frontend, backend, or fullstack app, this tool helps you kickstart development with best practices, project structure, and consistent code.

🚀 Features

  • Generate code for multiple tech stacks:
    • Mongoose With RESTful
    • Mongoose with GraphQL (In development)
    • Prisma with RESTful (In development)
    • Prisma with GraphQL (In development)
  • CLI-based interactive prompts
  • Supports monorepo structures (e.g., npm, Turborepo)
  • Developer-friendly output and clean structure

📦 Installation

You can install it globally via npm:

npm install -g @avila-tel/cli

⚙️ Initialization

First you'll need to initialize the tool in order to generate the code, and you can achieve this by running:

  avila init

You will be propmted with the following questions

? Project name <project_name>
✔ Select backend architecture GraphQL - RESTful
✔ Select ORM Mongoose - Prisma
✔ Where is your server located? <path_to_server>
✔ What is the name for the client app? <name_of_client>
✔ What is the name for the admin app? <name_of_admin>
✔ What is the name for the API app? <name_of_api>

That will generate a config file having the necessary variables in order to work properly!

{
  "project": "project",
  "backendArchitecture": "GraphQL",
  "ORM": "Mongoose",
  "serverLocation": "app.ts",
  "apps": {
    "client": "client",
    "admin": "admin",
    "api": "api"
  },
  "ui": []
}

🧑‍💻 Usage

Run the generator and choose from the available commands:

avila <command>

Available commands

  • 📦 resource – Generate a full backend resource (model, service, controller, route, web-service)

  • 🌐 web-service – Set up a complete backend web service (In development)

  • 🎮 controller – Create a controller with route handlers (In development)

  • 🧠 service – Generate a backend service (business logic) (In development)

  • 🧬 model – Scaffold a data model (e.g., Prisma, Mongoose) (In development)

  • 🛣️ route – Add standalone backend routes (In development)

  • 🖥️ add – Add user-facing UI components

Example:

 > avila resource testing
Creating component: testing
Model created successfully!
Generating API component for: testing
Avoiding overwrite on pagination file
Generted API route
Generating frontend component for: testing
? Where do you want the services for the frontend to be? (Use arrow keys)
❯ Shared
  Admin
  Clien

🛠️ Development

To contribute or extend the generator:

git clone https://github.com/Avila-Tek/avila-cli.git
cd avila-cli
npm install
npm link // This will generate a symbolic link to this folder to the target project

Then in the root of the target project run:

npm link @avila-tek/cli

Now you can safely run:

avila generate <command>

And start scaffolding the app.

Happy coding!