Skip to content

docs: overhaul TanStack Start guide - #1819

Open
yamcodes wants to merge 2 commits into
v1from
docs/tanstack-start-guide-overhaul
Open

docs: overhaul TanStack Start guide#1819
yamcodes wants to merge 2 commits into
v1from
docs/tanstack-start-guide-overhaul

Conversation

@yamcodes

@yamcodes yamcodes commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

Rewrite TanStack Start docs for Vite-first path and Rsbuild support.

Test plan

  • check:mdx
  • fence vitest

Rewrite the framework guide in the-voice register: Turbo lead, Vite as
the default CLI path, Rsbuild Callout with manual install, Callouts
instead of ::: directives, schema as its own H2, and named
arkenvRsbuildPlugin import. Mention both plugins on the frameworks index card.
@changeset-bot

changeset-bot Bot commented Sep 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 505e825

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@yamcodes yamcodes added the preview Opt-in gate for PR preview deployments label Sep 6, 2026
@github-actions github-actions Bot added docs Adds or changes documentation, or acts as documentation in and of itself www Improvements or additions to arkenv.js.org labels Sep 6, 2026
@arkenv-bot

arkenv-bot Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (Asia/Almaty)
arkenv Ready Ready Preview, Comment Sep 7 2026, 12:53 AM (Asia/Almaty)

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ Minor suggestions only — four small polish items inline, plus two informational notes.

Reviewed changes — docs-only overhaul of the TanStack Start guide and its framework index card.

  • Rewrote tanstack-start.mdx to lead with Vite as the default path: the add-on quickstart now states it scaffolds arkenvVitePlugin() + env.ts + ArkType, and the interactive-options / demo-route promises are gone — an accurate simplification given remote add-ons run on defaults at the pinned @tanstack/create versions.
  • Restructured "Manual installation" per bundler (### Vite / ### Rsbuild, each with ArkType + Standard Schema), and switched the Rsbuild config to the named arkenvRsbuildPlugin import, which matches both the package exports and the reference docs.
  • Promoted "Define your schema" to a top-level section, relocated the CLI-vs-runtime warning into a callout there, and converted all ::: admonitions to <Callout>.
  • Added a "Using Rsbuild?" callout and mentioned @arkenv/rsbuild-plugin on the framework index card. I verified the external claim: TanStack/cli#505 is an open PR adding Rsbuild as a bundler option, so "not currently supported for scaffolding or add-ons" is accurate today.
  • Confirmed the test-plan boxes: check:mdx (mdxlint --frail) passes both files, and every package-install fence satisfies the fence vitest's npm install/npx assertion. No behavioral surface; the Rsbuild/Vite imports and /standard subpaths are all real exports.

ℹ️ Alpha-pinning guidance dropped

The "Pinning alphas" note was deleted in favor of "Author bare @arkenv/* package names; the docs site applies the release tag automatically." Since the renderer tags install lines with the active channel, during pre-GA readers following these commands get mutable @alpha builds — the exact reproducibility gap (lockfiles differing across machines/CI) the removed note warned about. If that pinning advice is still wanted for alpha users it no longer exists anywhere in the docs; if the drop is a deliberate reversal that's a fine call — flagging so it's an explicit choice.

Technical details
# Alpha-pinning guidance removed

## Affected sites
- apps/www/content/docs/frameworks/tanstack-start.mdx — removed `:::info[Pinning alphas]` note; replaced with "the docs site applies the release tag automatically"

## Required outcome
- Confirm whether the pre-GA reproducibility advice is intentionally gone, or should be restored (e.g. in a shared location reachable from all framework guides)

## Open questions for the human
- Is the alpha-pin guidance still desirable until GA, and does it belong in this guide or somewhere shared?

ℹ️ #rsbuild cross-link now lands on the install section

The restructure introduced a second ### Rsbuild heading (under "Manual installation" in addition to the one under "Configuration"). Fumadocs slugging keeps #rsbuild for the first occurrence, so the existing cross-link from apps/www/content/docs/reference/rsbuild-plugin.mdx:7 ("TanStack Start guide") now resolves to the install-commands section rather than the Configuration section it used to reach. Harmless either way, but worth confirming the landing point is the intended one.

Technical details
# Anchor shift for #rsbuild

## Affected sites
- apps/www/content/docs/reference/rsbuild-plugin.mdx:7 — links `/docs/frameworks/tanstack-start#rsbuild`
- apps/www/content/docs/frameworks/tanstack-start.mdx — now has two `### Rsbuild` headings; `#rsbuild` resolves to the first (Manual installation, line 85)

## Required outcome
- Confirm the cross-link's landing section is intentional, or make the target unambiguous

Pullfrog  | Fix all ➔Fix 👍s ➔View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

npm install -D @arkenv/rsbuild-plugin
```

## Configuration

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blank line dropped: the base file kept one between this install fence and the heading, and every other ## in this doc is preceded by a blank line. Renderer-wise it's harmless, but it breaks the file's own consistency — restore the blank line after the closing fence.

reads must match your bundler's client prefix: `VITE_` for Vite or
`PUBLIC_` for Rsbuild. Everything else stays on the server.

<Callout type="info" title="Import from `@arkenv/core`, not `arkenv`">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<Callout> title is a plain-string prop, so these backticks print literally in the rendered header — unlike the :::warning[...] admonition syntax this replaces, which rendered inline code. (Same applies to the import.meta.env callout at line 288.) Suggest a title without backticks, e.g. "Import from the runtime package, not the CLI".

Reading `import.meta.env` skips ArkEnv. Import `{ env }` so public keys stay
typed and coerced and server secrets stay out of the client bundle.
:::
<Callout type="warn" title="Do not read `import.meta.env` directly">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the @arkenv/core callout above: backticks inside a <Callout> title render literally instead of as code. Use a title without backticks, e.g. "Use the env import, not import.meta.env" would still show the backticks — better: set the codified name in the body and keep the title plain.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ The only delta since the prior review is the autofix.ci pass, which restores the dropped blank line that was flagged inline — addressed cleanly, no new issues. The two backtick-in-Callout-title comments from the initial review are still outstanding.

Reviewed changes — one new commit since the prior review (376e2f2): 505e8258 ([autofix.ci] apply automated fixes), which adds the single missing blank line between the Rsbuild Standard-Schema install fence and ## Configuration. No other content changed; md.mdxlint state and fence compliance are unaffected.

Pullfrog  | Fix it ➔View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Adds or changes documentation, or acts as documentation in and of itself preview Opt-in gate for PR preview deployments www Improvements or additions to arkenv.js.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant