Softwr

Documentation · head to head

Starlight vs Trunk Code Quality

Starlight logo

Starlight

Documentation

Documentation site framework built on Astro that ships no JavaScript to the reader by default

From
Free
Free plan
Yes
Trunk Code Quality logo

Trunk Code Quality

Developer Tools

Metalinter that runs and manages linters, formatters and security scanners

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Starlight lists file based routing; only Trunk Code Quality lists version pinning through trunk.yaml.
  • Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.

How do Starlight and Trunk Code Quality differ?

Starlight and Trunk Code Quality differ on pricing model, platforms and category (Documentation against Developer Tools). Only the attributes on which Starlight and Trunk Code Quality actually diverge.

Attributes where Starlight and Trunk Code Quality differ
AttributeStarlightTrunk Code Quality
Pricing modelOpen source, no licence feeFreemium
PlatformsWeb, macOS, Windows, LinuxmacOS, Linux, Windows
CategoryDocumentationDeveloper Tools

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Starlight.

Which features does each one have?

They share no listed features; 7 appear only for Starlight and 8 only for Trunk Code Quality. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Starlight

  • File based routing
  • Pagefind search
  • Internationalisation
  • Component overrides
  • Zero client JavaScript
  • Expressive Code blocks
  • Auto generated sidebar

Only in Trunk Code Quality

  • Installs and runs over 100 linters and formatters
  • Version pinning through trunk.yaml
  • Hold the Line checks on new changes only
  • Background daemon that precomputes results
  • VS Code and Neovim editor integration
  • GitHub integration for pull request checks
  • Security scanning tools such as trivy and gitleaks
  • Runs in any CI environment

What is each one used for?

Trunk Code Quality is most often brought in for running one lint command across a polyglot repository. The jobs each tool is most often brought in to do.

Starlight

  • A developer tool whose docs live in the same repository as the code and are reviewed in the same pull requestnot Trunk Code Quality
  • A team that already runs Astro for its marketing site and wants one build pipeline for bothnot Trunk Code Quality
  • Documentation that must be served from a CDN or an air gapped static host with no search backendnot Trunk Code Quality
  • A multilingual open source project that needs per locale content trees and untranslated page fallbacknot Trunk Code Quality

Trunk Code Quality

  • Running one lint command across a polyglot repositorynot Starlight
  • Gradually fixing legacy code with Hold the Linenot Starlight
  • Pinning linter versions across a teamnot Starlight
  • Enforcing the same checks locally and in CInot Starlight
  • Adding security scanners to pull requestsnot Starlight

Where do Starlight and Trunk Code Quality fall short?

Trunk Code Quality's most cited limit: private repositories with more than five active committers need a paid licence. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Starlight

  • There is no editing interface, so every correction requires a git client, a Node install and a CI run, which puts documentation changes out of reach for anyone who does not already work in a repository
  • Starlight versions track Astro versions, so an Astro major release becomes a documentation site migration on someone else timeline rather than yours
  • Pagefind builds the whole search index at compile time, so build duration and index size grow with page count and large documentation sets pay for it on every deploy
  • There is no analytics, no feedback widget and no page level rating built in, so measuring which pages fail readers means wiring a third party script yourself
  • Component overrides are limited to the slots the theme exposes, and anything outside those slots means forking the theme and inheriting the merge burden on every upgrade

Trunk Code Quality

  • Private repositories with more than five active committers need a paid licence
  • Paid Team and Enterprise prices are not published; quotes come from sales
  • Core CLI is closed source, with only plugins and the GitHub Action under MIT
  • Results depend on the underlying linters, so rule coverage is not Trunk's own

How much do Starlight and Trunk Code Quality cost?

Starlight is free to use; Trunk Code Quality is free to use. Plan by plan below, from each vendor's own pricing page.

Starlight

Free
  • Open sourceFree
    • MIT licence
    • All features included
    • Self hosted on any static host

Trunk Code Quality

Free
  • Free (up to 5 active committers on private repos)Free
  • Team (per seat)On request
  • Enterprise (annual site licence)On request

Which should you pick?

Choose Starlight if

  • You need file based routing.
  • You want to start without paying.
  • You work on Web, macOS, Windows, Linux.
  • You also want pagefind search.

Choose Trunk Code Quality if

  • You need installs and runs over 100 linters and formatters.
  • You want to start without paying.
  • You work on macOS, Linux, Windows.
  • You also want version pinning through trunk.yaml.

Questions people ask

Is Starlight or Trunk Code Quality better?
It depends on the job. Starlight fits a developer tool whose docs live in the same repository as the code and are reviewed in the same pull request; Trunk Code Quality fits running one lint command across a polyglot repository. Starlight starts at Free and Trunk Code Quality at Free.
Which is cheaper, Starlight or Trunk Code Quality?
Starlight starts at Free and Trunk Code Quality at Free.
Does Starlight or Trunk Code Quality run on more platforms?
Starlight runs on Web, macOS, Windows, Linux. Trunk Code Quality runs on macOS, Linux, Windows.
Can I use Starlight for free?
Both have a free tier, so you can try either at no cost before committing.
What is Starlight best used for?
Starlight is most often used for a developer tool whose docs live in the same repository as the code and are reviewed in the same pull request, a team that already runs astro for its marketing site and wants one build pipeline for both, documentation that must be served from a cdn or an air gapped static host with no search backend, a multilingual open source project that needs per locale content trees and untranslated page fallback. Of those, a developer tool whose docs live in the same repository as the code and are reviewed in the same pull request and a team that already runs astro for its marketing site and wants one build pipeline for both are not what Trunk Code Quality is typically brought in for.
What can Starlight do that Trunk Code Quality cannot?
Starlight covers File based routing, Pagefind search, Internationalisation, Component overrides. Trunk Code Quality covers Installs and runs over 100 linters and formatters, Version pinning through trunk.yaml, Hold the Line checks on new changes only, Background daemon that precomputes results.

Answered from the vendors’ own pages

Starlight: Can a non technical writer publish a page without help?

No. There is no content management interface. Every change is a commit, a pull request and a build.

Trunk Code Quality: What does Trunk Code Quality do?

It is a metalinter that installs, pins and runs third party linters, formatters and security scanners from one CLI. A background daemon precomputes results for editor annotations.

Source
Starlight: Do I need to know Astro to use it?

Not for basic use. Markdown files and a config file are enough until you want custom components, at which point Astro knowledge becomes mandatory.

Trunk Code Quality: Is Trunk Code Quality free?

Public and open source repositories have no stated usage limit, and private repositories with five or fewer active committers can use the CLI at no cost. Larger private teams need a paid licence.

Source
Starlight: Is search included or do I pay for it?

Included and free. Pagefind builds a static index at compile time. Algolia DocSearch is optional if you want hosted search instead.

Trunk Code Quality: Which operating systems are supported?

The launcher supports macOS and Linux. Windows is supported from CLI version 1.13.0, using git-bash, msys2 or a PowerShell launcher.

Source
Starlight: What happens when Astro releases a major version?

Starlight follows it, and your site needs a migration. Read the upgrade guide before pinning a version for a long lived project.

Trunk Code Quality: How many linters does it support?

The supported linters page claims over 100 linters and formatters. They cover many languages plus infrastructure, security, SQL and Markdown tooling.

Source
Starlight: Can I self host with no external services?

Yes. The output is static HTML, CSS and a search index. Nothing calls out at runtime unless you add it.

Share

Related pages

Other head to heads