본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)6.0k · #14440

nitro

하는 일

이 스킬은 여러 호스팅 서비스에서 실행되는 서버 도구 Nitro로 웹 서버를 만드는 방법을 설명합니다. API나 웹사이트의 백엔드를 만드는 개발자를 위한 것입니다.

사용하는 경우

  • ✓Nitro 프로젝트에서 서버 라우트나 API 엔드포인트를 만들고 있을 때.
  • ✓서버에 캐싱, 예약 작업 또는 스토리지를 추가하고 싶을 때.
  • ✓Node, Cloudflare, Vercel 같은 플랫폼에 서버를 배포하고 싶을 때.

스킬 링크

https://github.com/antfu/skills/blob/main/skills/nitro/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/antfu/skills/blob/main/skills/nitro/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“API 라우트가 결과를 캐시하고 Cloudflare에 배포되는 Nitro 서버를 설정하도록 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 Nitro 지침에 따라 라우팅, 설정, 배포를 진행합니다. 최신 버전의 규칙이 이전 버전과 다르면 최신 규칙을 적용합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

The skill is based on Nitro v3 (beta, 3.0.260903), generated at 2026-09-25.

Nitro is a framework-agnostic, deployment-agnostic server toolkit powered by H3 v2, unstorage, and Vite/Rolldown/Rollup. It powers Nuxt and works standalone. From one codebase it builds optimized output for Node.js, Bun, Deno, Cloudflare, Vercel, Netlify, and more.

Key capabilities:

  • Filesystem routing with H3 v2 event handlers, dynamic params, and method suffixes.
  • Route rules for declarative caching, headers, redirects, proxying, and CORS.
  • Caching layer (cached handlers/functions, SWR) on top of the unstorage KV layer.
  • Runtime config overridable via NITRO_* env vars.
  • Tasks (on-demand + scheduled/cron), WebSockets/SSE, a SQL database layer, and OpenAPI auto-docs.
  • Plugins & lifecycle hooks, custom renderer/server entry, and portable deployment presets.

Key v3 changes (vs. nitropack v2): the package is renamed nitropack → nitro with H3 v2 (web-standard Request/Response); auto-imports are removed (import everything explicitly); directory scanning is opt-in via serverDir; useStorage → useKV (nitro/kv) and the storage config option → kv; cache swr now defaults to false. If unsure about v2-vs-v3 APIs, read advanced-migration first.

Core

Topic Description Reference
Routing File-based routes, defineHandler, params, middleware, route rules, errors core-routing
Configuration nitro.config.ts, defineConfig, key options, runtime config core-configuration
Storage unstorage KV, mount points, drivers, dynamic mounts core-storage
Cache defineCachedHandler, defineCachedFunction, SWR, invalidation core-cache
Assets Public assets, compression, server assets via storage core-assets
Rendering Renderer (HTML/SSR), server entry, framework integration core-rendering

Features

Topic Description Reference
Plugins & Hooks definePlugin, runtime lifecycle hooks, error capture features-plugins
Tasks On-demand & scheduled (cron) tasks, runTask features-tasks
WebSocket & SSE defineWebSocketHandler, pub/sub, namespaces, event streams features-websocket
Database Built-in SQL layer via db0, useDatabase, connectors features-database
OpenAPI Auto spec from defineRouteMeta, Scalar/Swagger UIs features-openapi

Advanced / Deployment

Topic Description Reference
Deployment Presets Runtimes & providers, compatibility dates, platform integration deploy-presets
v2 → v3 Migration Package rename, nitro/* imports, H3 v2 API, preset changes advanced-migration
자주 묻는 질문

최신 Nitro 버전을 위한 것인가요?

네. Nitro v3를 기준으로 하며, 이전 버전과 어떻게 다른지도 알려 줍니다.

Nitro는 Nuxt와 함께 쓸 수 있나요?

네. Nitro는 Nuxt 뒤에서 서버를 담당하는 엔진이며, 단독으로도 사용할 수 있습니다.

어떤 호스팅 서비스를 지원하나요?

Node, Bun, Deno, Cloudflare, Vercel을 포함한 여러 선택지를 다룹니다.

상세 정보

작성자의 원본 설명

Nitro is the framework-agnostic server toolkit (powering Nuxt) for building and deploying web servers anywhere. Use when working with nitro.config, server routes/event handlers, route rules, caching, storage, tasks, websockets, or deploying to Node/Bun/Deno/Cloudflare/Vercel.

repo: antfu/skills

인기도

GitHub 스타
6.0k
순위
#14440
라이선스
MIT
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬