scriptc
AGENTS.md5.9k starsChanged 59 days agoApache-2.0View on GitHub
This is the only agent guide for the repository. Its rules apply everywhere, including docs/ and internal/compatibility/. Write prose paragraphs and list items as single source lines and let editors and renderers wrap them naturally. Do not hard-wrap Markdown at a fixed column; preserve separate lines only where Markdown syntax or intentional formatting requires them, such as headings, lists, tables, blockquotes, and code blocks. The ordinary workspace build does not rebuild packaged native artifacts. When changing native assembly/object emission or…
- Reads credentials
- Installs packages
Trending
Less talk lately.about the whole repository
Who's talking about vercel-labs/scriptc
- A Hacker News story“Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary”Hacker News · Jul 26, 2026 · 287 points
- @camilleroux.com“scriptc : un compilateur TypeScript-to-native par Vercel Labs, pas de Node, pas de V8 dans le binaire. Le …”Bluesky · Aug 7, 2026 · 10 likes
- @u11g.com“TypeScript to tiny native executables with ~2ms startup is the kind of step-change that makes you …”Bluesky · Aug 8, 2026 · 4 likes
- @news.humancoders.com“scriptc : compilateur TypeScript vers natif sans moteur JavaScript embarqué”Bluesky · Jul 30, 2026 · 4 likes
- @jauntywunderkind.bsky.social“seeing scriptc ts-to-native, thinking of @honk.foo & porffor to wasm compiler. github.com/vercel-labs/...”Bluesky · Jul 26, 2026 · 4 likes
The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 62
Talked about on Bluesky, GitHub and Hacker News (62 times).
On Bluesky · 36
- Aug 7, 2026scriptc : un compilateur TypeScript-to-native par Vercel Labs, pas de Node, pas de V8 dans le binaire. Le même TypeScript que vous écrivez… — @camilleroux.com10 likes and reposts · 3 replies
- Aug 8, 2026TypeScript to tiny native executables with ~2ms startup is the kind of step-change that makes you reconsider when you need Node at all.… — @u11g.com4 likes and reposts
- Jul 30, 2026scriptc : compilateur TypeScript vers natif sans moteur JavaScript embarqué — @news.humancoders.com4 likes and reposts
- Jul 26, 2026seeing scriptc ts-to-native, thinking of @honk.foo & porffor to wasm compiler. github.com/vercel-labs/... — @jauntywunderkind.bsky.social4 likes and reposts · 1 reply
- Jul 27, 2026vercel-labs/scriptc: TypeScript-to-Native Compiler 👉 github.com/vercel-labs/... Appears to have more edge cases than a chainsaw. Looks… — @sirpepe.bsky.social3 likes and reposts · 1 reply
31 more on Bluesky
- Sep 27, 2026📦 vercel-labs / scriptc ⭐ 5,246 (+76) 🗒 TypeScript TypeScript-to-Native Compiler — @github-trending.bsky.social2 likes and reposts
- Sep 27, 2026今日のGitHubトレンド vercel-labs/scriptc scriptcはTypeScriptおよびJavaScriptを、C言語やLLVM IR、ネイティブ実行ファイル、WebAssemblyなどにコンパイルするツールです。… — @dailygithubtrends.bsky.social2 likes and reposts
- Aug 11, 2026With current global RAM shortage & massive adoption of AI, it's about time we see smaller binary applications with low RAM usage. Vercel… — @realchakrawarti.bsky.social2 likes and reposts
- Aug 9, 2026typescript that compiles to a native binary Vercel Labs compiler that turns TypeScript into a native executable. No Node runtime, no… — @epicvibecoder.bsky.social2 likes and reposts · 1 reply
- Jul 28, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary https://github.com/vercel-labs/scriptc — @mm-hacker-news.bsky.social2 likes and reposts
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary View Article | Discussion + AI Summary Summary of HN… — @hncompanion.com2 likes and reposts · 1 reply
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary https://github.com/vercel-labs/scriptc… — @newsyc250.bsky.social2 likes and reposts
- Sep 29, 2026And it’s not just a demo — the project has its own native runtime and compiler pipeline. Vercel Labs calls it experimental, so this is… — @vicky-grok.bsky.social1 likes and repost · 1 reply
- Sep 26, 2026📦 vercel-labs / scriptc ⭐ 5,107 (+97) 🗒 TypeScript TypeScript-to-Native Compiler — @github-trending-js.bsky.social1 likes and repost
- Aug 11, 2026a real good idea github.com/vercel-labs/... maybe for little script is the best choice without node_modules, compiling the code directly in… — @albzoser.bsky.social1 likes and repost · 1 reply
- Aug 2, 2026vercel-labs/scriptc: TypeScript-to-Native Compiler https://realtime.jser.info/2026/08/02/vercel-labs-scriptc-typescript-to-native-compiler/… — @jser.info1 likes and repost
- Aug 2, 2026TypeScriptをネイティブ実行ファイルへコンパイルするコンパイラ。 TypeScript Compiler APIで型チェックし、Typed IRをLLVM/Cバックエンドでネイティブコードへコンパイルする。… — @azu.bsky.social1 likes and repost · 1 reply
- Jul 30, 2026scriptc : Zero-runtime TypeScript. scriptc compiles ordinary TypeScript into small, fast native executables — no Node, no V8, no JavaScript… — @ytroncal.bsky.social1 likes and repost
- Jul 28, 2026TypeScriptをネイティブ実行ファイルにコンパイルするツールっぽい サーバーレスやエッジ環境での高速化に使えそうかな yug1224 starred vercel-labs/scriptc https://github.com/vercel-labs/scriptc — @yug1224.com1 likes and repost
- Jul 28, 2026github.com/vercel-labs/scriptc GitHub - vercel-labs/scriptc: TypeScript-to-Native Compiler — @technews4869.bsky.social1 likes and repost
- Jul 28, 2026ねえ、Vercel Labsから出た「Scriptc」がマジでアツいんだけど!これ、TypeScriptをネイティブバイナリに直接コンパイルできるツールなんだけど、なんとJavaScriptエンジンをバイナリ内に含まない仕様なの。純粋なネイティブ実行可能ファイルへ変換できるって、… — @sv-gyaru-bot.bsky.social1 likes and repost
- Jul 27, 2026GitHub - vercel-labs/scriptc: TypeScript-to-Native Compiler https://github.com/vercel-labs/scriptc — @tech-trending.bsky.social1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary https://github.com/vercel-labs/scriptc… — @newsyc200.bsky.social1 likes and repost
- Jul 27, 2026すごそう https://github.com/vercel-labs/scriptc — @fohte.social.fohte.net.ap.brid.gy1 likes and repost
- Jul 27, 2026Some amusing timing: Vercel Labs just published scriptc, with a strikingly similar surface goal: compile JavaScript/TypeScript ahead of… — @hongminhee.hollo.social.ap.brid.gy1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary https://github.com/vercel-labs/scriptc… — @hn100.atproto.rocks1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary (github.com) Discussion | Main Link — @newsycombinatorbot.bsky.social1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary — @hackernewsrobot.bsky.social1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary https://github.com/vercel-labs/scriptc… — @betterhn50.e-work.xyz1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary #HackerNews https://github.com/vercel-labs/scriptc — @hackernewstop5.bsky.social1 likes and repost
- Jul 27, 2026VercelがTypeScriptをネイティブコードに直接変換する「Scriptc」を発表。JSエンジンをバイナリに含めないため、実行速度の向上と軽量化が期待されます。ランタイムの常識を覆す技術革新になりそうです。 #Vercel #TypeScript… — @ai-bridge-tech.bsky.social1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary https://github.com/vercel-labs/scriptc… — @betterhn20.e-work.xyz1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary https://github.com/vercel-labs/scriptc — @hnbot.gsuscs.xyz1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary Discussion | hackernews | Author: maxloh #DeveloperTools — @news.karthihegde.dev1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary Discussion — @hn100.bsky.social1 likes and repost
- Jul 27, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary comments · posted on 2026.07.26 at 18:46:10 (c=0, p=4) — @hnws.bsky.social1 likes and repost
On GitHub · 25
- Oct 4, 2026fix: refresh runtime pins and prevent report overflow — jlucaso1/js-compiled1 reaction · 2 comments
- Oct 4, 2026chore(deps-dev): bump scriptc from 0.1.7 to 0.2.0 — fr0ziii/dusk0 reactions
- Oct 4, 2026Add compiler coverage reporting for direct IL, runtime dispatch, and unsupported code — tomacox74/js2il0 reactions
- Oct 2, 2026Bump the dev-dependencies group across 1 directory with 10 updates — ashleygierisch/Time_plottimeseries_CLI_tool0 reactions
- Oct 1, 2026Bump the dev-dependencies group with 9 updates — aaronj1335/plottimeseries0 reactions
20 more on GitHub
- Oct 1, 2026chore(deps-dev): Bump scriptc from 0.0.32 to 0.1.7 in the scriptc group — BrandDeb/Aha0 reactions · 2 comments
- Sep 28, 2026Github trending [vercel-labs/scriptc] TS 编译原生执行文件 — web1992/github-trending0 reactions
- Sep 15, 2026Bump the dev-dependencies group with 8 updates — aaronj1335/plottimeseries0 reactions
- Sep 8, 2026Bump the dev-dependencies group with 9 updates — ashleygierisch/Time_plottimeseries_CLI_tool0 reactions · 1 comment
- Sep 7, 2026chore(deps-dev): bump scriptc from 0.0.22 to 0.0.36 — yowainwright/struct-lint0 reactions · 5 comments
- Sep 1, 2026Bump the dev-dependencies group across 1 directory with 7 updates — aaronj1335/plottimeseries0 reactions
- Aug 20, 2026Would it be possible to have native/WebAssembly compilation with scriptc? — mathjax/MathJax0 reactions · 1 comment
- Aug 18, 2026chore(deps-dev): bump scriptc from 0.0.21 to 0.0.32 — yowainwright/pastoralist0 reactions · 6 comments
- Aug 13, 2026chore(deps-dev): bump scriptc from 0.0.21 to 0.0.24 — yowainwright/pastoralist0 reactions · 4 comments
- Aug 12, 2026chore(deps-dev): bump scriptc from 0.0.21 to 0.0.23 — yowainwright/codependence0 reactions · 7 comments
- Aug 11, 2026chore(deps-dev): bump scriptc from 0.0.21 to 0.0.22 — yowainwright/pastoralist0 reactions · 4 comments
- Aug 11, 2026Add scriptc static-compilation example with benchmark — inthhq/inreposays it tested it0 reactions · 1 comment
- Jul 31, 2026Investigate scriptc (TypeScript-to-Native Compiler) for CLI distribution — PaulDebus/xsd-to-zod0 reactions
- Jul 27, 2026Brand Mentions: 2026-07-27 (14 worthy, 0 highlights) — sbc1-code/brand-monitor0 reactions
- Jul 27, 2026Revisit scriptc for a 2.8 MB binary (blocked on scriptc#19) — chenhunghan/mdadf0 reactions
- Jul 27, 2026KI Daily – 2026-07-27 — kronprinzmagma/ki-news-aggregator0 reactions · 1 comment
- Jul 27, 2026Evaluate scriptc for zero-runtime native wazoo CLI binaries — wazootech/wazoo-cli0 reactions · 1 comment
- Jul 27, 2026scriptc ビジュアル解説ページの追加 — 53able/docs-site0 reactions
- Jul 27, 2026🎬 This week's video ideas — Jul 27 — ThaddaeusSandidge/content-idea-generator0 reactions
- Jul 27, 2026🎬 This week's video ideas — Jul 27 — ThaddaeusSandidge/content-idea-generator0 reactions
On Hacker News · 1
- Jul 26, 2026Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary287 points · 156 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
27 rules. About 1 is common, 8 are distinctive, and 18 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use focused local tests while iterating, then use pnpm test:sandbox whenever a full validation gate is required.
- Common: line 35
Only when Vercel Sandbox credentials are unavailable, run the slower local fallback:
- Distinctive: line 47
Test location follows scope:
- Very specific: line 51
Put package-level API and integration tests in packages/*/test.
- Very specific: line 52
Put cross-package differential, harness, and end-to-end tests in the root tests/ tree.
- Distinctive: line 54
Keep existing tests in place unless a change already touches their organization.
- Distinctive: line 78
Test evidence determines positive behavioral claims.
- Very specific: line 80
Treat static-native and dynamic-island compatibility independently.
- Distinctive: line 96
Read a row's verification basis before acting:
- Distinctive: line 128
Never hand-edit these files:
- Very specific: line 145
Start from the backlog action and verification basis.
- Very specific: line 146
Read the pinned Node documentation, stability metadata, relevant Node source when needed, and existing scriptc implementation paths.
- Distinctive: line 149
Add differential evidence that executes under Node and as a compiled binary.
- Very specific: line 150
Update the implementation-owned source or manifest.
- Very specific: line 151
Run pnpm manifest if compiler surface tables changed, then run pnpm node-compat.
- Very specific: line 153
Run focused tests, pnpm node-compat:check, and the full validation gate required for the change.
- Distinctive: line 172
Every shell command shown in a fence must have run successfully against the current build.
- Distinctive: line 173
Document limitations plainly on the limitations page rather than scattering them as fine print.
- Very specific: line 177
Use literal HTML <table> markup in MDX, never Markdown pipe tables.
- Very specific: line 179
Use console fences for shell sessions ($ command followed by output).
- Very specific: line 180
Use diff fences for additions and removals.
- Very specific: line 181
Use HTML <dl>/<dt>/<dd> for flag and subcommand references.
- Very specific: line 185
Add docs/content/docs/<topic>.mdx with a title in YAML frontmatter.
- Very specific: line 186
Add the topic to docs/content/docs/meta.json to set sidebar order and groups.
- Very specific: line 187
Add the slug to PAGE_TITLES in docs/src/lib/page-titles.ts for the existing social image routes.
- Very specific: line 188
Keep internal links on the canonical /docs paths.
- Very specific: line 192
Do not start duplicate docs dev servers.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Guide
This is the only agent guide for the repository. Its rules apply everywhere, including docs/ and internal/compatibility/.
Markdown style
Write prose paragraphs and list items as single source lines and let editors and renderers wrap them naturally. Do not hard-wrap Markdown at a fixed column; preserve separate lines only where Markdown syntax or intentional formatting requires them, such as headings, lists, tables, blockquotes, and code blocks.
Build and test
pnpm install && pnpm -r build # build the workspace
pnpm test:sandbox # full gate: ~4m custom image, ~9m cold managed fallbackThe ordinary workspace build does not rebuild packaged native artifacts. When changing native assembly/object emission or runtime-pack selection, install CMake, Ninja, the pinned LLVM 22 development package, and Zig 0.16.0, then run the matching @scriptc/llvm-<platform> and @scriptc/runtime-<platform> build:native scripts explicitly. The macOS full test suite also needs its generated artifacts.
Use focused local tests while iterating, then use pnpm test:sandbox whenever a
full validation gate is required. It loads Sandbox configuration from the
shell and .env.local, runs portable coverage across disposable Linux
Sandboxes, and retains the Darwin-native contracts on macOS. Linux hosts run
their supported native-clang contracts locally; other hosts retain those
checks in the Sandboxes. Both lanes green is the bar before shipping any
change.
VERCEL_OIDC_TOKEN is the preferred credential. VERCEL_TOKEN remains
supported with explicit VERCEL_TEAM_ID and VERCEL_PROJECT_ID. The custom
SCRIPTC_SANDBOX_IMAGE is optional: without it, the gate starts from
vercel/sandbox/universal and installs the repository-pinned Node, pnpm, and
LLVM toolchain plus workspace dependencies before building. Team/project
selection never comes from the image reference. The legacy VCR image command
uses VERCEL_TOKEN or the existing Vercel CLI login for authentication; OIDC
claims can still provide its team/project scope.
Only when Vercel Sandbox credentials are unavailable, run the slower local fallback:
SCRIPTC_TEST_WORKERS=4 pnpm test # plain lane
SCRIPTC_TEST_WORKERS=4 SCRIPTC_SAN=1 pnpm test # sanitized laneSCRIPTC_TEST_WORKERS caps the vitest worker pool so concurrent agents don't contend for cores; full local suites also queue behind an advisory lock per lane.
Corpus programs are differential tests against Node: every program runs under Node and as a compiled native binary, and stdout, stderr, and exit codes must match byte-for-byte. A new feature lands with corpus programs that pin its behavior both ways.
Test location follows scope:
- Co-locate white-box unit tests with implementation files under
packages/*/src; name them after the source file (cc.ts→cc.test.ts). - Put package-level API and integration tests in
packages/*/test. - Put cross-package differential, harness, and end-to-end tests in the root
tests/tree.
Keep existing tests in place unless a change already touches their organization; new tests should follow this convention.
Where things live
packages/compiler— the frontend (tsc API to IR), typed IR, validator, serializer, and LLVM backend.packages/runtime— the C runtime distributed as precompiled runtime packs.packages/cli—scriptc build | run | coverage.internal/compatibility— generated Node.js parity inventory, implementation-owned compatibility manifests, and engineering backlog.tests/— the differential corpus, diagnostics snapshots, and harness.docs/— the standalone Next.js App Router + MDX documentation workspace.scripts/— repository tooling, including the release version stamp.
Node.js compatibility
The Node.js compatibility system is an implementation inventory and planning tool. Keep its claims narrower than the evidence. Do not change a status merely to make the public matrix look correct.
Sources of truth
internal/compatibility/node-v24.jsonpins the Node release, commit, official API inputs, and documentation URLs. The pinned Node API is the denominator.- Node's official documentation defines the public API hierarchy and stability metadata. Consult Node source when the docs do not fully specify behavior.
- Running the pinned Node release is the behavior oracle for differential tests.
- Compiler source and
packages/compiler/surface-manifest.json, augmented byinternal/compatibility/static-support.json, define static-native support. internal/compatibility/dynamic-support.jsondefines dynamic-island modules, exports, members, explicit stubs, globals, and policies. It also generates the runtime builtin registry.- Test evidence determines positive behavioral claims. Source manifests alone do not prove Node-compatible behavior.
Treat static-native and dynamic-island compatibility independently. Support in one tier says nothing about the other, and --dynamic does not turn an unsupported typed call into a supported static call.
Status contract
supported— broadly implemented. This requires test evidence.partial— a useful implemented subset. This requires test evidence, but evidence may cover an API family rather than every documented overload.refused— a named compiler diagnostic or explicit dynamic throwing or rejecting stub exists. Never infer this status from absence.not-implemented— no implementation claim. Its verification basis decides whether it is ready to implement or must first be investigated.by-design— intentionally outside a scriptc execution model. This requires an explicit implementation-owned architectural policy.unreviewed— no compatibility subsystem owns a reliable classification. Do not treat this as unsupported or as an implementation ticket.not-applicable— documentation, configuration, executable behavior, or an embedding model that does not map to the execution tier.
Chapter rows are generated summaries of their descendants, never independent support claims.
Verification basis and backlog actions
Read a row's verification basis before acting:
test-backed— mapped to implementation and relevant tests. Audit the exact overload or behavior before broadening apartialclaim.explicit-refusal— source-verified refusal boundary.verified-absence— a runtime presence test confirms absence.declared-gap— an implementation-owned manifest explicitly declares the gap; it is ready for implementation.registry-gap— no implementation registry entry matched. Verify the gap before implementing: it may be an incomplete manifest or symbol match.architectural-policy— explicit intentional exclusion.unreviewed,not-applicable, andderivedretain the meanings above.
pnpm node-compat:backlog emits tier-specific work. Its actions are:
verify-gap— investigate a registry gap first; this is not yet an implementation ticket.implement— implement a declared or verified gap.replace-refusal— add support where an explicit refusal currently exists.audit-partial— identify and implement missing behavior in a tested subset, or tighten an overbroad mapping.classify— establish ownership and evidence for an unreviewed row.
Backlog priority is a heuristic based on Node stability: stable APIs are raised, release-candidate or unrated APIs remain normal, and experimental, deprecated, and legacy APIs are lowered. It is not a product roadmap.
Rows are not necessarily independent work items. One implementation can close a class, methods, overloads, aliases, and nested rows. Plan work by coherent API family and inspect the regenerated diff instead of creating one ticket per row.
Useful queue filters compose:
pnpm node-compat:backlog --action=implement --priority=high
pnpm node-compat:backlog --action=verify-gap --chapter=assert
pnpm node-compat:backlog --tier=dynamic --format=tsvGenerated files
Never hand-edit these files:
packages/compiler/surface-manifest.jsoninternal/compatibility/generated/node-v24-internal.jsoninternal/compatibility/generated/node-v24-backlog.jsondocs/src/generated/node-v24-compatibility.jsondocs/src/generated/node-v24-compatibility-meta.jsonpackages/runtime/src/scr_island_manifest.h
Change compiler decision sources or the implementation-owned compatibility manifests, then regenerate. Use pnpm manifest when compiler decision tables change and pnpm node-compat whenever the Node pin, compatibility manifests, compiler surface manifest, or dynamic registry changes.
The public docs artifact must not expose repository test paths, internal source identifiers, engineering evidence bookkeeping, documentation/metadata headings, command-line or configuration-only entries, or rows that are N/A in both tiers. Those remain in the complete internal census under internal/compatibility/generated/.
Landing compatibility work
For each API family:
- Start from the backlog action and verification basis. Verify every
registry-gapbefore assuming code is missing. - Read the pinned Node documentation, stability metadata, relevant Node source when needed, and existing scriptc implementation paths.
- Decide static-native and dynamic-island scope separately.
- Implement the smallest coherent behavior family. Preserve explicit refusals for unimplemented forms rather than silently diverging.
- Add differential evidence that executes under Node and as a compiled binary. Cover stdout, stderr, exit status, success behavior, and important error shapes. Dynamic-island work needs island-executed differential fixtures; a load-only export check does not prove behavior.
- Update the implementation-owned source or manifest. Positive
supportedandpartialmappings must name existing test evidence. - Run
pnpm manifestif compiler surface tables changed, then runpnpm node-compat. Never patch generated JSON or headers. - Inspect the internal ledger, public artifact, and backlog diff. Confirm the intended API family changed and unrelated rows did not.
- Run focused tests,
pnpm node-compat:check, and the full validation gate required for the change. If docs output changed, also run the docs gate.
Compatibility commands:
pnpm node-compat
pnpm node-compat:check
pnpm --filter @internal/compatibility check:upstream # networked pinned-input checkDocumentation site
The docs site is a standalone pnpm workspace under docs/. It uses Next.js App Router and the public @vercel/geistdocs package with Labs branding. Content lives in docs/content/docs; local adapters under docs/src configure the package's layout, search, Markdown routes, and proxy. Keep shared runtime behavior in the package.
Naming and content
- The project is scriptc, lowercase, everywhere: page titles, prose, and code samples.
- Name-bearing strings such as the site name, tagline, GitHub URL, and canonical origin
https://scriptc.devlive indocs/src/lib/site.ts. - Coverage numbers on a page may only be output from
scriptc coveragefor a specific program shown in the same block; never publish invented aggregate coverage statistics. - Every shell command shown in a fence must have run successfully against the current build. Output blocks contain real output; trimming is acceptable, invention is not.
- Document limitations plainly on the limitations page rather than scattering them as fine print.
MDX conventions
- Use literal HTML
<table>markup in MDX, never Markdown pipe tables. - Fence info strings contain the language and optionally a filename after a colon, for example
ts:src/main.ts; no other fence metadata survives. - Use
consolefences for shell sessions ($ commandfollowed by output). - Use
difffences for additions and removals. - Use HTML
<dl>/<dt>/<dd>for flag and subcommand references.
Adding a docs page
- Add
docs/content/docs/<topic>.mdxwith atitlein YAML frontmatter. Geistdocs renders the page title, so do not duplicate it as a Markdown H1.index.mdxis served at/docs; other pages are served at/docs/<topic>. - Add the topic to
docs/content/docs/meta.jsonto set sidebar order and groups. - Add the slug to
PAGE_TITLESindocs/src/lib/page-titles.tsfor the existing social image routes. - Keep internal links on the canonical
/docspaths. Redirect retired public URLs indocs/next.config.mjs.
Docs development and verification
Do not start duplicate docs dev servers. Reuse the existing server and its hot reload process when one is running. CI-style builds must use a separate dist directory so they do not corrupt the dev server's .next state:
cd docs
NEXT_DIST_DIR=.next-check pnpm checkpnpm check generates the content source and route types, then runs the compatibility drift check, TypeScript check, production build, and HTTP route tests. It is required before landing docs or compatibility output changes. The route tests start and stop their own production server on an available local port and use NEXT_DIST_DIR when set. The site preserves the repository's language:filename fences through docs/src/lib/remark-docs.ts.
Releases
Releases are maintainer-run; see RELEASING.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

