Skip to content

Sync @arkenv/core README with the root README - #1949

Merged
yamcodes merged 3 commits into
v1from
cursor/sync-core-readme-0729
Sep 22, 2026
Merged

yamcodes merged 3 commits into
v1from
cursor/sync-core-readme-0729

Conversation

@yamcodes

@yamcodes yamcodes commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Make packages/core/README.md the canonical README (matches the previous root content: v1 imports, ArkType/Zod/Valibot examples, RC callout, @arkenv/core bundle size badge).
  • Turn the repo-root README.md into a symlink to that file so GitHub and npm cannot drift again. npm cannot pack a README that symlinks out of the package, so the real file has to live under packages/core.
  • Delete apps/www/public/assets/demo.gif and demo.png — the GIF was the only remaining consumer and showed a v0-shaped import. Broken images on already-published npm READMEs are accepted (misleading v0 demo is worse).
  • Point .all-contributorsrc at packages/core/README.md only so contributor syncs do not replace the root symlink.
  • Document in docs/CONTRIBUTING.md that README edits belong in packages/core/README.md (GitHub blob Edit on the root path overwrites the symlink).

Test plan

  • npm pack from packages/core includes the README with @arkenv/core / @arkenv/standard imports and no demo.gif
  • Root README.md resolves to packages/core/README.md
  • Repo-wide search shows no remaining demo.gif / demo.png references
  • CONTRIBUTING notes the symlink / edit target
Open in Web Open in Cursor 

Point the repo README at packages/core/README.md so npm and GitHub stay
in sync, drop the outdated v0-shaped demo GIF/PNG, and add a patch
changeset for the published package docs.

Co-authored-by: Yam Borodetsky <[email protected]>
@changeset-bot

changeset-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b5f70a5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@arkenv/core Patch
@arkenv/standard Patch

Not sure what this means? Click here to learn what changesets are.

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

@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 21, 2026
@yamcodes yamcodes removed the www Improvements or additions to arkenv.js.org label Sep 21, 2026
With the root README symlinked to packages/core/README.md, only edit
that real file so contributor syncs cannot replace the symlink.

Co-authored-by: Yam Borodetsky <[email protected]>
@github-actions github-actions Bot added the www Improvements or additions to arkenv.js.org label Sep 21, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@arkenv/agent-plugin

npm i https://pkg.pr.new/@arkenv/agent-plugin@1949

arkenv

npm i https://pkg.pr.new/arkenv@1949

@arkenv/build

npm i https://pkg.pr.new/@arkenv/build@1949

@arkenv/bun-plugin

npm i https://pkg.pr.new/@arkenv/bun-plugin@1949

@arkenv/core

npm i https://pkg.pr.new/@arkenv/core@1949

@arkenv/fumadocs-ui

npm i https://pkg.pr.new/@arkenv/fumadocs-ui@1949

@arkenv/nextjs

npm i https://pkg.pr.new/@arkenv/nextjs@1949

@arkenv/nuxt

npm i https://pkg.pr.new/@arkenv/nuxt@1949

@arkenv/rsbuild-plugin

npm i https://pkg.pr.new/@arkenv/rsbuild-plugin@1949

@arkenv/standard

npm i https://pkg.pr.new/@arkenv/standard@1949

@arkenv/tanstack-addon

npm i https://pkg.pr.new/@arkenv/tanstack-addon@1949

@arkenv/vite-plugin

npm i https://pkg.pr.new/@arkenv/vite-plugin@1949

commit: b5f70a5

@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.

ℹ️ No critical issues — one rough edge worth a look, plus one note on the new mechanism.

Reviewed changes

  • Canonical README moves to packages/core — packages/core/README.md now carries the root hero (v1 icon, RC callout, Frameworks link, First-class integrations) and the ArkType/Zod/Valibot example blocks, and the bundlephobia badge is corrected from the CLI (arkenv) to @arkenv/core.
  • Root README.md becomes a symlink — README.md is now git mode 120000 pointing at packages/core/README.md, so the GitHub landing page and the npm page share one file.
  • Contributors config retargeted — .all-contributorsrc files lists only packages/core/README.md, so all-contributors generate can't overwrite the symlink.
  • Demo assets deleted — apps/www/public/assets/demo.gif and demo.png removed; no source references remain.
  • Changeset added — .changeset/sync-core-readme.md (@arkenv/core: patch) so the npm README refreshes on the next release.

ℹ️ Deleting the demo GIF 404s the image on already-published npm READMEs

apps/www/public/assets/demo.gif is served at https://arkenv.js.org/assets/demo.gif, and the README inside the currently-published @arkenv/[email protected] tarball (which is the latest and rc dist-tag) still embeds that exact URL. Because arkenv.js.org is the production deployment of apps/www, the next www deploy makes the image 404 on the npm page for rc.1 and every older core pre-release — even though this branch itself no longer references it. The PR's "no remaining demo.gif references" check only searched the working tree, not immutable published artifacts.

Technical details
# Published READMEs still point at the deleted asset

## Affected sites
- `apps/www/public/assets/demo.gif` (deleted) — served at `https://arkenv.js.org/assets/demo.gif`
- npm `@arkenv/[email protected]` README line 36 — `<img alt="ArkEnv Demo" src="https://arkenv.js.org/assets/demo.gif" />`; this version is the current `latest`/`rc`
- `main` branch root `README.md` (v0 archive) — same `<img>` reference
- Older `@arkenv/core` pre-releases on npm likewise; `@arkenv/standard` and `arkenv` do not reference it

## Required outcome
- Decide whether a permanent broken image on immutable npm version pages is acceptable, or keep the asset (or a placeholder) so existing READMEs keep rendering.

## Open questions for the human
- Is the 404 acceptable given the demo copy was v0-shaped and misleading anyway?

ℹ️ Root README rendering now relies on GitHub's undocumented symlink behavior

Making the repo landing page a symlink works today — GitHub resolves in-repo relative symlinked READMEs and renders the target — but that behavior is community-documented only and absent from GitHub's official README docs. If it ever regresses, README.md renders as the literal text packages/core/README.md, i.e. the project's front door breaks while npm stays correct. No action needed; flagging it because this is the load-bearing assumption behind the whole PR.

Technical details
# Symlinked README depends on non-contractual GitHub behavior

## Affected sites
- `README.md` (mode `120000`) → `packages/core/README.md`

## Required outcome
- None for now. If desired, a CI smoke check that fetches the rendered repo README (or a periodic manual check) would catch a silent regression.

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

@yamcodes

Copy link
Copy Markdown
Owner Author

Addressing the Pullfrog review findings:

Demo GIF 404 on published npm READMEs — accepted

Keeping demo.gif / demo.png deleted on purpose. The currently published @arkenv/[email protected] README still embeds https://arkenv.js.org/assets/demo.gif, so the next www deploy will 404 that image on immutable npm version pages.

That trade-off is intentional: the GIF shows a v0-shaped import, which is more misleading than a broken image. Restoring the asset (or a lookalike placeholder) would keep teaching the wrong API on latest/rc until those tags move. The synced README in this PR no longer references it, and the next @arkenv/core release ships that copy.

Symlinked root README — acknowledged, no change

Agreed this leans on GitHub resolving in-repo README symlinks. Leaving it as-is for now (npm still has the real file under packages/core). Happy to add a smoke check later if we want a regression net.

@yamcodes

Copy link
Copy Markdown
Owner Author

@pullfrog review

@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.

✅ No new issues found.

Reviewed changes

This run reviewed the README-sync PR: packages/core/README.md becomes the canonical README, the repo-root README.md becomes a symlink to it, the stale demo assets are deleted, and contributor generation is retargeted.

  • Canonical @arkenv/core README — the package README now carries the v1 imports, the ArkType/Zod/Valibot examples, the RC callout, and the @arkenv/core bundle badge. The packages and exports it references (@arkenv/standard, @arkenv/standard/valibot) all exist on this branch, and the icon URL resolves.
  • Root README symlink — README.md is now a mode-120000 symlink to packages/core/README.md. Verified via the API that GitHub's readme endpoint resolves it and returns the 8272-byte target, so the repository homepage still renders the content.
  • Demo assets removed — apps/www/public/assets/demo.gif and demo.png are deleted, with no remaining tracked references.
  • Contributor sync retargeted — .all-contributorsrc now lists only packages/core/README.md, whose ALL-CONTRIBUTORS-LIST markers are present, so sync-contributors has a single valid target.
  • Changeset — patch changeset for @arkenv/core (in the @arkenv/core + @arkenv/standard fixed group).

ℹ️ GitHub edits the symlink, not the target

GitHub's blob view for README.md shows the symlink pointer — a 1-line, 23-byte file whose body is the string packages/core/README.md — and exposes an Edit action on that pointer. A contributor who opens the README via its /blob/.../README.md URL and edits it will overwrite the symlink with a copy of the markdown, silently undoing the dedup this PR introduces.

Technical details
# Symlinked root README is editable as a pointer

## Affected sites
- `README.md:1` — symlink to `packages/core/README.md`; GitHub's `/blob/<ref>/README.md` page renders the pointer text, not the target content, and offers an edit action on it.

## Required outcome
- Preserve the repo-home rendering (already working) while reducing the chance that a contributor replaces the symlink with a copy of the README and reintroduces drift.

## Suggested approach (optional)
- Add a one-line note to `docs/CONTRIBUTING.md` (or the top of `packages/core/README.md`) stating that the root `README.md` is a symlink and README edits belong in `packages/core/README.md`.

## Verification notes
- `GET /repos/yamcodes/arkenv/readme?ref=cursor/sync-core-readme-0729` → `{path: "README.md", size: 8272}`, i.e. the symlink is followed for the homepage.
- `GET /repos/yamcodes/arkenv/contents/README.md?ref=...` → `size: 23`, the pointer blob.
- `scripts/unescape-mdx-markers.js` and `scripts/normalize-mdx-code-indent.js` walk with `Dirent.isFile()`, which is false for symlinks, so the root README is skipped by `nub run fix` rather than rewritten.

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

Call out the root README symlink in CONTRIBUTING so GitHub blob Edit
does not silently replace it with a copy and reintroduce drift.

Co-authored-by: Yam Borodetsky <[email protected]>
@yamcodes

Copy link
Copy Markdown
Owner Author

Addressed the symlink-edit note: docs/CONTRIBUTING.md now tells contributors that the root README.md is a symlink and README edits belong in packages/core/README.md (GitHub's blob Edit on the root path would overwrite the symlink and reintroduce drift).

Landed in 1e563a2.

@yamcodes
yamcodes merged commit dc223af into v1 Sep 22, 2026
19 of 20 checks passed
@yamcodes
yamcodes deleted the cursor/sync-core-readme-0729 branch September 22, 2026 05:54
@arkenv-bot arkenv-bot Bot mentioned this pull request Sep 22, 2026
renovate Bot added a commit that referenced this pull request Oct 9, 2026
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@arkenv/core](https://arkenv.js.org)
([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1`
→
`1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fcore/1.0.0-rc.1/1.0.0-rc.4)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fcore/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fcore/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|
| [@arkenv/nextjs](https://arkenv.js.org)
([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1`
→
`1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fnextjs/1.0.0-rc.1/1.0.0-rc.4)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fnextjs/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fnextjs/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|
| [@arkenv/standard](https://arkenv.js.org)
([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1`
→
`1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fstandard/1.0.0-rc.1/1.0.0-rc.4)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fstandard/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fstandard/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|
| [@arkenv/vite-plugin](https://arkenv.js.org)
([source](https://redirect.github.com/yamcodes/arkenv)) | [`1.0.0-rc.1`
→
`1.0.0-rc.4`](https://renovatebot.com/diffs/npm/@arkenv%2fvite-plugin/1.0.0-rc.1/1.0.0-rc.4)
|
![age](https://developer.mend.io/api/mc/badges/age/npm/@arkenv%2fvite-plugin/1.0.0-rc.4?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@arkenv%2fvite-plugin/1.0.0-rc.1/1.0.0-rc.4?slim=true)
|

---

### Release Notes

<details>
<summary>yamcodes/arkenv (@&#8203;arkenv/core)</summary>

###
[`v1.0.0-rc.4`](https://redirect.github.com/yamcodes/arkenv/releases/tag/%40arkenv/core%401.0.0-rc.4)

[Compare
Source](https://redirect.github.com/yamcodes/arkenv/compare/@arkenv/[email protected]...@arkenv/[email protected])

No changes in this release.

###
[`v1.0.0-rc.3`](https://redirect.github.com/yamcodes/arkenv/releases/tag/%40arkenv/core%401.0.0-rc.3)

[Compare
Source](https://redirect.github.com/yamcodes/arkenv/compare/@arkenv/[email protected]...@arkenv/[email protected])

##### Patch Changes

- #### Restore keyword suggestions inside inline schemas
*[`#1975`](https://redirect.github.com/yamcodes/arkenv/pull/1975)
[`089ef43`](https://redirect.github.com/yamcodes/arkenv/commit/089ef436d3e007fa636e3948734d3911b1065758)
[@&#8203;yamcodes](https://redirect.github.com/yamcodes)*

A partial keyword in an inline schema string suggests ArkType keywords
again. `arkenv({ PORT: "n" })` offers `never`, `null`, and `number`. The
same suggestions are back on `arkenv` from `@arkenv/core/safe`.

  ```ts
  import arkenv from "@arkenv/core";

  export const env = arkenv({
    PORT: "number.port = 3000",
  });
  ```

###
[`v1.0.0-rc.2`](https://redirect.github.com/yamcodes/arkenv/releases/tag/%40arkenv/core%401.0.0-rc.2)

[Compare
Source](https://redirect.github.com/yamcodes/arkenv/compare/@arkenv/[email protected]...@arkenv/[email protected])

##### Major Changes

- #### Remove reserved `safe` from main-factory config
*[`#1924`](https://redirect.github.com/yamcodes/arkenv/pull/1924)
[`ed09bb0`](https://redirect.github.com/yamcodes/arkenv/commit/ed09bb05c27b5409a49430c0f2897b28fe26484d)
[@&#8203;yamcodes](https://redirect.github.com/yamcodes)*

  `ArkEnvConfig` and `StandardEnvConfig` no longer declare the reserved
  `safe?: false` field. Safe-mode parsing stays on the `/safe` subpaths.

  ```ts
  import arkenv from "@arkenv/core";
  import arkenvSafe from "@arkenv/core/safe";

  export const env = arkenv({
    PORT: "number.port = 3000",
  });

  const result = arkenvSafe(
    { PORT: "number.port" },
    { env: { PORT: "invalid" } },
  );
  ```

  `@arkenv/standard` mirrors the same shape via `@arkenv/standard/safe`.

**BREAKING CHANGE**: Passing `safe: false` on the main `arkenv()` config
is no longer accepted. Delete the property; use `/safe` for
result-object
  parsing.

  ```diff
  - export const env = arkenv(schema, { safe: false });
  + export const env = arkenv(schema);
  ```

##### Patch Changes

- #### Avoid Node-only `process` APIs in color detection
*[`#1939`](https://redirect.github.com/yamcodes/arkenv/pull/1939)
[`7684644`](https://redirect.github.com/yamcodes/arkenv/commit/76846449b8a634e24b59a6126958b2826cf975ef)
[@&#8203;yamcodes](https://redirect.github.com/yamcodes)*

ANSI color helpers no longer read `process.versions` or `process.stdout`
as static member expressions, so Next.js edge instrumentation no longer
flags `@arkenv/core` when `env` is imported from edge files.
- #### Point StackBlitz README link at the v1 example
*[`#1905`](https://redirect.github.com/yamcodes/arkenv/pull/1905)
[`f71bee1`](https://redirect.github.com/yamcodes/arkenv/commit/f71bee184ed2f2abfbc69a514a551310d14b3ca5)
[@&#8203;yamcodes](https://redirect.github.com/yamcodes)*

The core package README StackBlitz badge now opens
`tree/v1/examples/stackblitz`, matching the v1 `@arkenv/core` playground
instead of the stale `main` path.
- #### Sync the package README with the repo README
*[`#1949`](https://redirect.github.com/yamcodes/arkenv/pull/1949)
[`2fd0f33`](https://redirect.github.com/yamcodes/arkenv/commit/2fd0f335835f3c0918da7b547b6a43fed3dfa3d7)
[@&#8203;yamcodes](https://redirect.github.com/yamcodes)*

The published `@arkenv/core` README now matches the root project README
(v1 imports, validator examples, RC callout). The outdated demo GIF that
  showed a v0-shaped `import` is gone.

</details>

---

### Configuration

📅 **Schedule**: (in timezone Asia/Almaty)

- Branch creation
  - "on friday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/yamcodes/arkenv).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMzQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEzNC4xIiwidGFyZ2V0QnJhbmNoIjoidjEiLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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 www Improvements or additions to arkenv.js.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants