跳到正文
VibeFather
免费注册

关于这个模板

一个快速、离线优先的开发者实用工具 Web 应用,在独立的 hash 路由上提供 15 个真正可用的工具:JSON 格式化与校验器、Base64 编码/解码器、URL 解析器、JWT 解码器、实时正则高亮器、逐行 diff 查看器、UUID 与密码生成器、带 WCAG 对比度检查的颜色转换器、Unix 时间戳转换器、cron 表达式解释器、Markdown 预览、图片转 Data-URI 编码器、大小写转换器、lorem ipsum 生成器和 Web Crypto 哈希生成器。包含基于 localStorage 的收藏和历史记录、Cmd+K 命令跳转、纸白与墨黑美学配青柠色点缀,以及完整的深色模式。

模板提示词

在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。

# Developer Utilities Toolbox

Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.

## Brief
Build [BRAND], a tactile, high-craft browser-local developer utilities suite with 15 genuinely working utilities, each living on its own hash route with synced document title and utility description. Every operation runs 100% locally in the browser with zero network calls or uploads.

- Audience: Software engineers, frontend developers, SREs, and designers who need fast, distraction-free encoding, formatting, diffing, regex testing, color contrast checking, and hashing without pasting sensitive data into ad-heavy websites.
- Goal: Open directly into an immediately usable split workbench on desktop and a clean single-column utility view on mobile, with a persistent sidebar tool directory, favorites and recent history persisted in localStorage, a Cmd+K / Ctrl+K command palette, and seamless light/dark switching.
- Tone: Technical stationery: crisp hairline borders, generous breathing room, exact tabular monospace readouts, punchy lime highlights, and zero marketing fluff.

## Stack
- Framework: Vite 5 + React 18 + TypeScript
- Styling: Tailwind CSS 3.4
- Libraries: lucide-react (ISC), @fontsource/space-grotesk (OFL-1.1), @fontsource/inter (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Set base: './' and build.sourcemap: false in vite.config.ts.
  - Configure darkMode: 'class' in tailwind.config.js with Space Grotesk as display font, Inter as sans font, and JetBrains Mono as mono font.
  - Import @fontsource/space-grotesk (500, 600, 700), @fontsource/inter (400, 500, 600), and @fontsource/jetbrains-mono (400, 500, 600) in src/main.tsx.
  - Keep all brand copy, utility metadata, and default sample inputs in src/data/tools.ts.
  - Persist favorites, recent tool history, and theme preference in localStorage under namespaced keys derived from [BRAND].

## Variables
- [BRAND] — App Name (default: "BenchKit"). Short name displayed in the sidebar header, page titles, and command palette.
- [TAGLINE] — Short Tagline (default: "15 local developer utilities. Zero uploads."). Concise subtitle shown on the home directory and privacy banner.
- [DOMAIN_HINT] — Local Domain Label (default: "benchkit.local"). Used inside sample JSON, JWT, URL, and email snippets.
- [SUPPORT_EMAIL] — Sample Contact Email (default: "[email protected]"). Sample email used in payloads and footer.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/developer-utilities-toolbox in the footer (default: yes; delete this line to remove it)

The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.

## Design
### Colors
- Paper White `#FBFBF9` — Light mode primary canvas background
- Sheet White `#FFFFFF` — Elevated workbench panels and cards in light mode
- Ink Black `#15171A` — Primary text, active pills, and crisp structural borders
- Slate Muted `#59606B` — Secondary labels, descriptions, and line numbers (WCAG AA)
- Electric Lime `#A3E635` — Active route indicator, primary action highlights, and local-safe pulse
- Deep Moss `#3F6212` — High-contrast accent text on light lime surfaces
- Obsidian Dark `#101215` — Dark mode primary canvas background
- Graphite Panel `#171B20` — Dark mode elevated cards and editor wells

### Typography
- Display & Tool Headings: Space Grotesk (OFL), weights 500/600/700
- UI Body & Labels: Inter (OFL), weights 400/500/600
- Code, Payloads & Tabular Metrics: JetBrains Mono (OFL), weights 400/500/600

### Layout & motion
- Spacing: Compact engineering grid: 264px fixed desktop sidebar with 24px–32px main workspace padding, 16px panel gutters, and 12px inner toolbar rhythm.
- Radius: Crisp 8px containers, 6px inputs and buttons, 999px status pills.
- Motion: 140ms ease-out hover highlights and active lime rail slide on sidebar items
- Motion: 160ms scale-and-fade entrance on the Cmd+K command palette modal
- Motion: Brief 1.2s lime checkmark confirmation state on Copy buttons
- Motion: Respect prefers-reduced-motion by disabling transforms and transitions
- Imagery: Pure code-drawn technical UI: crisp Lucide icons, precision SVG contrast gauges, sample inline geometric SVG for Image-to-Data-URI, and subtle dot-grid paper texture on empty/overview headers.

## Pages & Sections
### All Utilities Directory — [BRAND] (`#/`)
1. **Persistent App Shell (Header + Sidebar + Command Palette)** — Left sidebar (collapsible drawer on mobile) showing [BRAND] geometric mark, '100% Local · Nothing Uploaded' lime-dot privacy badge, instant search trigger button showing '⌘K', Pinned Favorites section, Recent History section (last 5 used tools), and all 15 utilities grouped into 5 categories: Formatting & Code, Encoding & Web, Security & Crypto, Text & Regex, Design & Time. Top bar shows current route breadcrumb, quick '⌘K Jump' pill, and Light/Dark theme toggle.
   Layout: Fixed 264px left rail on desktop (lg:flex) with 1px ink/10 hairline divider; sticky 56px top bar with single-line controls and mobile menu drawer button.
   Motion: Smooth 140ms sidebar active state highlight and instant keyboard navigation in the Cmd+K modal (Up/Down/Enter/Esc).
2. **Workbench Overview Hero & Quick Launch Grid** — Concise technical banner with [BRAND] title, [TAGLINE], live count of 15 local utilities, quick search/filter bar, Pinned Favorites strip, and a structured 3-column bento directory of all 15 tools with category tags, one-line descriptions, star/favorite buttons, and an embedded interactive 'Quick Scratchpad' preview card showing live JSON/Hash/Base64 detection.
   Layout: Subtle dot-grid paper header card followed by category filter pills and a responsive 1/2/3-column card grid.
   Motion: Crisp border-ink hover lift on utility cards with lime corner index badges.

### JSON Formatter & Validator — [BRAND] (`#/json`)
1. **JSON Formatter & Validator Workbench** — Preloaded realistic sample JSON payload for [BRAND], live syntax validation with exact error line/column indicator, Format (2 spaces / 4 spaces), Minify, Sort Keys alphabetically, Validate, Clear, Load Sample, and Copy Output controls, plus live byte size, key count, and nesting depth stats.
   Layout: Two-column side-by-side monospace editor on desktop, stacked on mobile, with a compact action toolbar and status footer.
   Motion: Instant green/lime valid pill or crimson syntax-error banner transition.

### Base64 Encode & Decode — [BRAND] (`#/base64`)
1. **Base64 UTF-8 & URL-Safe Workbench** — Bidirectional Encode / Decode mode toggle, URL-safe base64 option (- and _ without padding), full UTF-8 multi-byte support, swap input/output button, sample payload loader, byte-delta badge, and copy button.
   Layout: Split two-pane workbench with direction toggle bar and live character/byte counters.
   Motion: Swap animation feedback and instant live conversion as you type.

### URL Encoder & Query Parser — [BRAND] (`#/url`)
1. **URL Encode/Decode & Structured Query Parameter Editor** — Toggle between encodeURIComponent and full URI encoding, decode panel, plus an interactive parsed breakdown showing Protocol, Host, Pathname, Hash, and an editable key-value Query Parameters table that rebuilds the URL live.
   Layout: Top URL bar and encode/decode split pane above a clean structured component and query-param table.
   Motion: Live row add/remove transitions in the query parameter editor.

### JWT Decoder & Inspector — [BRAND] (`#/jwt`)
1. **JSON Web Token Inspector** — Preloaded valid demo JWT signed for [DOMAIN_HINT], color-coded three-segment token view (Header, Payload, Signature), formatted JSON Header and Payload cards with human-readable claim explanations (iss, sub, iat, exp, scope), expiration status badge, and an explicit note that signature verification requires your secret offline.
   Layout: Left raw JWT input with color-segmented preview ribbon; right stacked Header, Payload, and Claims Summary cards.
   Motion: Instant segment highlighting as the token is edited.

### Regex Tester & Match Highlighter — [BRAND] (`#/regex`)
1. **Regular Expression Tester** — Pattern input with interactive flag toggles (g, i, m, s, u), quick preset chips (Email, Semantic Version, IPv4, Hex Color, ISO Time), live test string editor with inline lime-highlighted match overlay, match count badge, and structured Capture Groups breakdown table.
   Layout: Full-width pattern bar over a split live-highlighted test surface and match/capture groups inspector.
   Motion: Immediate match highlight updates on every keystroke.

### Text Diff Viewer — [BRAND] (`#/diff`)
1. **Line-by-Line Text Diff Workbench** — Original and Modified monospace text inputs preloaded with a realistic config comparison, real LCS line-by-line diff engine with Unified and Split view modes, Ignore Whitespace toggle, added/removed/unchanged line counters, and copyable unified patch output.
   Layout: Dual input panes above a full-width color-coded diff viewer with crisp +/- gutters.
   Motion: Instant diff recomputation with subtle tinting for inserted and removed lines.

### UUID & Password Generator — [BRAND] (`#/uuid`)
1. **Crypto UUID v4 & High-Entropy Password Generator** — Uses browser crypto.getRandomValues(): batch UUID v4 generator (1–25 at once, uppercase/no-hyphens toggles, copy all) alongside a cryptographic Password Generator with length slider (8–64), character set toggles, ambiguous-character exclusion, live entropy bit calculation, and strength meter.
   Layout: Two balanced cards side-by-side on desktop (UUID batch panel and Password generator panel), stacked on mobile.
   Motion: Smooth strength-meter bar fill and copy feedback states.

### Color Converter & WCAG Contrast Checker — [BRAND] (`#/color`)
1. **Color Format Converter & Accessibility Contrast Lab** — Interactive color picker and editable HEX, RGB, and HSL inputs with instant sync, curated palette swatches, foreground vs. background swap button, live WCAG 2.1 contrast ratio readout, AA/AAA Pass/Fail badges for Normal Text, Large Text, and UI Components, and live typography preview card.
   Layout: Left color converter inputs + swatch strip; right live contrast preview card with AA/AAA compliance matrix.
   Motion: Smooth background/foreground color transitions when adjusting sliders or swapping.

### Unix Timestamp Converter — [BRAND] (`#/timestamp`)
1. **Epoch & Timezone Converter** — Live ticking current Unix timestamp (seconds & milliseconds) with Pause/Copy controls, Epoch-to-Human converter (auto-detects seconds vs. ms), Human-to-Epoch builder (local and UTC ISO-8601), relative offset readout, and multi-timezone table (UTC, New York, London, Tokyo, Sydney).
   Layout: Top live-clock strip over two converter cards and a compact multi-zone readout table.
   Motion: Subtle lime pulse dot when live clock is running.

### Cron Expression Explainer — [BRAND] (`#/cron`)
1. **5-Field Cron Parser & Next Runs Simulator** — Editable 5-field cron expression input (minute, hour, day-of-month, month, day-of-week), clickable preset chips (Every 5 min, Weekday 09:00, Nightly Backup, Monthly 1st), plain-English human translation, field-by-field breakdown cards, and computed next 5 scheduled execution times.
   Layout: Prominent monospace cron input bar, large English explanation callout, 5-column field breakdown, and upcoming schedule list.
   Motion: Field card highlights corresponding to each cron token.

### Markdown Live Preview — [BRAND] (`#/markdown`)
1. **Split Markdown Editor & Sanitized HTML Preview** — Preloaded realistic README snippet for [BRAND], toolbar buttons for Bold, Italic, Code, Heading, Link, Quote, and List, real client-side Markdown-to-HTML renderer supporting headings, bold/italic/inline-code, fenced code blocks, tables, blockquotes, lists, and horizontal rules, word/reading-time counters, and Copy HTML / Copy Markdown actions.
   Layout: Resizable or balanced 50/50 split editor and styled prose preview on desktop, tabbed or stacked on mobile.
   Motion: Instant live preview updates as Markdown is edited.

### Image to Data URI Encoder — [BRAND] (`#/image-uri`)
1. **Local Image to Base64 Data URI Converter** — Drag-and-drop and click file picker for PNG, SVG, WebP, and JPEG files (100% local FileReader), plus a one-click 'Load Sample Graphic' button using an inline code-drawn geometric emblem so visitors can test immediately. Displays thumbnail preview, dimensions, raw vs. encoded byte size, and copyable Data URI, CSS background-image, and HTML img snippets.
   Layout: Left dropzone & preview metadata card; right multi-format snippet output with tabs (Data URI / CSS / HTML).
   Motion: Lime dashed border glow on file drag-over.

### Case Converter — [BRAND] (`#/case`)
1. **Multi-Format Identifier & Text Case Converter** — Single text input that simultaneously computes and displays 10 formats with one-click Copy buttons: camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, Title Case, Sentence case, dot.case, path/case, and Constant Header-Case, plus word/character/line counters.
   Layout: Top monospace source textarea over a clean 2-column grid of live-converted format cards.
   Motion: Instantaneous synchronized updates across all 10 output cards.

### Lorem Ipsum Generator — [BRAND] (`#/lorem`)
1. **Configurable Placeholder Copy Generator** — Mode selector (Paragraphs, Sentences, Words, Technical Specs), count slider (1–20), toggle for 'Start with classic opening' or 'Engineering flavor', optional HTML <p> wrapper toggle, instant Regenerate button, word/character count readout, and one-click Copy.
   Layout: Compact control bar above a clean readable output sheet with copy button.
   Motion: Crisp regeneration refresh feedback.

### Web Crypto Hash Generator — [BRAND] (`#/hash`)
1. **Browser-Native SHA Digest & HMAC Workbench** — Uses native Web Crypto API (crypto.subtle.digest) to compute live SHA-1, SHA-256, SHA-384, and SHA-512 digests simultaneously for any text input or dropped local file, with Uppercase/Lowercase hex toggle, Base64 digest view, and an interactive Verify Checksum comparator input that lights up lime on match.
   Layout: Top input textarea & local file drop chip over stacked digest rows and a checksum verification bar.
   Motion: Instant lime verified badge when comparator matches any computed digest.

## Assets
- icon: Installed via npm package lucide-react (ISC license); crisp 1.75px stroke technical icons across sidebar, toolbars, and command palette.
- font: Installed via @fontsource/space-grotesk, @fontsource/inter, and @fontsource/jetbrains-mono (OFL); bundled locally by Vite.
- image: Code-drawn inline SVG inside src/data/tools.ts used for the brand mark and the Image-to-Data-URI one-click sample loader.

## Don'ts
- Do not make any external network requests, CDN font loads, or third-party API calls — every utility must run 100% locally in the browser.
- Do not fake or stub any of the 15 utilities; every tool must perform genuine real-time computation on arbitrary user input.
- Do not hard-code calendar dates or copyright years anywhere in the UI chrome; timestamp tools must compute dynamically from input or current epoch.
- Do not include source maps or copy src/ files into dist/; keep vite base set to './'.
- Do not allow horizontal overflow at 1440x900 desktop or 390x844 mobile — always apply min-w-0 and break-all/overflow-x-auto inside code and output boxes.
- Do not mention any real third-party developer utility sites or brands.

---
— Prompt by VibeFather · https://vibefather.ai/t/developer-utilities-toolbox · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 开发者实用工具集

请完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。

## 简介
构建 [BRAND],一个触感强、工艺精湛的浏览器本地开发者工具套件,包含 15 个真正可用的工具,每个工具都位于自己的 hash 路由上,并同步文档标题和工具描述。所有操作 100% 在浏览器本地运行,零网络调用或上传。

- 受众:软件工程师、前端开发者、SRE 和设计师,他们需要快速、无干扰的编码、格式化、差异对比、正则测试、颜色对比度检查和哈希计算,而无需将敏感数据粘贴到广告泛滥的网站中。
- 目标:在桌面端直接打开即可使用的分栏工作台,在移动端为干净的单列工具视图,配有常驻侧边栏工具目录、持久化在 localStorage 中的收藏和最近历史、Cmd+K / Ctrl+K 命令面板,以及无缝的浅色/深色切换。
- 基调:技术文具风:清晰的细线边框、充裕的留白、精确的表格等宽读数、醒目的青柠色高亮,以及零营销废话。

## 技术栈
- 框架:Vite 5 + React 18 + TypeScript
- 样式:Tailwind CSS 3.4
- 库:lucide-react (ISC)、@fontsource/space-grotesk (OFL-1.1)、@fontsource/inter (OFL-1.1)、@fontsource/jetbrains-mono (OFL-1.1)
- 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。
- 配置:
  - 在 vite.config.ts 中设置 base: './' 和 build.sourcemap: false。
  - 在 tailwind.config.js 中配置 darkMode: 'class',显示字体使用 Space Grotesk,无衬线字体使用 Inter,等宽字体使用 JetBrains Mono。
  - 在 src/main.tsx 中导入 @fontsource/space-grotesk(500、600、700)、@fontsource/inter(400、500、600)和 @fontsource/jetbrains-mono(400、500、600)。
  - 将所有品牌文案、工具元数据和默认示例输入保留在 src/data/tools.ts 中。
  - 将收藏、最近工具历史和主题偏好持久化到 localStorage,使用基于 [BRAND] 派生的命名空间键。

## 变量
- [BRAND] — 应用名称(默认:"BenchKit")。显示在侧边栏标题、页面标题和命令面板中的短名称。
- [TAGLINE] — 简短标语(默认:"15 local developer utilities. Zero uploads.")。显示在主页目录和隐私横幅上的简洁副标题。
- [DOMAIN_HINT] — 本地域名标签(默认:"benchkit.local")。用于示例 JSON、JWT、URL 和电子邮件片段中。
- [SUPPORT_EMAIL] — 示例联系邮箱(默认:"[email protected]")。用于载荷和页脚中的示例邮箱。
- [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接指向 https://vibefather.ai/t/developer-utilities-toolbox(默认:是;删除此行即可移除)

页面与区块下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。

## 设计
### 颜色
- 纸白(Paper White)`#FBFBF9` — 浅色模式主画布背景
- 纸面白(Sheet White)`#FFFFFF` — 浅色模式下的抬升工作台面板和卡片
- 墨黑(Ink Black)`#15171A` — 主文本、激活胶囊标签和清晰的结构边框
- 石板灰(Slate Muted)`#59606B` — 次级标签、描述和行号(WCAG AA)
- 电光青柠(Electric Lime)`#A3E635` — 激活路由指示器、主操作高亮和本地安全脉冲
- 深苔绿(Deep Moss)`#3F6212` — 浅青柠表面上的高对比度强调文本
- 曜石黑(Obsidian Dark)`#101215` — 深色模式主画布背景
- 石墨面板(Graphite Panel)`#171B20` — 深色模式抬升卡片和编辑器井

### 字体排印
- 展示与工具标题:Space Grotesk(OFL),字重 500/600/700
- UI 正文与标签:Inter(OFL),字重 400/500/600
- 代码、载荷与表格指标:JetBrains Mono(OFL),字重 400/500/600

### 布局与动效
- 间距:紧凑工程网格:264px 固定桌面侧边栏,主工作区 24px–32px 内边距,16px 面板间距,12px 内部工具栏节奏。
- 圆角:8px 清晰容器,6px 输入框和按钮,999px 状态胶囊。
- 动效:140ms ease-out 悬停高亮,侧边栏项上激活青柠轨道滑动
- 动效:160ms 缩放淡入,用于 Cmd+K 命令面板模态框
- 动效:复制按钮上 1.2s 短暂青柠对勾确认状态
- 动效:遵循 prefers-reduced-motion,禁用变换和过渡
- 图像:纯代码绘制的技术 UI:清晰的 Lucide 图标、精确 SVG 对比度仪表、用于 Image-to-Data-URI 的示例内联几何 SVG,以及空/概览标题上微妙的点阵纸张纹理。

## 页面与区块
### 全部工具目录 — [BRAND] (`#/`)
1. **持久化应用外壳(页头 + 侧边栏 + 命令面板)** — 左侧边栏(移动端为可折叠抽屉)展示 [BRAND] 几何标志、“100% Local · Nothing Uploaded” 青柠点隐私徽章、显示 “⌘K” 的即时搜索触发按钮、固定收藏区、最近历史区(最近使用的 5 个工具),以及全部 15 个工具,分为 5 类:格式化与代码、编码与 Web、安全与加密、文本与正则、设计与时间。顶栏显示当前路由面包屑、快捷 “⌘K Jump” 胶囊按钮,以及浅色/深色主题切换。
   布局:桌面端固定 264px 左侧栏(lg:flex),带 1px ink/10 细线分隔;粘性 56px 顶栏,含单行控件和移动端菜单抽屉按钮。
   动效:140ms 平滑侧边栏激活态高亮,以及 Cmd+K 模态框内即时键盘导航(Up/Down/Enter/Esc)。
2. **工作台概览主视觉与快速启动网格** — 简洁技术风横幅,含 [BRAND] 标题、[TAGLINE]、15 个本地工具的实时计数、快速搜索/筛选栏、固定收藏条,以及全部 15 个工具的结构化 3 列便当式目录,带分类标签、一行描述、星标/收藏按钮,并内嵌一张交互式 “Quick Scratchpad” 预览卡,展示实时 JSON/Hash/Base64 检测。
   布局:微妙的点阵纸张页头卡片,后接分类筛选胶囊按钮和响应式 1/2/3 列卡片网格。
   动效:工具卡片悬停时清晰的 border-ink 上浮效果,带青柠色角标索引徽章。

### JSON 格式化与校验器 — [BRAND] (`#/json`)
1. **JSON 格式化与校验工作台** — 为 [BRAND] 预载真实感示例 JSON 载荷,实时语法校验并精确指示错误行/列,提供格式化(2 空格 / 4 空格)、压缩、按键名字母排序、校验、清空、加载示例和复制输出控件,以及实时字节大小、键数量和嵌套深度统计。
   布局:桌面端双列并排等宽编辑器,移动端堆叠,带紧凑操作工具栏和状态页脚。
   动效:即时绿色/青柠色有效胶囊或深红色语法错误横幅过渡。

### Base64 编码与解码 — [BRAND] (`#/base64`)
1. **Base64 UTF-8 与 URL 安全工作台** — 双向编码/解码模式切换、URL 安全 base64 选项(- 和 _ 且无填充)、完整 UTF-8 多字节支持、交换输入/输出按钮、示例载荷加载器、字节差量徽章和复制按钮。
   布局:分栏双窗格工作台,带方向切换栏和实时字符/字节计数器。
   动效:交换动画反馈,输入时即时实时转换。

### URL 编码器与查询解析器 — [BRAND] (`#/url`)
1. **URL 编码/解码与结构化查询参数编辑器** — 在 encodeURIComponent 和完整 URI 编码之间切换、解码面板,以及交互式解析明细,展示协议、主机、路径名、哈希,和可编辑的键值查询参数表,实时重建 URL。
   布局:顶部 URL 栏和编码/解码分栏窗格,下方为整洁的结构化组件和查询参数表。
   动效:查询参数编辑器中实时行添加/删除过渡。

### JWT 解码器与检查器 — [BRAND] (`#/jwt`)
1. **JSON Web Token 检查器** — 为 [DOMAIN_HINT] 预载有效演示 JWT,彩色编码三段式令牌视图(Header、Payload、Signature),格式化的 JSON Header 和 Payload 卡片,带人类可读声明说明(iss、sub、iat、exp、scope),过期状态徽章,并明确提示签名验证需在离线环境使用你的密钥。
   布局:左侧原始 JWT 输入,带彩色分段预览条;右侧堆叠 Header、Payload 和 Claims Summary 卡片。
   动效:编辑令牌时即时分段高亮。

### 正则测试器与匹配高亮器 — [BRAND] (`#/regex`)
1. **正则表达式测试器** — 模式输入,带交互式标志开关(g、i、m、s、u)、快捷预设芯片(Email、Semantic Version、IPv4、Hex Color、ISO Time)、实时测试字符串编辑器,内联青柠色高亮匹配覆盖层、匹配计数徽章,以及结构化捕获组明细表。
   布局:全宽模式栏,下方为分栏的实时高亮测试区和匹配/捕获组检查器。
   动效:每次按键即时更新匹配高亮。

### 文本差异查看器 — [BRAND] (`#/diff`)
1. **逐行文本差异工作台** — 原始和修改后的等宽文本输入,预载真实感配置对比,真实 LCS 逐行差异引擎,支持统一和分栏视图模式、忽略空白开关、新增/删除/未变更行计数器,以及可复制的统一补丁输出。
   布局:双输入窗格,下方为全宽彩色编码差异查看器,带清晰的 +/- 行号槽。
   动效:即时重新计算差异,插入和删除行带微妙着色。

### UUID 与密码生成器 — [BRAND] (`#/uuid`)
1. **加密 UUID v4 与高熵密码生成器** — 使用浏览器 crypto.getRandomValues():批量 UUID v4 生成器(一次 1–25 个,大写/无连字符开关,全部复制),以及加密密码生成器,带长度滑块(8–64)、字符集开关、排除易混淆字符、实时熵位计算和强度计。
   布局:桌面端两张均衡卡片并排(UUID 批量面板和密码生成器面板),移动端堆叠。
   动效:平滑强度计条填充和复制反馈状态。

### 颜色转换器与 WCAG 对比度检查器 — [BRAND] (`#/color`)
1. **颜色格式转换器与无障碍对比度实验室** — 交互式颜色选择器和可编辑的 HEX、RGB、HSL 输入,即时同步,精选调色板色块,前景 vs. 背景交换按钮,实时 WCAG 2.1 对比度读数,普通文本、大文本和 UI 组件的 AA/AAA 通过/失败徽章,以及实时排版预览卡。
   布局:左侧颜色转换器输入 + 色块条;右侧实时对比度预览卡,带 AA/AAA 合规矩阵。
   动效:调整滑块或交换时平滑的背景/前景颜色过渡。

### Unix 时间戳转换器 — [BRAND] (`#/timestamp`)
1. **Epoch 与时区转换器** — 实时跳动的当前 Unix 时间戳(秒和毫秒),带暂停/复制控件,Epoch 转人类可读转换器(自动检测秒 vs. 毫秒),人类可读转 Epoch 构建器(本地和 UTC ISO-8601),相对偏移读数,以及多时区表(UTC、New York、London、Tokyo、Sydney)。
   布局:顶部实时时钟条,下方为两张转换器卡片和紧凑的多时区读数表。
   动效:实时时钟运行时微妙的青柠色脉冲点。

### Cron 表达式解释器 — [BRAND] (`#/cron`)
1. **5 字段 Cron 解析器与下次运行模拟器** — 可编辑的 5 字段 cron 表达式输入(分钟、小时、月内日、月份、星期几),可点击预设芯片(Every 5 min、Weekday 09:00、Nightly Backup、Monthly 1st),通俗英文人类翻译,逐字段明细卡片,以及计算出的接下来 5 次计划执行时间。
   布局:醒目的等宽 cron 输入栏、大型英文解释标注、5 列字段明细和即将到来的计划列表。
   动效:字段卡片高亮对应每个 cron 令牌。

### Markdown 实时预览 — [BRAND] (`#/markdown`)
1. **分栏 Markdown 编辑器与净化 HTML 预览** — 为 [BRAND] 预载真实感 README 片段,工具栏按钮包括粗体、斜体、代码、标题、链接、引用和列表,真实客户端 Markdown 转 HTML 渲染器,支持标题、粗体/斜体/内联代码、围栏代码块、表格、块引用、列表和水平线,字数/阅读时间计数器,以及复制 HTML / 复制 Markdown 操作。
   布局:桌面端可调整或均衡的 50/50 分栏编辑器和样式化正文预览,移动端为标签页或堆叠。
   动效:编辑 Markdown 时即时实时预览更新。

### 图像转 Data URI 编码器 — [BRAND] (`#/image-uri`)
1. **本地图像转 Base64 Data URI 转换器** — 拖放和点击文件选择器,支持 PNG、SVG、WebP 和 JPEG 文件(100% 本地 FileReader),外加一键 “Load Sample Graphic” 按钮,使用内联代码绘制的几何徽章,让访客可立即测试。显示缩略图预览、尺寸、原始 vs. 编码字节大小,以及可复制的 Data URI、CSS background-image 和 HTML img 片段。
   布局:左侧拖放区和预览元数据卡片;右侧多格式片段输出,带标签页(Data URI / CSS / HTML)。
   动效:文件拖入时青柠色虚线边框发光。

### 大小写转换器 — [BRAND] (`#/case`)
1. **多格式标识符与文本大小写转换器** — 单一文本输入,同时计算并显示 10 种格式,带一键复制按钮:camelCase、PascalCase、snake_case、SCREAMING_SNAKE_CASE、kebab-case、Title Case、Sentence case、dot.case、path/case 和 Constant Header-Case,外加单词/字符/行计数器。
   布局:顶部等宽源文本区,下方为整洁的 2 列实时转换格式卡片网格。
   动效:全部 10 张输出卡片即时同步更新。

### Lorem Ipsum 生成器 — [BRAND] (`#/lorem`)
1. **可配置占位文案生成器** — 模式选择器(段落、句子、单词、技术规格)、数量滑块(1–20)、"以经典开头起始"或"工程风格"开关、可选的 HTML <p> 包裹开关、即时重新生成按钮、单词/字符数读数,以及一键复制。
   布局:紧凑的控制栏位于简洁易读的输出面板上方,并带有复制按钮。
   动效:清晰的重新生成刷新反馈。

### Web Crypto 哈希生成器 — [BRAND] (`#/hash`)
1. **浏览器原生 SHA 摘要与 HMAC 工作台** — 使用原生 Web Crypto API(crypto.subtle.digest)为任意文本输入或拖入的本地文件同时实时计算 SHA-1、SHA-256、SHA-384 和 SHA-512 摘要,带有大写/小写十六进制切换、Base64 摘要视图,以及一个交互式校验和比较器输入框,匹配时亮起青柠色。
   布局:顶部输入文本域与本地文件拖放芯片,位于堆叠的摘要行和校验和验证栏上方。
   动效:当比较器与任一计算出的摘要匹配时,立即显示青柠色已验证徽章。

## 资源
- 图标:通过 npm 包 lucide-react(ISC 许可证)安装;在侧边栏、工具栏和命令面板中统一使用清晰的 1.75px 描边技术风格图标。
- 字体:通过 @fontsource/space-grotesk、@fontsource/inter 和 @fontsource/jetbrains-mono(OFL)安装;由 Vite 在本地打包。
- 图像:在 src/data/tools.ts 内以代码绘制的内联 SVG,用于品牌标识和 Image-to-Data-URI 一键示例加载器。

## 不要做
- 不要发起任何外部网络请求、CDN 字体加载或第三方 API 调用——每个工具都必须 100% 在浏览器本地运行。
- 不要伪造或打桩这 15 个工具中的任何一个;每个工具都必须对任意用户输入执行真正的实时计算。
- 不要在 UI 界面任何位置硬编码日历日期或版权年份;时间戳工具必须根据输入或当前 epoch 动态计算。
- 不要包含 source maps,也不要把 src/ 文件复制到 dist/;保持 vite base 设置为 './'。
- 不要在 1440x900 桌面端或 390x844 移动端出现水平溢出——在代码和输出框内始终应用 min-w-0 和 break-all/overflow-x-auto。
- 不要提及任何真实的第三方开发者工具网站或品牌。

---
— Prompt by VibeFather · https://vibefather.ai/t/developer-utilities-toolbox · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "Developer Utilities Toolbox"
colors:
  paper_white: "#FBFBF9"
  sheet_white: "#FFFFFF"
  ink_black: "#15171A"
  slate_muted: "#59606B"
  electric_lime: "#A3E635"
  deep_moss: "#3F6212"
  obsidian_dark: "#101215"
  graphite_panel: "#171B20"
typography:
  display_tool_headings: { family: "Space Grotesk", weights: [500, 600, 700] }
  ui_body_labels: { family: "Inter", weights: [400, 500, 600] }
  code_payloads_tabular_metrics: { family: "JetBrains Mono", weights: [400, 500, 600] }
spacing: "Compact engineering grid: 264px fixed desktop sidebar with 24px–32px main workspace padding, 16px panel gutters, and 12px inner toolbar rhythm."
radius: "Crisp 8px containers, 6px inputs and buttons, 999px status pills."
---

# Developer Utilities Toolbox — Design System

Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.

## Colors
- **Paper White** `#FBFBF9` — Light mode primary canvas background
- **Sheet White** `#FFFFFF` — Elevated workbench panels and cards in light mode
- **Ink Black** `#15171A` — Primary text, active pills, and crisp structural borders
- **Slate Muted** `#59606B` — Secondary labels, descriptions, and line numbers (WCAG AA)
- **Electric Lime** `#A3E635` — Active route indicator, primary action highlights, and local-safe pulse
- **Deep Moss** `#3F6212` — High-contrast accent text on light lime surfaces
- **Obsidian Dark** `#101215` — Dark mode primary canvas background
- **Graphite Panel** `#171B20` — Dark mode elevated cards and editor wells

## Typography
- **Display & Tool Headings** — Space Grotesk (OFL), weights 500/600/700. Self-host the font files.
- **UI Body & Labels** — Inter (OFL), weights 400/500/600. Self-host the font files.
- **Code, Payloads & Tabular Metrics** — JetBrains Mono (OFL), weights 400/500/600. Self-host the font files.

## Spacing & shape
- Spacing: Compact engineering grid: 264px fixed desktop sidebar with 24px–32px main workspace padding, 16px panel gutters, and 12px inner toolbar rhythm.
- Radius: Crisp 8px containers, 6px inputs and buttons, 999px status pills.

## Motion
- 140ms ease-out hover highlights and active lime rail slide on sidebar items
- 160ms scale-and-fade entrance on the Cmd+K command palette modal
- Brief 1.2s lime checkmark confirmation state on Copy buttons
- Respect prefers-reduced-motion by disabling transforms and transitions

## Imagery
Pure code-drawn technical UI: crisp Lucide icons, precision SVG contrast gauges, sample inline geometric SVG for Image-to-Data-URI, and subtle dot-grid paper texture on empty/overview headers.

## Tone
Technical stationery: crisp hairline borders, generous breathing room, exact tabular monospace readouts, punchy lime highlights, and zero marketing fluff.

---
— Prompt by VibeFather · https://vibefather.ai/t/developer-utilities-toolbox · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 内部平台团队:将 [BRAND] 设为你的工程门户名称,并把 JSON、Base64 和 JWT 工具保留为首批收藏,这样支持工程师就不会再把载荷粘贴到公共网站上了。
  • 安全咨询公司:用 [DOMAIN_HINT] 填入你自己的示例令牌,保留 Web Crypto 哈希生成器和 JWT 检查器,并将 [SUPPORT_EMAIL] 指向你的接收邮箱。
  • 前端设计工作室:重点使用带 WCAG 对比度检查的颜色转换器和正则测试器,并将 [TAGLINE] 重命名为描述你无障碍审查工作流的文案。
  • 独立开发者的副业项目:将 [BRAND] 设为你自己的名字,把目录精简到你实际使用的工具,并保留隐私徽章以表明没有上传任何内容。

开发者实用工具集:常见问题

开发者实用工具集会把我的数据发送到任何地方吗?

不会。开发者实用工具集中的 15 个工具全部在浏览器内运行,不发起网络请求也不上传数据,因此 JSON 载荷、JWT、正则测试字符串和哈希值都不会离开页面。收藏、最近历史记录以及浅色或深色主题偏好存储在 localStorage 中,键名由你的品牌名派生而来,这意味着应用在首次加载后也能离线使用。

有没有可以用 AI 构建的免费开发者工具网站模板?

可以。VibeFather 上的开发者实用工具集是一个包含 16 个页面的免费模板,其提示词和 DESIGN.md 在 CC BY-NC 4.0 许可下可免费用于个人非商业用途。商业或客户项目需要 Pro,Pro 还会解锁完整提示词和演示的源代码。在线 BenchKit 演示是用 Gemini 4 Neon 在 Antigravity 中构建的,因此你可以在开始之前先看到成品应用。

开发者实用工具集中的 Cmd+K 跳转、收藏和历史记录是如何工作的?

开发者实用工具集将其 15 个工具分别放在独立的 hash 路由上打开,常驻侧边栏将它们分为格式化与代码、编码与 Web、安全与加密、文本与正则、设计与时间五组。按下 Cmd+K 或 Ctrl+K 会打开一个命令面板,可用方向键和回车操作,而置顶收藏和你最近使用的五个工具会保存在 localStorage 中并显示在侧边栏。