astro check
Reasonable, with limits. 5th of 10 type checkers.
astro check (@astrojs/check) is the official command-line type checker for Astro projects. It checks .astro files and the TypeScript around them, which plain tsc cannot do. If you build with Astro, it is the tool to use, but it does nothing outside Astro and still runs on the older JavaScript TypeScript API.
Best for: Teams that build sites with Astro and want type errors in .astro files caught in CI.
Scores
Overall6.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
For Astro projects it is the right and only real choice for checking .astro files, and it is well maintained by the core team. It is narrow, it has memory problems on large projects, and it is still 0.x. It also lags the move to TypeScript 7, while tsc and tsgo serve general TypeScript better. It ranks with svelte-check and vue-tsc as a framework-specific tool, a little below them on adoption evidence.
- docs.astro.build/en/guides/typescript: It is the official, recommended checker for .astro files.
- raw.githubusercontent.com/withastro/astro/HEAD/packages/language-tools/astro-check/CHANGELOG.md: It is actively maintained, but has no TS 7 support yet.
- npm downloadsLast4Weeks: Strong download growth from Astro's adoption.
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
`astro check` is the practical stable choice for checking `.astro` components on TypeScript 6. For a plain TypeScript project, `tsc` is the stronger default. The planned deprecation limits the recommendation for new Astro projects, and the range reflects uncertainty about when the native replacement will be ready for routine use.
- docs.astro.build/en/guides/typescript: Astro documents the checker as its CLI workflow for component diagnostics.
- devblogs.microsoft.com/typescript/announcing-typescript-7-0: Native tsc is stable for ordinary TypeScript projects.
- github.com/withastro/astro/blob/main/packages/astro/src/cli/check/index.ts: Astro names a future deprecation and an experimental migration path.
- vxi.me/en/posts/astro-check-typescript-7-compatibility: Independent case study documents a project restoring CI by returning to TypeScript 6.
Needed by many3.3
How many developers need a tool for this job?
Claude Opus 5.5: 3.0, likely 2.0 to 4.0
Only developers who build with Astro need it, so it serves a clear niche within type checking. Astro is a popular framework for content sites, which makes the niche sizable, but it is far smaller than the audience for tsc.
- docs.astro.build/en/guides/typescript: The docs say tsc ignores .astro files and recommend astro check for .astro and .ts files.
- github description: Astro is the web framework for content-driven websites.
GPT-6.2 Sol: 3.5, likely 2.6 to 4.6
Type checking is a broad need, and this command serves projects that use Astro. Its main value is checking `.astro` components, much as `vue-tsc` serves Vue and `svelte-check` serves Svelte. State of JavaScript shows growing interest in Astro, while the share of developers who need this specific checker is harder to estimate.
- docs.astro.build/en/guides/typescript: Defines Astro file coverage and points to separate Vue and Svelte checkers.
- 2025.stateofjs.com/en-US/libraries/meta-frameworks: Tracks Astro framework usage, awareness, and satisfaction.
- peers: Includes the general-purpose tsc and dedicated Vue and Svelte checkers.
Helps a lot6.7
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
It does its one job well: tsc-style diagnostics for .astro files, a watch mode, and a tsconfig flag, all built on the mature Volar stack. Its limits are clear. Large projects can run out of memory. It cannot use the 10x faster TypeScript 7 native compiler, and the language server ignores tsconfig TypeScript plugins in .astro frontmatter. Recent fixes to basic CLI argument handling also show rough edges.
- raw.githubusercontent.com/withastro/astro/HEAD/packages/language-tools/astro-check/CHANGELOG.md: Recent releases fixed ignored CLI arguments and watch mode exiting early. TS 6 support was added, with no mention of TS 7.
- GitHub.com/withastro/astro/issues/11097: A user reports astro check running out of JavaScript heap memory.
- community.vercel.com/t/deployment-issue-with-astro-application-on-vercel/321: Raising the memory limit to 8 GB did not fix the out-of-memory error.
- newreleases.io/project/github/withastro/astro/release/@astrojs%2Flanguage-server@2.16.12: The language server fixed a crash when astro check runs against the TS 7 native compiler.
- github.com/withastro/astro/issues/16917: An open issue reports that the language server ignores TS plugins from tsconfig in .astro frontmatter.
GPT-6.2 Sol: 7.4, likely 6.3 to 8.5
Version 0.9.12 checks Astro templates alongside ordinary project files and provides file locations, severity levels, and a documented CI command that developers and coding agents can use. It also ships the fix for a per-file delay that a user measured on both a generated test and a real project. TypeScript 7 remains unsupported, and performance evidence across larger projects is limited.
- docs.astro.build/en/reference/cli-reference/#astro-check: Documents watch mode, config selection, and CI failure thresholds.
- komalnakrani.com/tips-and-tricks/astro-check-command: Independent walkthrough shows diagnostic locations and CI setup.
- github.com/withastro/astro/issues/18310: A user measured the cost of the per-file delay on two projects.
- github.com/withastro/astro/releases/tag/@astrojs%2Fcheck@0.9.12: The October release fixed argument parsing and picked up language server 2.17.3.
- github.com/withastro/astro/blob/main/packages/language-tools/language-server/CHANGELOG.md: Language server 2.17.3 removed the per-file delay.
- github.com/withastro/astro/blob/main/packages/language-tools/astro-check/package.json: Declares TypeScript 5 and 6 as supported peer versions.
Holds up over time5.9
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 5.0 to 8.0
The Astro core team maintains it in a very active monorepo, with 7 releases in the last year and the latest in October 2026. Astro is funded and widely co-maintained. The main risk is the move to TypeScript 7, which drops the old JavaScript API that Volar-based tools depend on. Astro has not published a clear plan for that move, so the range is wide.
- npm versionsLastYear: There were 7 releases in the last year; the latest, 0.9.12, came out on 2026-10-21.
- github commitsLastYear: The Astro monorepo had 2373 commits and 1277 contributors, though this counts all of Astro.
- devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025: Microsoft says TypeScript 7 will not support the existing Strada API.
- Astro funding: Astro has a paid core team and corporate backing.
GPT-6.2 Sol: 4.7, likely 3.2 to 6.2
The checker published seven versions in the past year, and Astro shipped a fix for a reported CI exit-code problem in 7.4.6. Cloudflare backs the Astro team. Astro’s CLI announces a future deprecation and points to `tsc` with an experimental content mapper for TypeScript 7.1 and later, so the timing and effort of a migration remain uncertain.
- evidence.npm.versionsLastYear: Seven checker versions were published in the past year.
- github.com/withastro/astro/issues/18588: A user reported a successful CI exit when checker dependencies were missing.
- github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md: Astro 7.4.6 fixed the reported CI exit-code problem.
- blog.cloudflare.com/astro-joins-cloudflare: Cloudflare confirms its backing for the Astro team.
- github.com/withastro/astro/blob/main/packages/astro/src/cli/check/index.ts: The CLI warns of future deprecation and names the experimental replacement.
- devblogs.microsoft.com/typescript/announcing-typescript-7-1-beta: TypeScript 7.1 beta introduces the API used for embedded languages.
Used widely5.2
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 4.0 to 7.0
It had 24M downloads in the last 4 weeks, up from 1.45M a year ago. That ratio of about 16.5 is far above the median of 4.1, but templates and CI installs inflate it. ecosyste.ms lists only 114 dependent repos, far fewer than svelte-check's 19.5k or vue-tsc's 34.7k, though that count may miss this scoped package. My estimate is tens of thousands of Astro projects, and the number is growing.
- npm downloadsLast4Weeks: 24.0M downloads, against 1.45M a year ago.
- dependents: 114 repos and 144 packages, low next to its framework peers.
- peers svelte-check, vue-tsc: Its framework peers have 18M and 37M downloads, and 19.5k and 34.7k dependent repos.
GPT-6.2 Sol: 4.4, likely 2.8 to 6.0
Four-week npm downloads grew 16.5× year over year, well above the 4.1× catalog median and faster than `vue-tsc` or `svelte-check`. The dependent index found 114 repositories and 144 packages, with far fewer repositories than either peer. Repeat installs, partial repository coverage, and framework-wide GitHub and Bluesky figures leave the number of projects choosing the checker uncertain.
- evidence.npm.downloadsLast4Weeks and evidence.npm.downloadsSame4WeeksYearAgo: 24.0 million installs, up from 1.45 million.
- medianDownloadsRatio: The catalog-wide growth baseline is 4.1×.
- evidence.dependents and peers: 114 indexed repos versus 34,683 for vue-tsc and 19,516 for svelte-check.
- project.note, evidence.github.stars, and evidence.bluesky: 64,099 stars and 63 Bluesky posts cover the shared Astro repository.
Vouched for5.9
Who stands behind it being good?
Claude Opus 5.5: 5.0, likely 3.0 to 6.0
It is the official tool, and the Astro docs recommend it, so Astro projects use it by default. I found no independent benchmarks, survey data or write-ups about the checker itself. Its Hacker News and Bluesky attention is really about Astro as a whole.
- docs.astro.build/en/guides/typescript: The official docs recommend running astro check && astro build.
- hackerNews stories: There are no Hacker News stories about the checker.
- bluesky posts: The 63 posts are about Astro in general, not the checker.
GPT-6.2 Sol: 6.7, likely 5.5 to 7.8
Bootstrap and Cloudflare use `astro check` for their documentation sites, and the independent Web Check project runs it before building. These are concrete examples of teams relying on the checker. The survey measures satisfaction with Astro as a framework, and the available checker benchmark covers one reported bottleneck.
- github.com/twbs/bootstrap/blob/main/package.json: Bootstrap runs astro check in its documentation type-check script.
- github.com/cloudflare/cloudflare-docs/blob/production/package.json: Cloudflare runs the checker in its production documentation repository.
- github.com/lissy93/web-check/blob/master/package.json: Web Check runs astro check as part of its build.
- 2025.stateofjs.com/en-US/libraries/meta-frameworks: Astro leads framework satisfaction in the survey.
- github.com/withastro/astro/issues/18310: Independent measurements cover the per-file delay fixed in 0.9.12.
Safe8.0
How safe is it to depend on?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
It has no advisories, an MIT licence and only 4 direct dependencies, though the language server and Volar bring in more. A large organisation publishes it from a monorepo with release automation. No Scorecard data was available, so the range stays at two points.
- advisories total: There are no known advisories.
- npm dependencies: 4 direct dependencies.
- npm license: MIT.
- scorecard: No Scorecard data is available.
GPT-6.2 Sol: 8.0, likely 6.8 to 9.2
The package uses the MIT licence, has four direct dependencies, and has no advisories in the supplied OSV data. Astro publishes through GitHub Actions, the 0.9.12 release points to a verified commit, and the package audit lists two maintainers. The language server adds transitive dependencies, and the absent OpenSSF Scorecard and unverified release permissions limit confidence.
- evidence.npm.license and evidence.npm.dependencies: MIT-licensed with four direct dependencies.
- evidence.advisories and evidence.scorecard: Zero recorded package advisories and no OpenSSF Scorecard result.
- github.com/withastro/astro/blob/main/.github/workflows/release.yml: Release workflow builds packages and publishes through Changesets.
- github.com/withastro/astro/releases/tag/@astrojs%2Fcheck@0.9.12: The bot-published release points to a verified GitHub commit.
- intel.aikido.dev/packages/npm/@astrojs/check: Independent package audit lists two maintainers and the language server dependency.
Good
- It is the only tool that type-checks .astro components and their frontmatter, and the Astro docs recommend it for that job.
- The Astro core team maintains it in the Astro monorepo, and it keeps pace with Astro releases such as Astro 6.
- It has a small footprint: 4 dependencies, an MIT licence and no known advisories.
- It runs on Volar, the same language-tools base as vue-tsc, so editor and CLI diagnostics match.
Bad
- It only helps Astro projects. For Vue or Svelte islands you still need vue-tsc or svelte-check.
- Users report out-of-memory crashes on large projects, and raising the Node heap limit does not always fix them.
- It is built on the JavaScript TypeScript API, so it cannot use the faster native TypeScript 7 compiler yet.
- It is still at version 0.x, and recent releases fixed basic CLI bugs, such as the first two command-line arguments being ignored.
The numbers
- npm downloads, 4 weeks
- 24M ×17 in a year
- GitHub stars
- 64k
- Commits, 12 months
- 2.4k
- npm version
- 0.9.12 Oct 2026
- Versions, 12 months
- 7
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
The repository is Astro’s, so its stars and activity are not for the type checker.
Read on 21 November 2026 from GitHub (withastro/astro), npm (@astrojs/check), OSV and the OpenSSF Scorecard.
Type checkers
- 9.4TypeScript (tsc)
- 7.8svelte-check
- 7.3vue-tsc
- 6.5bun check
- 6.2astro check
- 6.1tsrs
- 4.4Flow
- 3.5deno check
- 1.9TypeScript native preview (tsgo)
- 1.8Ezno