[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-81421":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},81421,"regex-studio","chenz24\u002Fregex-studio","chenz24","A modern, visual, debuggable workbench for regular expressions — railroad diagrams, node editor, step debugger, multi-flavor & multi-language code generation.","https:\u002F\u002Fregexstudio.com",null,"TypeScript",35,3,34,0,1,38.91,false,"main",true,[22,23,24,25,26,27,28,29,30],"developer-tools","railroad-diagram","regex","regex-debugger","regex-playground","regex-tester","regex-visualizer","regular-expression","tanstack-start","2026-06-12 04:01:33","\u003Cdiv align=\"center\">\n\n# RegexStudio\n\n**A modern, visual, debuggable workbench for regular expressions**\n\n[![License: AGPL v3](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-AGPL_v3-blue.svg)](https:\u002F\u002Fwww.gnu.org\u002Flicenses\u002Fagpl-3.0)\n[![React](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FReact-18-61dafb.svg)](https:\u002F\u002Freact.dev)\n[![TanStack Start](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTanStack-Start-ef4444.svg)](https:\u002F\u002Ftanstack.com\u002Fstart)\n[![TypeScript](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTypeScript-5-3178c6.svg)](https:\u002F\u002Fwww.typescriptlang.org)\n[![Vite](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FVite-7-646cff.svg)](https:\u002F\u002Fvitejs.dev)\n[![PRs Welcome](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPRs-welcome-brightgreen.svg)](#contributing)\n\n**English** · [简体中文](.\u002FREADME_zh.md)\n\n[Features](#features) · [Quick Start](#quick-start) · [Development](#development) · [Contributing](#contributing) · [License](#license)\n\n\u003C\u002Fdiv>\n\n---\n\n## Introduction\n\n**RegexStudio** is an open-source regular-expression workbench that aims to make writing, understanding, debugging and sharing regex effortless through a modern UI and rich visualizations.\n\nBeyond the basics like live matching and capture-group inspection, RegexStudio offers multiple visual perspectives — **railroad diagrams**, a **node-based editor**, and **plain-language explanations** — so you can understand any regex from every angle.\n\n> 📝 The project is under active development.\n\n![Screenshot](public\u002Fog.png)\n\n---\n\n## Features\n\n### Editing & Visualization\n\n- 🎨 **Syntax-highlighted editor** — Powered by CodeMirror 6 with live coloring, error hints and flag toggles\n- 🔍 **Live match testing** — Multi-line test input with instant highlighting and detailed capture-group info\n- 🚂 **Railroad diagram** — Render regex structure as a clean, intuitive railroad diagram\n- 🧩 **Visual node editor** — Build and refactor regex by manipulating nodes — beginner-friendly\n- 📖 **Plain-language explanations** — Automatically translate regex into a human-readable breakdown\n- 🔁 **Replace preview** — See the before\u002Fafter diff in real time\n\n### Debugging & Testing\n\n- � **Step-by-step debugger** — Walk through the matching process step by step, with backtracking visualization and capture-group snapshots\n- ✅ **Test-case panel** — Manage multiple test strings with expected match \u002F no-match outcomes and one-click batch run\n- ⚠️ **Compatibility warnings** — Static checks that flag features unsupported by your target engine\n\n### Multi-flavor & Code Generation\n\n- 🌐 **Flavor selector** — Switch between JavaScript, PCRE, Python, Java, Go, .NET, Rust, Ruby and more\n- 🛠️ **Code generator** — One-click snippets for **10 languages**: JavaScript \u002F TypeScript, Python, Java, Go, Rust, C# (.NET), PHP, Ruby, Swift, Kotlin\n\n### Learning\n\n- 🎓 **Interactive tutorial** — Curated lessons covering basics, quantifiers, groups, lookaround and practical patterns, with live validation\n- 🏆 **Challenges** — Bite-sized practice problems with automatic grading to sharpen your skills\n- � **Pattern library** — Curated patterns for emails, URLs, IPs, dates and more\n- 📋 **Quick reference** — Built-in cheat sheet so you never have to leave the page\n\n### Sharing & UX\n\n- 🔗 **Share links** — Encode regex, flags, test text and replacement into a shareable URL\n- 🌍 **i18n** — Full English & Simplified Chinese UI powered by Paraglide; locale-aware routes\n- 🌗 **Light & dark theme** — Follow system or toggle manually\n- ⚡ **SSR-ready** — Built on TanStack Start for fast first paint, friendly to SEO and link sharing\n\n---\n\n## Tech Stack\n\n| Category | Technology |\n|---|---|\n| **Framework** | [React 18](https:\u002F\u002Freact.dev) + [TanStack Start](https:\u002F\u002Ftanstack.com\u002Fstart) + [TanStack Router](https:\u002F\u002Ftanstack.com\u002Frouter) |\n| **Build** | [Vite 7](https:\u002F\u002Fvitejs.dev) |\n| **Language** | [TypeScript 5](https:\u002F\u002Fwww.typescriptlang.org) |\n| **Styling** | [Tailwind CSS](https:\u002F\u002Ftailwindcss.com) + [shadcn\u002Fui](https:\u002F\u002Fui.shadcn.com) + [Radix UI](https:\u002F\u002Fwww.radix-ui.com) |\n| **Editor** | [CodeMirror 6](https:\u002F\u002Fcodemirror.net) |\n| **State** | [Zustand](https:\u002F\u002Fzustand-demo.pmnd.rs) |\n| **Icons** | [Lucide](https:\u002F\u002Flucide.dev) |\n| **i18n** | [Inlang Paraglide JS](https:\u002F\u002Finlang.com\u002Fm\u002Fgerre34r\u002Flibrary-inlang-paraglideJs) |\n| **Lint & Format** | [Biome](https:\u002F\u002Fbiomejs.dev) |\n\n---\n\n## Quick Start\n\n### Prerequisites\n\n- **Node.js** ≥ 20\n- **pnpm** ≥ 9 (recommended) or npm \u002F yarn\n\n### Install & Run\n\n```bash\n# 1. Clone the repository\ngit clone https:\u002F\u002Fgithub.com\u002Fchenz24\u002Fregex-studio.git\ncd regex-studio\n\n# 2. Install dependencies\npnpm install\n\n# 3. Start the dev server\npnpm dev\n```\n\nThe dev server starts at [http:\u002F\u002Flocalhost:5173](http:\u002F\u002Flocalhost:5173) by default.\n\n### Production Build\n\n```bash\npnpm build      # build production bundle\npnpm preview    # preview the production bundle locally\n```\n\n---\n\n## Development\n\n### Scripts\n\n| Command | Description |\n|---|---|\n| `pnpm dev` | Start the dev server (HMR + SSR) |\n| `pnpm build` | Build production bundle |\n| `pnpm build:dev` | Build in development mode (handy for debugging) |\n| `pnpm preview` | Preview production bundle |\n| `pnpm lint` | Run Biome lint |\n| `pnpm format` | Format the codebase with Biome |\n| `pnpm check:biome` | Run Biome check + fix |\n| `pnpm typecheck` | Run TypeScript type-check |\n| `pnpm check` | Run typecheck + lint together |\n\n### Project Structure\n\n```\nregex-studio\u002F\n├── messages\u002F                  # Paraglide i18n source (en.json, zh.json)\n├── project.inlang\u002F            # Inlang project config\n├── public\u002F                    # Static assets (favicon, sitemap, ...)\n├── src\u002F\n│   ├── challenges\u002F            # Challenge definitions & evaluator\n│   ├── components\u002F\n│   │   ├── challenges\u002F        # Challenges UI (catalog, runner, drawer)\n│   │   ├── diagram\u002F           # Railroad diagram & node editor\n│   │   ├── editor\u002F            # Regex input, flavor selector, compat warnings\n│   │   ├── layout\u002F            # Test area, tool panel, footer\n│   │   ├── sidebar\u002F           # Pattern library & quick reference\n│   │   ├── tools\u002F             # Debugger, code gen, explanation, replace, test cases\n│   │   ├── tutorial\u002F          # Tutorial UI (catalog, runner, hints, ...)\n│   │   └── ui\u002F                # shadcn\u002Fui primitives\n│   ├── hooks\u002F                 # Custom hooks\n│   ├── lib\u002F                   # AST, i18n, share-link helpers\n│   ├── paraglide\u002F             # Paraglide compiled output (generated)\n│   ├── routes\u002F                # TanStack Router file-based routes\n│   │   ├── __root.tsx         # Root route (with SSR shell)\n│   │   ├── index.tsx          # Default locale entry\n│   │   └── $locale\u002F           # Locale-aware routes (en, zh)\n│   ├── stores\u002F                # Zustand stores (regex, tutorial, challenges)\n│   ├── tutorial\u002F              # Lessons, validators, registry\n│   ├── utils\u002F                 # Parser, matcher, diagram IR, codegen, ...\n│   │   └── codegen\u002F           # Code generators for 10 target languages\n│   ├── ssr.tsx                # SSR entry\n│   ├── router.tsx             # Router instance\n│   └── index.css              # Global styles\n├── biome.json                 # Biome config\n├── vite.config.ts\n└── package.json\n```\n\n---\n\n## Contributing\n\nContributions of any kind are warmly welcomed — bug reports, feature suggestions, doc improvements and code patches all matter.\n\n### How to Help\n\n1. **Open an Issue**\n   - 🐛 **Bug reports**: include reproduction steps, expected vs. actual behavior, and your environment\n   - 💡 **Feature requests**: describe the use case and value\n2. **Submit a Pull Request**\n   1. Fork the repo and create a feature branch off `main`\n   2. Run `pnpm check` before pushing to ensure lint and type-check pass\n   3. Keep commit messages clear; we recommend [Conventional Commits](https:\u002F\u002Fwww.conventionalcommits.org\u002F)\n   4. In the PR description, explain the motivation, scope and how you tested\n3. **Spread the Word**\n   - Share RegexStudio in your projects, blog posts or social media\n   - A ⭐ on the repo is the most direct encouragement to the maintainers\n\n### Conventions\n\n- Code style is enforced by **Biome** (lint + format)\n- Use **functional components + Hooks**; avoid class components\n- Prefer **Tailwind utility classes**; fall back to CSS only when needed\n- Manage business state with Zustand; keep UI-local state in `useState` \u002F `useReducer`\n- For UI strings, add entries to `messages\u002Fen.json` and `messages\u002Fzh.json` and consume them via Paraglide\n\n---\n\n## License\n\nThis project is licensed under the **GNU Affero General Public License v3.0 (AGPL-3.0)**.\n\n- ✅ You are free to **use, modify and distribute** the source code\n- ⚠️ If you **modify** the project and offer it as a **network service**, you **must** publish the full modified source under the same AGPL-3.0 license\n- ⚠️ Derivative works must retain the original copyright notice and license\n\nSee the [official AGPL-3.0 page](https:\u002F\u002Fwww.gnu.org\u002Flicenses\u002Fagpl-3.0.html) for the full text.\n\n> 💼 **Commercial use**: If AGPL-3.0's network-service clause does not fit your company's use case, please reach out to discuss a commercial license.\n\n---\n\n## Related Projects\n\nOther small, focused developer tools from the same author — you might find them handy:\n\n- [**rename.tools**](https:\u002F\u002Frename.tools) — Batch-rename files right in your browser with live previews and regex rules\n- [**crontab.cv**](https:\u002F\u002Fcrontab.cv) — Visualize, build and explain crontab expressions at a glance\n- [**json.tools**](https:\u002F\u002Fjson.tools) — Format, validate, diff and query JSON without leaving the tab\n- [**easing.tools**](https:\u002F\u002Feasing.tools) — Craft and preview CSS \u002F motion easing curves interactively\n- [**open-awesome.com**](https:\u002F\u002Fopen-awesome.com) — Browse and discover curated \"awesome-*\" lists from the open-source community\n\n---\n\n## Acknowledgements\n\nRegexStudio stands on the shoulders of giants. Special thanks to:\n\n- [TanStack](https:\u002F\u002Ftanstack.com) — for the modern full-stack Router \u002F Start solution\n- [CodeMirror](https:\u002F\u002Fcodemirror.net) — for a powerful editor core\n- [shadcn\u002Fui](https:\u002F\u002Fui.shadcn.com) & [Radix UI](https:\u002F\u002Fwww.radix-ui.com) — for elegant UI primitives\n- [Tailwind CSS](https:\u002F\u002Ftailwindcss.com) — for making styling enjoyable\n\n---\n\n\u003Cdiv align=\"center\">\n\nIf RegexStudio helps you, please consider giving it a ⭐ Star!\n\n\u003C\u002Fdiv>\n","RegexStudio 是一个现代化的正则表达式工作台，旨在通过直观的用户界面和丰富的可视化工具简化正则表达式的编写、理解和调试。它提供了语法高亮编辑器、实时匹配测试、铁路图展示、节点编辑器以及自然语言解释等功能，帮助用户从多个角度理解正则表达式。此外，它还支持多引擎兼容性检查、逐步调试器和多语言代码生成。RegexStudio 适用于需要频繁使用正则表达式的开发者，无论是初学者还是经验丰富的工程师都能从中受益。",2,"2026-06-11 04:04:58","CREATED_QUERY"]