Softwr

Documentation · head to head

BookStack vs Trunk Code Quality

BookStack logo

BookStack

Documentation

Self-hosted documentation wiki with a fixed shelf, book, chapter and page structure

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 BookStack lists shelves, books, chapters, pages; 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 BookStack and Trunk Code Quality differ?

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

Attributes where BookStack and Trunk Code Quality differ
AttributeBookStackTrunk Code Quality
Pricing modelOpen source, no licence feeFreemium
PlatformsWeb, Self-hostedmacOS, Linux, Windows
CategoryDocumentationDeveloper Tools

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

Not yet recorded: founded for BookStack.

Which features does each one have?

They share no listed features; 9 appear only for BookStack 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 BookStack

  • Shelves, books, chapters, pages
  • Dual editors
  • Granular permissions
  • Full text search
  • Page revisions
  • REST API
  • External authentication
  • Export

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.

BookStack

  • Running an internal knowledge base on infrastructure inside a network that cannot reach external SaaSnot Trunk Code Quality
  • Documenting procedures and runbooks where a fixed structure prevents the tree sprawl a free-form wiki producesnot Trunk Code Quality
  • Replacing a Confluence licence for a team that needs pages, permissions and search but none of the surrounding suitenot Trunk Code Quality
  • Publishing customer-facing manuals from the same instance as internal documentation using per-book permissionsnot Trunk Code Quality

Trunk Code Quality

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

Where do BookStack 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.

BookStack

  • There is no vendor-hosted option at all, so you own the server, TLS certificates, database backups and upgrades, or you pay a third-party host that has no support relationship with the project and no ability to fix a bug
  • The shelf, book, chapter, page hierarchy is fixed at four levels and cannot be reshaped, so migrating a deeply nested Confluence or MediaWiki space means flattening content by hand and losing the original structure
  • It requires PHP and MySQL or MariaDB, which is a stack many engineering teams no longer run, so adopting it usually means introducing a database and runtime nobody else in the organisation maintains
  • Development is concentrated on a single maintainer, which makes the bus factor a legitimate procurement question for anything the organisation intends to depend on for a decade
  • Content lives in the database rather than in files under version control, so there is no docs-as-code workflow, no review by pull request and no branch per release
  • Export is per page, chapter or book, so moving a large instance to another platform means writing a script against the REST API rather than copying a directory of Markdown

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 BookStack and Trunk Code Quality cost?

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

BookStack

Free
  • BookStackFree
    • MIT licence with no paid edition
    • All features included, no seat limits
    • Self-hosted on your own infrastructure

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 BookStack if

  • You need shelves, books, chapters, pages.
  • You want to start without paying.
  • You work on Web, Self-hosted.
  • You also want dual editors.

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 BookStack or Trunk Code Quality better?
It depends on the job. BookStack fits running an internal knowledge base on infrastructure inside a network that cannot reach external SaaS; Trunk Code Quality fits running one lint command across a polyglot repository. BookStack starts at Free and Trunk Code Quality at Free.
Which is cheaper, BookStack or Trunk Code Quality?
BookStack starts at Free and Trunk Code Quality at Free.
Does BookStack or Trunk Code Quality run on more platforms?
BookStack runs on Web, Self-hosted. Trunk Code Quality runs on macOS, Linux, Windows.
Can I use BookStack for free?
Both have a free tier, so you can try either at no cost before committing.
What is BookStack best used for?
BookStack is most often used for running an internal knowledge base on infrastructure inside a network that cannot reach external saas, documenting procedures and runbooks where a fixed structure prevents the tree sprawl a free-form wiki produces, replacing a confluence licence for a team that needs pages, permissions and search but none of the surrounding suite, publishing customer-facing manuals from the same instance as internal documentation using per-book permissions. Of those, running an internal knowledge base on infrastructure inside a network that cannot reach external saas and documenting procedures and runbooks where a fixed structure prevents the tree sprawl a free-form wiki produces are not what Trunk Code Quality is typically brought in for.
What can BookStack do that Trunk Code Quality cannot?
BookStack covers Shelves, books, chapters, pages, Dual editors, Granular permissions, Full text search. 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

BookStack: Is there a paid or hosted version?

No. BookStack is MIT-licensed with no commercial edition and no official hosted service. Third-party hosts exist but are unaffiliated with the project.

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
BookStack: Can I nest pages more deeply?

No. Four levels is the design, not a limitation waiting to be fixed, and content that needs deeper nesting has to be restructured.

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
BookStack: Does it support single sign-on?

Yes, through LDAP, SAML2 or OpenID Connect, with group to role mapping, and none of it is gated behind a paid tier because there is no paid tier.

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
BookStack: How hard is it to migrate content in?

Straightforward for flat content through the REST API, awkward for deeply nested wikis, because the structure has to be collapsed to fit.

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
Share

Related pages

Other head to heads