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

@dbbs/cli

v0.0.7

Published

DBBs CLI for code generation

Readme

@dbbs/cli

Introduction

@dbbs/cli is a command-line tool inspired by the NestJS CLI, designed to streamline the creation and management of Turborepo monorepos. It automates the setup of project structures, integrates pre-built business solutions from our DBBS Solutions Repository, and ensures best practices across your applications.

Features

  • 🚀 Quick monorepo setup with Turborepo
  • 📦 Pre-built configurations for ESLint and TypeScript
  • 🔧 Automated project structure generation
  • 🛠️ Git hooks setup with Husky
  • 📝 Standardized configuration files
  • 🔌 Easy integration of new packages and applications
  • 🎯 Interactive CLI with guided package and application selection
  • 🌐 Direct integration with DBBS Solutions Repository

Installation

Install @dbbs/cli globally using either yarn or npm:

Using yarn:

yarn global add @dbbs/cli

Using npm:

npm install -g @dbbs/cli

Commands

Initialize Project

Creates a new Turborepo monorepo with all necessary configurations.

dbbs init <projectName>

Parameters

| Parameter Name | Type | Required | Description | |----------------|--------|----------|--------------------------------------------------------------------------------------------------------------------| | projectName | string | Yes | The name of the new project to be initialized. This will be used for directory creation and project configuration. |

What This Command Does

  1. Creates a new Turborepo monorepo structure
  2. Sets up essential configuration files:
    • .gitignore
    • .prettierrc.json
    • .vscode/settings.json
    • .yarnrc.yml
    • Makefile
  3. Configures Husky for Git hooks
  4. Creates a package.json with workspace configuration
  5. Fetches and integrates pre-built configurations from DBBS Solutions

Add Package or Application

Adds a new package or application to your monorepo using an interactive menu.

dbbs add
# or
dbbs add package
# or
dbbs add application

Interactive Menu Options

  1. Adding Packages

    • Choose from available packages in the DBBS Solutions Repository
    • Select multiple packages to install at once
    • Packages are automatically downloaded and configured
  2. Adding Applications

    • Choose from available application templates
    • Application is generated using predefined generators
    • All necessary configurations are automatically set up

Examples

# Start interactive menu for adding packages or applications
dbbs add

# Start interactive menu specifically for packages
dbbs add package

# Start interactive menu specifically for applications
dbbs add application

Project Structure

When initialized, your monorepo will follow this structure:

📂 <app-name>/
│── 📄 package.json
│── 📄 tsconfig.json
│── 📄 .gitignore
│── 📄 .prettierrc.json
│── 📄 .yarnrc.yml
│── 📄 Makefile
│── 📂 .vscode/
│   ├── 📄 settings.json
│── 📂 .husky/
│   ├── 📄 pre-commit
│── 📂 typescript/
│   ├── 📂 apps/
│   ├── 📂 packages/
│       ├── 📂 eslint-config/
│       │   ├── 📄 package.json
│       │   ├── 📄 README.md
│       │   ├── 📄 node.js
│       │   ├── 📄 react.js
│       │   ├── 📄 react-native.js
│       ├── 📂 tsconfig/
│           ├── 📄 package.json
│           ├── 📄 README.md
│           ├── 📄 base.json
│           ├── 📄 react-spa.json
│           ├── 📄 react-native.json

Configuration Files

ESLint Configuration

The CLI sets up ESLint with pre-configured rules for:

  • Node.js applications
  • React applications
  • React Native applications

TypeScript Configuration

Pre-built TypeScript configurations for:

  • Base configuration
  • React SPA
  • React Native

Git Hooks

Husky is configured with pre-commit hooks to ensure code quality.

Best Practices

  1. Project Naming

    • Use kebab-case for project names
    • Avoid special characters
    • Use descriptive names that reflect the project's purpose
  2. Package Management

    • Use Yarn as the package manager
    • Workspaces are automatically configured for monorepo management
  3. Code Quality

    • Pre-commit hooks ensure code quality
    • ESLint and Prettier configurations are pre-set
    • TypeScript configurations are optimized for different project types

Troubleshooting

Common Issues

  1. Installation Fails

    # Try clearing yarn cache
    yarn cache clean
       
    # Reinstall the CLI
    yarn global remove @dbbs/cli
    yarn global add @dbbs/cli
  2. Permission Issues

    # Fix permissions for global installation
    sudo chown -R $USER:$GROUP ~/.config
    sudo chown -R $USER:$GROUP ~/.local

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

The DBBS CLI is open-source software licensed under the MIT License.

Authors and Maintainers

  • Andrii Bilous
  • Roman Bobrovskiy

External Dependencies

  • yargs - CLI argument parsing
  • typescript - TypeScript support
  • inquirer - Interactive command line interface

Related Projects