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 🙏

© 2025 – Pkg Stats / Ryan Hefner

easy-api-zzfvv

v1.0.0

Published

초보자도 쉽게 사용할 수 있는 Node.js 백엔드 프레임워크

Readme

EasyAPI

초보자도 5분만에 배우는 Node.js 백엔드 프레임워크

설치

```bash npm install easy-api ```

사용법

```typescript import { createAPI, z } from "easy-api"

const api = createAPI()

// GET 요청 api.get("/users", (req, res) => { return [{ id: 1, name: "홍길동" }] })

// POST 요청 (자동 검증) api.post( "/users", (req, res) => { return { id: 2, name: req.body.name } }, z.object({ name: z.string().min(2), email: z.string().email(), }) )

// 서버 시작 api.start(3000) ```

그게 끝입니다! 이제 http://localhost:3000/docs 에서 API 문서를 확인하세요.

전체 예제

```typescript import { createAPI, z } from "easy-api"

const api = createAPI()

// 데이터 저장소 const users: any[] = []

// 모든 사용자 조회 api.get("/users", (req, res) => { return users })

// 사용자 생성 (자동 검증) api.post( "/users", (req, res) => { const user = { id: users.length + 1, ...req.body } users.push(user) return user }, z.object({ name: z.string().min(2), email: z.string().email(), age: z.number().min(1), }) )

// 특정 사용자 조회 api.get("/users/:id", (req, res) => { const user = users.find((u) => u.id === Number(req.params.id)) if (!user) { res.status(404) return { error: "사용자를 찾을 수 없습니다" } } return user })

// 사용자 삭제 api.delete("/users/:id", (req, res) => { const index = users.findIndex((u) => u.id === Number(req.params.id)) if (index === -1) { res.status(404) return { error: "사용자를 찾을 수 없습니다" } } users.splice(index, 1) return { message: "삭제되었습니다" } })

api.start(3000) ```

API 메서드

  • api.get(경로, 핸들러, 스키마?, 설명?) - GET 요청
  • api.post(경로, 핸들러, 스키마?, 설명?) - POST 요청
  • api.put(경로, 핸들러, 스키마?, 설명?) - PUT 요청
  • api.delete(경로, 핸들러, 스키마?, 설명?) - DELETE 요청
  • api.patch(경로, 핸들러, 스키마?, 설명?) - PATCH 요청
  • api.start(포트?) - 서버 시작

자동 기능

  • ✅ 입력값 자동 검증 (Zod)
  • ✅ 에러 자동 처리
  • ✅ Swagger 문서 자동 생성 (/docs)
  • ✅ JSON 파싱 자동 처리

라이선스

MIT