Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

vite-flare-starterVite flare starter 搜索

Agent Skill

vite-flare-starter 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

15,970

周安装

679

GitHub Stars

750

下载量

5,595
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vite-flare-starter(Vite flare starter 搜索)
来源仓库:https://github.com/jezweb/claude-skills
仓库路径:skills/vite-flare-starter
安装命令:
npx skills add https://github.com/jezweb/claude-skills --skill vite-flare-starter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jezweb/claude-skills --skill vite-flare-starter

简介

在几分钟内使用 React、Hono、D1 和 better-auth 搭建一个可投入生产的全栈 Cloudflare 应用程序。

  • 将 vite-flare-starter 模板克隆并重新命名为独立项目,并在 wrangler.jsonc、package.json 和 index.html 中自动查找替换
  • 包括 React 19、Vite、Tailwind v4、shadcn/ui 前端; Workers 上的 Honor 后端; D1 SQLite 与 Drizzle ORM; Google OAuth 的更好身份验证; R2存储;与Workers AI绑定
  • 生成机密、创建 .dev.vars 模板、运行本地迁移,并通过特定于环境的配置为生产提供分步部署说明
  • 通过故障排除指南处理常见陷阱,涵盖身份验证失败、数据库配置错误和 TRUSTED_ORIGINS 设置

SKILL.md

Vite Flare Starter

Clone and configure the batteries-included Cloudflare starter into a standalone project. Produces a fully rebranded, deployable full-stack app.

Stack

LayerTechnologyVersion
FrontendReact, Vite, Tailwind CSS, shadcn/ui19, 6.x, v4, latest
BackendHono (on Cloudflare Workers)4.x
DatabaseD1 (SQLite at edge) + Drizzle ORM0.38+
Authbetter-auth (Google OAuth + email/password)latest
StorageR2 (S3-compatible object storage)
AIWorkers AI binding
Data FetchingTanStack Queryv5

Cloudflare Bindings

BindingTypePurpose
DBD1 DatabasePrimary application database
AVATARSR2 BucketUser avatar storage
FILESR2 BucketGeneral file uploads
AIWorkers AIAI model inference

Project Structure

src/
├── client/                 # React frontend
│   ├── components/         # UI components
│   ├── hooks/              # Custom hooks + TanStack Query
│   ├── pages/              # Route pages
│   ├── lib/                # Utilities (auth client, etc.)
│   └── main.tsx            # App entry point
├── server/                 # Hono backend
│   ├── index.ts            # Worker entry point
│   ├── routes/             # API routes
│   ├── middleware/          # Auth, CORS, etc.
│   └── db/                 # Drizzle schema + queries
└── shared/                 # Shared types between client/server

Key Commands

CommandPurpose
pnpm devStart local dev server
pnpm buildProduction build
pnpm deployDeploy to Cloudflare
pnpm db:migrate:localApply migrations locally
pnpm db:migrate:remoteApply migrations to production
pnpm db:generateGenerate migration from schema changes

Workflow

Step 1: Gather Project Info

Ask for:

RequiredOptional
Project name (kebab-case)Admin email
Description (1 sentence)Google OAuth credentials
Cloudflare accountCustom domain

Step 2: Clone and Configure

2a. Clone and clean

git clone https://github.com/jezweb/vite-flare-starter.git PROJECT_DIR --depth 1
cd PROJECT_DIR
rm -rf .git
git init

2b. Find-replace targets

Replace vite-flare-starter with the project name in these locations:

FileTargetReplace with
wrangler.jsonc"vite-flare-starter" (worker name)"PROJECT_NAME"
wrangler.jsoncvite-flare-starter-dbPROJECT_NAME-db
wrangler.jsoncvite-flare-starter-avatarsPROJECT_NAME-avatars
wrangler.jsoncvite-flare-starter-filesPROJECT_NAME-files
package.json"name": "vite-flare-starter""name": "PROJECT_NAME"
package.jsonvite-flare-starter-dbPROJECT_NAME-db
index.html<title> contentApp display name (Title Case)

Also in wrangler.jsonc:

  • Remove hardcoded account_id line (let wrangler prompt or use env var)
  • Replace database_id value with REPLACE_WITH_YOUR_DATABASE_ID

Reset package.json version to "0.1.0".

Use the Edit tool for replacements (preferred over sed to avoid macOS/GNU differences).

2c. Generate auth secret

BETTER_AUTH_SECRET=$(openssl rand -hex 32 2>/dev/null || python3 -c "import secrets; print(secrets.token_hex(32))")

2d. Create.dev.vars

Convert kebab-case project name: my-cool-app becomes Display My Cool App, ID my_cool_app.

# Local Development Environment Variables
# DO NOT COMMIT THIS FILE TO GIT

# Authentication (better-auth)
BETTER_AUTH_SECRET=<generated>
BETTER_AUTH_URL=http://localhost:5173

# Google OAuth (optional)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# Email Auth Control (disabled by default)
# ENABLE_EMAIL_LOGIN=true
# ENABLE_EMAIL_SIGNUP=true

# Application Configuration
APP_NAME=<Display Name>
VITE_APP_NAME=<Display Name>
VITE_APP_ID=<app_id>
VITE_TOKEN_PREFIX=<app_id>_
VITE_GITHUB_URL=
VITE_FOOTER_TEXT=

NODE_ENV=development

2e. Create Cloudflare resources (optional)

npx wrangler d1 create PROJECT_NAME-db
# Extract database_id from output, update wrangler.jsonc

npx wrangler r2 bucket create PROJECT_NAME-avatars
npx wrangler r2 bucket create PROJECT_NAME-files

2f. Install and migrate

pnpm install
pnpm run db:migrate:local

2g. Initial commit

git add -A
git commit -m "Initial commit from vite-flare-starter"

Step 3: Manual Configuration

  1. Google OAuth (if using): Go to Google Cloud Console, create OAuth 2.0 Client ID, add redirect URI http://localhost:5173/api/auth/callback/google, copy Client ID and Secret to .dev.vars
  2. Favicon: Replace public/favicon.svg
  3. CLAUDE.md: Update project description, remove vite-flare-starter references
  4. index.html: Update <title> and meta description

Step 4: Verify Locally

pnpm dev

Check: http://localhost:5173 loads, shows YOUR app name, sign-up/sign-in works (if OAuth configured).

Step 5: Deploy to Production

# Set production secrets
openssl rand -base64 32 | npx wrangler secret put BETTER_AUTH_SECRET
echo "https://PROJECT_NAME.SUBDOMAIN.workers.dev" | npx wrangler secret put BETTER_AUTH_URL
echo "http://localhost:5173,https://PROJECT_NAME.SUBDOMAIN.workers.dev" | npx wrangler secret put TRUSTED_ORIGINS

# If using Google OAuth
echo "your-client-id" | npx wrangler secret put GOOGLE_CLIENT_ID
echo "your-client-secret" | npx wrangler secret put GOOGLE_CLIENT_SECRET

# Migrate remote database
pnpm run db:migrate:remote

# Build and deploy
pnpm run build && pnpm run deploy

Critical: After first deploy, update BETTER_AUTH_URL with your actual Worker URL. Add the production URL to Google OAuth redirect URIs.

Security Fingerprints

Change all of these so attackers cannot identify your site uses this starter:

LocationDefault ValueHow to Change
Page title"Vite Flare Starter"index.html
App name in UI"Vite Flare Starter"VITE_APP_NAME env var
localStorage keysvite-flare-starter-themeVITE_APP_ID env var
API tokensvfs_ prefixVITE_TOKEN_PREFIX env var
GitHub linksstarter repoVITE_GITHUB_URL (set empty to hide)
Worker namevite-flare-starterwrangler.jsonc
Database namevite-flare-starter-dbwrangler.jsonc
R2 bucketsvite-flare-starter-*wrangler.jsonc

Environment Variables

Branding (VITE_ prefix = available in frontend)

VariablePurposeExample
VITE_APP_NAMEDisplay name in UI"My Cool App"
VITE_APP_IDlocalStorage prefix, Sentry"mycoolapp"
VITE_TOKEN_PREFIXAPI token prefix"mca_"
VITE_GITHUB_URLGitHub link (empty = hidden)""
VITE_FOOTER_TEXTFooter copyright text"2026 My Company"
APP_NAMEServer-side app name"My Cool App"

Auth

VariablePurposeNotes
BETTER_AUTH_SECRETSession encryptionopenssl rand -hex 32
BETTER_AUTH_URLAuth base URLMust match actual URL exactly
TRUSTED_ORIGINSAllowed originsComma-separated, include localhost + prod
GOOGLE_CLIENT_IDGoogle OAuthFrom Google Cloud Console
GOOGLE_CLIENT_SECRETGoogle OAuthFrom Google Cloud Console
ENABLE_EMAIL_LOGINEnable email/password"true" to enable
ENABLE_EMAIL_SIGNUPEnable email signupRequires ENABLE_EMAIL_LOGIN

Email (Optional)

VariablePurposeNotes
EMAIL_FROMSender addressFor verification/password reset
EMAIL_API_KEYEmail service API keyResend recommended

Common Customisations

Adding a New Database Table

  1. Add schema in src/server/db/schema.ts
  2. Generate migration: pnpm db:generate
  3. Apply locally: pnpm db:migrate:local
  4. Apply to production: pnpm db:migrate:remote

Adding a New API Route

  1. Create route file in src/server/routes/
  2. Register in src/server/index.ts
  3. Add TanStack Query hook in src/client/hooks/

Changing Auth Providers

Edit src/server/auth.ts: add provider to socialProviders, add credentials to .dev.vars and production secrets, update client-side login buttons.

Feature Flags

Control features via environment variables: VITE_FEATURE_STYLE_GUIDE=true, VITE_FEATURE_COMPONENTS=true. Add your own in src/client/lib/features.ts.

Troubleshooting

SymptomCauseFix
Auth redirects to homepage silentlyMissing TRUSTED_ORIGINSSet TRUSTED_ORIGINS with all valid URLs
"Not authorized" on deployWrong account_idRemove account_id from wrangler.jsonc or set yours
Database 500 errorsMissing migrationsRun pnpm db:migrate:local and pnpm db:migrate:remote
localStorage shows "vite-flare-starter"Missing VITE_APP_IDSet VITE_APP_ID=yourapp in.dev.vars
Auth fails in production onlyBETTER_AUTH_URL mismatchMust match actual Worker URL exactly (https, no trailing slash)
"redirect_uri_mismatch" on Google sign-inOAuth redirect URI missingAdd production URL to Google Cloud Console OAuth redirect URIs
Secret changes have no effectNot redeployedwrangler secret put does NOT redeploy. Run pnpm deploy after

Production Deployment Checklist

  • BETTER_AUTH_SECRET set (different from dev!)
  • BETTER_AUTH_URL matches actual Worker URL
  • TRUSTED_ORIGINS includes all valid URLs
  • Google OAuth redirect URI includes production URL
  • Remote database migrated (pnpm db:migrate:remote)
  • No vite-flare-starter references in config files
  • Favicon replaced
  • CLAUDE.md updated
  • .dev.vars is NOT committed (check .gitignore)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.26%
按下载量换算2,029

Claude

27.24%
按下载量换算1,524

Cursor

17.66%
按下载量换算988

Gemini CLI

9.19%
按下载量换算514

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills