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

elysia-js-cli

v2.0.0

Published

Elysia CLI is a simple Command Line Interface created to make it easier for developers to start and manage projects using Elysia JS, a lightweight and fast web framework based on Bun.

Readme

Screenshot from 2025-06-19 16-16-43


📋 Table of Contents

  1. 🤖 Introduction
  2. ⚙️ Tech Stack
  3. 📌 Features
  4. 🧸 Quick Start
  5. 📜 CLI Usage
  6. 📦 Project Structure
  7. 🔗 Links
  8. 🙏 Acknowledgements

🤖 Introduction

Elysia JS CLI is a developer-friendly CLI tool that simplifies and accelerates the process of scaffolding new projects using the Elysia JS Framework.

It helps developers to:

  • Scaffold fully configured projects following industry best practices.
  • Automate repetitive setup tasks such as creating folder structures, configuration files, installing dependencies, and more.
  • Focus more on building core application features instead of spending time on initial setup.

Whether you're starting a prototype or a production-ready app, Elysia JS CLI provides a smooth and efficient starting point for both beginners and experienced developers.


⚙️ Tech Stack

  • Bun JS : Ultra-fast JavaScript runtime.
  • Elysia JS : Minimalist and fast web framework.
  • TypeScript : Type-safe JavaScript superset.

📌 Features

  • Project Type Selection

    • Currently supports REST API scaffolding (more types coming soon).
  • Optional Tools Integration

    • Prettier – Code formatting.
    • ESLint – Code linting and static analysis.
    • Husky – Git hooks integration.
    • Commitlint – Enforce conventional commits.
    • Swagger - API Documentation
  • Database Support

    • MySQL (more databases coming soon).
  • ORM Integration

    • Drizzle ORM – Type-safe SQL ORM.
  • Version Control Initialization

    • Automatic Git initialization with first commit.
  • Project Boilerplate Generation

    • Predefined folder structure, config files, sample code using schematics.
  • Environment Configuration

    • Auto-generate .env template file.
  • Interactive CLI

    • Smooth, intuitive question-based setup.

🧸 Quick Start

1. Prerequisites

2. Installation

bun install -g elysia-js-cli

3. Create New Project

elysia new <projectName>

4. CLI Interactive Questions

  • Project type : REST API
  • Use Prettier? : (Y/n)
  • Use ESLint? : (Y/n)
  • Enable Husky & Commitlint? : (Y/n)
  • Use Swagger? : (Y/n)
  • Choose database : MySQL
  • Choose ORM : Drizzle ORM
  • Initialize Git? : (Y/n)

5. Running Your Project

cd <your-project>
bun run format  # optional formatting
bun run dev

6. Verify Setup

Check server with Postman or curl:

curl http://localhost:3000

You should receive a successful response from your server.


📜 CLI Usage

Display Help

elysia -h

Options

| Option | Description | | --------------- | -------------------- | | -v, --version | Show current version | | -i, --info | Show CLI information | | -h, --help | Show help | | -u, --update | update elysia js cli |

Commands

| Command | Description | | --------------------------------- | ---------------------------- | | new <projectName> | Create new Elysia JS project | | generate <schematic> <fileName> | Generate new file |

Available Schematics

| Schematic | Description | | ------------ | --------------------------------------------------------- | | controller | Generate controller file | | service | Generate service file | | route | Generate route file | | repository | Generate repository file | | validation | Generate validation file | | model | Generate model file | | interface | Generate interface file | | resources | Generate full resources (controller, service, route, etc) | | config | Generate config file | | middleware | Generate middleware file | | util | Generate utility file | | enum | Generate enum file |

Example:

elysia generate controller user

This will create src/controllers/user.controller.ts based on template.


📦 Project Structure

Example structure after scaffolding:

my-awesome-api/
├── .husky/
├── node_modules/
├── src/
│   ├── configs/
│   ├── controllers/
│   ├── databases/
│   │   ├── models/
│   ├── enums/
│   ├── interfaces/
│   ├── middlewares/
│   ├── repositories/
│   ├── routes/
│   ├── services/
│   ├── types/
│   ├── utils/
│   ├── validations/
│   └── index.ts
├── .env
├── .gitignore
├── .prettierrc
├── bun.lockb
├── commitlint.config.js
├── drizzle.config.ts
├── eslint.config.mjs
├── package.json
├── README.md
└── tsconfig.json

🔗 Links


🙏 Acknowledgements

Big thanks to SaltyAom for creating Elysia JS, which inspired and powered the development of this CLI tool.

Note: More features coming soon! 🚀