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-drogon-app

v0.0.1

Published

CLI tool to scaffold Drogon C++ applications

Readme

🚀 create-drogon-app

A tiny Node.js CLI that scaffolds a ready-to-build Drogon (C++) backend. It copies the template from templates/drogon-starter into a new folder.


✨ What you get

The generated project includes:

  • ⚙️ CMake project (CMake >= 3.15)
  • 📦 Conan dependency management (drogon/1.9.12)
  • 🐘 PostgreSQL dev database via docker compose
  • 🐳 A Dockerfile to build/run the app in a container
  • 🩺 A sample GET /health route
  • 🔌 Loads PORT from .env (defaults to 3000)

✅ Prerequisites

For the generator

  • Node.js (recommended: an active LTS)
  • npm

For building the generated C++ project

  • C++17 toolchain (e.g. GCC/Clang)
  • CMake >= 3.15
  • Python 3 + pip
  • Conan
  • Docker (optional, used for PostgreSQL and/or building the image)

📥 Install

Option A (recommended): use as a starter via npm

npm create drogon-app@latest my-service

Then:

cd my-service

If your npm version requires -- to pass args, use: npm create drogon-app@latest -- my-service.

Option B: use locally from this repo (development)

# from the repo root
npm install -g .
create-drogon-app my-service

Option C: run without installing globally

node ./bin/index.js my-service

🧪 Usage

Create a new Drogon project:

npm create drogon-app@latest my-service
cd my-service

The CLI prints basic build commands. For a more complete local setup (recommended), run:

# 1) local env + config
cp .env.example .env
cp config/config.example.json config/config.json

# 2) (optional) start Postgres
docker compose up -d

# 3) install dependencies
conan profile detect --force
conan install . --output-folder=build --build=missing -s build_type=Release

# 4) configure + build
cmake --preset conan-release
cmake --build --preset conan-release

# 5) run
./build/Drogon_Starter

Hit the health endpoint:

curl -s http://localhost:3000/health

🗂️ Template details

The template lives at:

  • templates/drogon-starter/

It is copied as-is into your new project directory. For full template documentation, see:

  • templates/drogon-starter/README.md

🛠️ How it works

  • Entry point: bin/index.js
  • It reads the project name from the first CLI argument.
  • It copies templates/drogon-starter to ./<projectName> using Node’s fs.cpSync(..., { recursive: true }).

🧩 Development (this repo)

Typical workflow:

# edit files under templates/drogon-starter/
node ./bin/index.js _tmp_test_app
rm -rf _tmp_test_app

📄 License

MIT