Skip to content

Add an in-browser playground and make the English README the default - #32

Merged
uiwwsw merged 1 commit into
mainfrom
feat/playground-english-readme
Dec 5, 2026
Merged

uiwwsw merged 1 commit into
mainfrom
feat/playground-english-readme

Conversation

@uiwwsw

@uiwwsw uiwwsw commented Dec 5, 2026

Copy link
Copy Markdown
Owner

What changes

  • Playground on the demo site. Paste API functions and the generated file appears next to them. It runs the package's own analyzer, generator and Prettier in the browser, so the output matches what generate writes (checked against the CLI with the same input). The bundle loads when the reader reaches the playground or the page is idle; the first example is rendered at build time so nothing waits on it.
  • analyzeSource(fileName, text, config) exported from core/analyzer, so the analyzer can run without a file. analyzeFile is unchanged.
  • English README by default. npm shows README.md, which was Korean. English is now README.md, Korean is README.ko.md; links, tests and the package files list follow.
  • Findability. The README first sentence, package description, keywords, site title and description now use the terms people search for: TanStack Query codegen, queryOptions generator, query key factory, no OpenAPI.
  • README GIF of the playground (assets/playground.gif), MOVV and GitHub About text updated, version 2.1.0 with a changelog entry.

Checks (local)

  • npm test: 29 passed
  • npm run build:site and node scripts/check-site.mjs (new playground checks included)
  • Public docs / commit hygiene checker: 0 findings
  • Desktop and 375px layouts checked in a browser

🤖 Generated with Claude Code

- The demo site runs the real analyzer, generator and Prettier in the
  browser: paste API functions and see the file `generate` would write.
- Export analyzeSource() so the analyzer works on text without a file.
- README.md is now English (what npm shows); Korean moved to README.ko.md.
- Search terms (TanStack Query codegen, queryOptions generator, query key
  factory) in the first sentence, package description and keywords.
- Add a playground GIF, update the MOVV and GitHub About text, bump 2.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@uiwwsw
uiwwsw merged commit b19d989 into main Dec 5, 2026
6 checks passed
@uiwwsw
uiwwsw deleted the feat/playground-english-readme branch December 5, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant