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

hs-webapp-coding-init

v0.2.0

Published

FastAPI + React + MongoDB + Caddy 풀스택 부트스트래퍼 — Cursor TDD 룰 + DDD 스캐폴드 + Docker + CI 일괄 주입

Readme

hs-webapp-coding-init

npm version npm downloads license node

FastAPI + React 풀스택 웹앱 부트스트랩 CLI — TDD/Harness/Docs/Security/Deploy 자산 일괄 설치.

새 프로젝트를 만들 때 매번 반복하는 것들을 한 명령으로 깔아줍니다:

  • DDD 4층 백엔드(api/application/domain/infrastructure) + features 기반 React.
  • Docker Compose 4종(db-only / dev / staging / prod) + Caddy 프록시(prod + staging test-acme).
  • .env 4환경 + validate-env.sh(CHANGE_ME fail-fast).
  • pre-commit(ruff/prettier/eslint/bandit/pytest fail-fast) + GitHub Actions(ci + security + deploy).
  • Playwright + MSW + factory_boy 데이터 팩토리.
  • Cursor TDD/auto-versioning rules + 운영 스크립트 + Makefile + 9종 문서 카탈로그(영문 README 포함).

Quick Start

mkdir my-app && cd my-app
npx hs-webapp-coding-init init

기본 preset(webapp-fullstack)이 적용되며 다음 구조가 생성됩니다:

my-app/
├── backend/          FastAPI (DDD 4층, logging_config + dependency check)
├── frontend/         React + Vite (features-based + ErrorBoundary)
├── e2e/              Playwright
├── assets/docker/    Dockerfile.{python,node}, docker-compose.{db-only,dev,staging,prod}.yml
├── scripts/          start/stop-{db,dev,staging,prod}.sh, validate-env.sh, test-all.sh, backup-prod-db.sh
├── docs/             GETTING_STARTED, ARCHITECTURE, DEVELOPMENT, TESTING, ENV_SETUP, DEPLOYMENT, HARNESS, CONTRIBUTING
├── .cursor/rules/    TDD / auto-versioning rules
├── .github/workflows/  ci.yml + security.yml + deploy-{staging,production}.yml
├── .tool-versions    asdf/mise: nodejs / python pinned
├── Caddyfile.{prod,staging}
├── .env.{development,staging,production,test}.example
├── Makefile          단일 진입점 (make dev/test/staging/prod/audit/...)
├── README.md / README.en.md / CHANGELOG.md / LICENSE
└── ...

곧바로:

cd my-app
cp .env.development.example .env.development
make install        # backend + frontend 의존성 자동 감지(pip/poetry/conda/npm)
make test           # backend + frontend 첫 테스트가 그린이어야 함
make dev            # http://localhost:5173

Commands

| 명령 | 설명 | | --- | --- | | hs-webapp-coding-init init | 인터랙티브 init (preset 선택 + 변수 입력) | | hs-webapp-coding-init init --preset <id> --yes | non-interactive | | hs-webapp-coding-init list | preset / asset 목록 | | hs-webapp-coding-init preset [id] | preset 상세 | | hs-webapp-coding-init add <asset-id...> | 특정 자산만 추가 |

주요 옵션

| 옵션 | 의미 | | --- | --- | | --preset <id> | 사용할 preset (기본 webapp-fullstack) | | --yes, -y | 모든 prompt 기본값 사용 | | --force, -f | 기존 파일 덮어쓰기 (기본은 skip) | | --dry-run | 실제 쓰기 없이 미리 보기 | | --no-msw | MSW(API mock) 비활성화 | | --allow-exec | exec action 허용 (보안 opt-in, 기본 거부) | | --var key=value | 변수 직접 지정 (반복 가능) |

Presets

| ID | 용도 | | --- | --- | | webapp-fullstack | FastAPI + React + Docker + Caddy + CI + Security + Deploy + E2E + Docs + Makefile (기본 추천) | | webapp-fullstack-poetry | 위 + Poetry | | webapp-fullstack-conda | 위 + Conda | | webapp-backend | FastAPI 백엔드만 | | webapp-frontend | React 프론트엔드만 | | quality-essentials | lint/format/precommit + cursor rules | | cursor-rules-only | Cursor rules만 | | ops-only | 기존 프로젝트에 docker/ops 자산만 추가 |

8개 하네스 (Harness Engineering)

webapp-fullstack preset이 설치하는 자동화 골격:

| 하네스 | 핵심 자산 | | --- | --- | | Dev | Makefile, start-dev.sh, docker-compose.db-only.yml | | Test | pytest + vitest + Playwright + MSW + tests/factories.py(factory_boy/faker) | | Build/Container | Dockerfile.python, Dockerfile.node | | Edge/Proxy | Caddyfile.prod + Caddyfile.staging(test-acme) | | Deploy | start-{staging,prod}.sh, deploy-{staging,production}.yml (SSH rsync + smoke + GitHub Environment 게이트) | | Environment | .env.<env>.example + validate-env.sh (CHANGE_ME fail-fast) | | Observability | logging_config.py (dictConfig + Request ID), /health/live, /health/ready(pluggable dependency checks), Frontend ErrorBoundary | | Security | security.yml(gitleaks + bandit + pip-audit + npm audit, push/PR/weekly), bandit pre-commit, --allow-exec opt-in | | Reproducibility | .tool-versions (asdf/mise — Node / Python 버전 단일 출처) | | Onboarding | README(KO/EN) + 9종 docs + Makefile + Cursor rules → 30분 컷 |

Python 패키지 매니저 3변형

| Preset | 결과물 | | --- | --- | | webapp-fullstack | backend/pyproject.toml + requirements*.txt (pip) | | webapp-fullstack-poetry | backend/pyproject.toml (Poetry) | | webapp-fullstack-conda | backend/environment.yml (Conda) |

dev deps는 모두 pytest/ruff/mypy/factory-boy/faker/bandit/pip-audit 포함.

TDD 1일차

init 직후 다음이 통과합니다:

  • backend/tests/unit/test_health.py — health/live/ready
  • frontend/src/App.test.tsx — render + MSW health mock

make test로 한 번에 돌려보세요. 그린이면 환경 설정 OK.

변수 (자주 쓰는 것)

| 변수 | 기본값 | 설명 | | --- | --- | --- | | project_name | (디렉터리 이름) | 사람이 읽는 이름 | | project_slug | (자동 생성) | kebab-case, 컨테이너/패키지명에 사용 | | backend_dir | backend | | | frontend_dir | frontend | | | app_module | app | Python 패키지 이름 | | db_kind | mongodb | | | python_version | 3.12 | .tool-versions에 반영 | | node_version | 22 | .tool-versions에 반영 | | frontend_dev_port | 5173 | | | backend_dev_port | 8000 | | | staging_port | 8080 | staging Caddy HTTP 포트 | | proxy_domain | localhost | Caddy 서비스 도메인 | | acme_email | admin@<domain> | Let's Encrypt | | default_locale | ko | | | coverage_threshold | 70 | |

전체 변수표는 src/lib/vars.tsSTANDARD_DEFAULTS를 참조하세요. 모든 변수는 --var key=value로 덮어쓸 수 있습니다.

보안 정책

  • --allow-exec 없이는 exec action을 절대 실행하지 않습니다. 임의 패키지 install 등은 postMessage로 안내만 합니다.
  • 운영(production/staging) 환경에서 validate-env.shCHANGE_ME placeholder가 남아 있으면 fail-fast.
  • 생성 프로젝트의 security.yml이 push/PR/매주 월요일에 gitleaks + bandit + pip-audit + npm audit 자동 실행.
  • deploy-production.yml은 GitHub Environment production Required reviewers 게이트로 수동 승인 후에만 배포.

멱등성

  • 같은 디렉터리에서 다시 init해도 기본은 기존 파일 보존(skip).
  • .gitignore 등 append 자산은 마커(hs-webapp-coding-init/<section> >>>...<<<) 사이만 교체하므로 중복되지 않습니다.

라이선스

MIT © 2026