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

create-kelaskoding-api

v1.0.8

Published

Bun + Drizzle ORM + Express API project generator

Readme

KelasKoding API Generator

This project is a command-line interface (CLI) tool that helps you quickly generate a boilerplate for a Rest API. It sets up a new project with Bun as the JavaScript runtime, Express for building the API, and Drizzle ORM for database interactions.

Features

  • Fast Development: Leverages Bun for incredibly fast dependency installation and script execution.
  • Robust API Framework: Built with Express, a popular and flexible Node.js web application framework.
  • Type-safe Database: Integrates Drizzle ORM for a modern, type-safe, and performant database experience.
  • Authentication Module: Includes a basic authentication setup with user registration and login.
  • Database Migrations: Easily manage your database schema with Drizzle Kit migrations.
  • Swagger Documentation: Automatically generates API documentation using Swagger/OpenAPI.

How to Start

To create a new KelaSkoding API project, follow these steps:

  1. Generate a new project:

    bun create kelaskoding-api my-new-api

    Replace my-new-api with your desired project name.

  2. Navigate into your new project directory:

    cd my-new-api
  3. Install dependencies (if not already installed by bun create):

    bun install
  4. Configure Environment Variables:

    Update the .env file with the required environment variables, especially your database connection string.

  5. Run Database Migrations:

    Before starting the server, apply the database migrations:

    bun run db:migrate
  6. Start the Development Server:

    bun run dev

    Your API server will typically run on http://localhost:3000 (or the port specified in your .env file).

Project Structure

The generated project will have a structure similar to this:

my-new-api/
├── src/
│   ├── app.ts
│   ├── server.ts
│   ├── db/
│   │   ├── db.ts
│   │   ├── migrations/
│   │   └── schemas/
│   │       └── users.ts
│   ├── lib/
│   │   └── jwt.auth.ts
│   └── modules/
│       └── auth/
│           ├── user.controller.ts
│           ├── user.routes.ts
│           └── user.service.ts
├── .env.example
├── bun.lockb
├── drizzle.config.ts
├── package.json
├── README.md
└── tsconfig.json

Available Scripts

In the project directory, you can run:

  • bun run dev: Starts the development server with hot reloading.
  • bun run start: Starts the production server.
  • bun run build: Builds the project for production.
  • bun run db:generate: Generates new Drizzle migrations based on schema changes.
  • bun run db:migrate: Applies pending database migrations.
  • bun run db:push: Pushes the current schema state to the database (for development).
  • bun run db:reset: Drops all tables and reapplies migrations (use with caution!).
  • bun run db:studio: Opens Drizzle Studio for database visualization.
  • bun run swagger:generate: Generates Swagger API documentation.

Contact

For questions, suggestions, or contributions, please contact Hendro Steven at [email protected].

License

This project is open-sourced under the MIT License.