Skip to content
Thally
Log inGet started
Guide

Published · 8 min read

Who owns your docs if your vendor changes pricing or shuts down? Here is how to self-host Thally's MIT-licensed docs engine and where human review fits.

By Published Updated

Who owns your docs if your vendor changes its pricing, gets acquired, or shuts down? If the answer isn't "we do, completely," that's the reason to look at an open source documentation platform, self hosted on your own infrastructure. This guide covers what the MIT-licensed engine behind Thally is, how to run it yourself, what the hosted free tier adds, and where human review fits.

It's written for engineering leads at small teams. You want fewer vendors, less lock-in, and docs that don't become a second job.

What the MIT-licensed engine is

The engine is the publishing layer: the software that turns your source files into a documentation site. It's the same engine that runs the managed cloud product, and it's available on GitHub under the MIT license. You can host it yourself at any time.

The engine is more than a bare renderer. It includes search, API reference, theming, and a machine-readability layer. You author in MDX and publish one source as HTML, Markdown, JSON, and llms.txt.

What MIT means in practice

MIT is a short license, and it's worth reading the terms rather than a summary. It grants the rights "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software". The trade-off is in the same text: "THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED".

For a small team, that means:

  • You can fork the engine and change it without asking anyone.
  • You can run it commercially, behind a login or in public.
  • Nobody owes you support or uptime on the self-hosted path. That part is yours.

It's also a license your legal reviewer has probably seen before. The Open Source Initiative reports that the MIT license page drew 1.53M pageviews from 925k visitors in 2025, the most of any license page on its site. That measures interest in the license, not how many projects use it. It does suggest you won't have to explain an unfamiliar license in a procurement review.

What is not in the engine

Be clear on the boundary before you plan around it. Track, the service that evaluates product changes against your documentation and prepares evidence-backed updates for review, is a separate cloud service. Self-hosting the engine gives you publishing, search, API reference, theming, and machine-readable output. It doesn't give you automated change tracing.

Self-host while content stays in Git

Self-hosting is practical because of where the content lives. Your docs, website, and content remain as source files in Git. The vendor never holds the source, so there's nothing to export.

That changes what "migration risk" means. With content in your repository, moving between self-hosted and managed is a deployment decision, not a content project.

Running an open source documentation platform self hosted

The documented path is short: clone your docs repository and deploy the open-source engine wherever Next.js runs. If your team already ships a Next.js app, you already have a place to put it. Your domain stays under your control either way.

A sensible rollout for a small team looks like this:

  • Put the docs in a repository you control, either alongside the product code or in a dedicated docs repo.
  • Deploy the engine to the same kind of infrastructure you already run for Next.js.
  • Point your docs domain at it.
  • Wire builds into your existing CI so that a merge to the main branch is the only way content goes live.
  • Decide who owns upgrades to the engine, and put it on a calendar.

If you're starting from existing docs, imports are supported from other common docs tools or a folder of plain Markdown. The import is non-destructive and reversible, so your original source isn't consumed in the process.

What you take on

Self-hosting isn't free of cost. It moves the cost from a subscription to your team's time. Expect to own:

  • Builds, deploys, and rollbacks
  • SSL and domain configuration
  • Preview environments for pull requests, if you want them
  • Engine upgrades and any forks you maintain
  • Monitoring and search health

None of that is exotic for a team that runs its own web app. It is still work, and it competes with product work.

Machine-readable output comes with it

Docs now have two audiences. Your pages need to work for a person reading them and for a tool retrieving them.

The engine handles this from the same source. Two formats matter most:

  • llms.txt: a proposal to add a /llms.txt markdown file to websites "to provide LLM-friendly content".
  • MCP: the Model Context Protocol, which Anthropic describes as "an open standard for connecting AI assistants to the systems where data lives".

This also answers a common question: how do you publish machine-consumable docs without making writers learn a complicated workflow? Writers keep writing MDX in Git. The site, Markdown, JSON, and llms.txt outputs are generated from that one source, so there's no second format to maintain by hand.

Illustration of Self-host while content stays in Git

Use a read-only GitHub App

The moment you connect any docs tool to your repositories, the first question should be: what can it read and what can it write?

If you only self-host the engine, the answer is simple. Your own pipeline builds your own repository on your own infrastructure. No third party needs access.

If you connect the hosted service, the integration is a read-only GitHub App, and content stays in Git. Read-only matters for a small team because it limits the blast radius. An integration that can't write to your code can't change your product.

Before you install any GitHub App, run the same checks:

  • Read the permission list on the install screen. Don't rely on a marketing page, including this one.
  • Grant access to selected repositories, not the whole organization.
  • Keep branch protection on your main branch so every change goes through a pull request.
  • Confirm who on your team can approve the install and who can remove it.
  • Review installed apps on a schedule and remove what you no longer use.

Set that beside the free managed site

Self-hosting isn't the only way to start for free. The pricing has three starting points: create one managed documentation site with previews and analytics for free, self-host the MIT-licensed engine, or upgrade for automation, scale, and team controls.

Managed hosting runs on a global edge with SSL, preview deploys, and instant rollback. Those are the same items listed under "what you take on" above. The choice comes down to who operates the site, since the software is the same.

Choose self-hosting when:

  • You need docs inside your own infrastructure for policy or compliance reasons.
  • You plan to modify the engine.
  • You already run Next.js in production and adding one more deployment is cheap.

Choose the free managed site when:

  • You have one docs site and no one who wants to own its infrastructure.
  • You want preview deploys and analytics without building them.
  • You want to evaluate the engine before committing ops time.

Starting on one path doesn't close off the other. The pricing page calls managed hosting "a service, not a content lock-in". If you ever stop paying, the site can keep running on the open-source engine, hosted wherever you choose. Because the source is in your repository, switching directions later means changing a deployment. You don't rewrite anything.

Illustration of Set that beside the free managed site

Keep human approval before publish

A fair question from teams that ship fast: can docs update automatically after a pull request merges, with no manual review step?

Not here. Automation drafts the update, and nothing publishes without human approval. That's deliberate. A docs page that's wrong and confidently published is worse than one that's a day late, especially when AI tools repeat whatever the page says.

What automation removes is the detective work. You don't dig through diffs and tickets to find which pages a merge broke. The update arrives as a pull request with the evidence attached, and a reviewer confirms or rejects it.

On a self-hosted setup, you enforce the same rule with tools you already have:

  • Protect the main branch of your docs repository.
  • Require at least one approving review on every docs pull request.
  • Use CODEOWNERS so the right person reviews the right section.
  • Make merge the only trigger for a production deploy.
  • Use preview builds so reviewers see the rendered page, not only the diff.

This is worth doing properly. DORA's research found "a clear link between documentation quality and organizational performance". Its guidance is also clear that documentation has to be actively created and maintained.

Start with the smallest step. Clone your docs repository, deploy the engine somewhere Next.js already runs, and protect the main branch. If the ops work turns out to be more than you want, the free managed site runs the same engine on the same source files.

Sources

  1. Top Open Source licenses in 2025 (Open Source Initiative)
  2. The MIT License (OSI license page, archived)
  3. Documentation quality (DORA capabilities, Google)
  4. Stack Overflow Developer Survey 2026: Community
  5. The /llms.txt file (llmstxt.org)
  6. Introducing the Model Context Protocol (Anthropic)
  7. Thally Migration & Hosting: Import Docs, Host Them at the Edge | Thally
  8. Thally Pricing: Open Source and Cloud Plans | Thally
  9. Thally vs Docusaurus for AI-Ready Docs | Thally

Published under the Thally editorial policy. Technical conformance is defined in the agent-readiness methodology.

Build docs that stay close to your product.

Create a managed site, or use the open-source engine to run Thally yourself.