🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

create-worker-app

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-worker-app

Create Cloudflare Workers apps with Hono.js

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

create-worker-app

快速创建 Cloudflare Workers 应用的脚手架工具,基于 Hono.js 框架。

使用方法

# 使用 npx (推荐)
npx create-worker-app my-app

# 或全局安装
npm install -g create-worker-app
create-worker-app my-app

# 或使用 npm init
npm init worker-app my-app

特性

  • 🚀 基于 Hono.js - 超快的 Web 框架
  • 📝 TypeScript 支持
  • 📚 可选的 OpenAPI/Swagger 文档生成
  • 🗄️ 可选的数据库配置
  • 🛠️ 内置路由生成器
  • ⚡ Cloudflare Workers 优化

创建的项目结构

my-app/
├── src/
│   ├── index.ts          # 应用入口
│   ├── types/            # 类型定义
│   ├── routes/           # API 路由
│   ├── schemas/          # Zod schemas
│   └── lib/              # 工具库
├── scripts/
│   └── generate-route.js # 路由生成器
├── wrangler.toml         # Cloudflare 配置
├── tsconfig.json         # TypeScript 配置
├── package.json
└── README.md

开发

# 克隆仓库
git clone https://github.com/leeguooooo/create-worker-app.git
cd create-worker-app

# 安装依赖
npm install

# 本地测试
node index.js test-app

License

MIT

Keywords

cloudflare

FAQs

Package last updated on 25 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts