Synced pages

Keep a page in sync with a diagram file in a GitHub, GitLab or Bitbucket repository. The file is the source of truth, so the page is read-only in Lineout.

A typical flow: Claude Code or a teammate changes docs/architecture.json in a pull request, the change is merged, and the page in Lineout follows.

The file#

One page in the diagram format, the same JSON a single-page export writes:

{ "nodes": [], "arrows": [] }

A document with pages works when it has exactly one page. Files can be up to 1 MB.

Connect a provider#

Choose Diagram menu → Git providers → Connect GitHub…, Connect GitLab… or Connect Bitbucket…, or connect under Settings → Git providers.

ProviderAccess Lineout asks for
GitHubThe Lineout GitHub App, with read-only Contents and Metadata. Pick its repositories with Git providers → Choose repositories….
GitLabread_api. Lists the projects where you have at least the Reporter role.
BitbucketAccount and Repositories read. Lists the repositories you're a member of.

Lineout only ever reads your repositories and never asks for permissions that could change them. That's why GitLab and Bitbucket webhooks are added by hand.

Sync a page#

  1. Open an empty page, or add one with +.
  2. Choose Tab options (⋯) → Sync with Git…, or Sync page with Git in ⌘K.
  3. Pick the provider, repository (a project on GitLab), branch and JSON file. If the file isn't listed, type its path and choose Use followed by the path.
  4. Click Sync page.

The page fills with the file at once, keeps its name and gets a branch icon on its tab. An invalid file is refused with the JSON path of the problem, and the page stays empty.

Any member of the diagram's team who can edit it can sync a page with a file their own account can read. People with a share link can't, and a locked page has to be unlocked first.

When the page updates#

TriggerProviders
A push to the file's branchGitHub, and GitLab and Bitbucket once the repository has Lineout's webhook
Opening the diagram, if not checked for 1 minuteAll
The daily checkAll
Sync now on the pageAll

Updates appear at once for everyone, and they aren't undo steps.

Webhooks for GitLab and Bitbucket#

Click Update on every push on the page's strip for the webhook's URL, its secret and the steps. Someone with the Maintainer role on GitLab, or admin access on Bitbucket, adds it in the repository's settings. One webhook covers every page synced from the repository, and the dialog shows when the last push arrived.

Working with a synced page#

A strip at the top of the page shows the repository and path, linked to the file, the branch, the commit and when the content last changed.

  • The content is read-only: select, copy and export it, and change the file to change the page.
  • Rename, Duplicate and Delete work as on any page. A duplicate is an ordinary page you can edit.
  • Unlink from GitHub, GitLab or Bitbucket on the strip stops syncing and keeps the content as an ordinary page.

When a page stops updating#

The strip says Sync failed or Paused, with the reason, and the page keeps its last good content.

StatusCausesFix
Sync failedThe file isn't a valid page; the file, branch or repository is gone or unreadable; or, on the Free plan, the file would give the diagram too many shapes.Fix the file or Lineout's access. Lineout tries again at the next check.
PausedThe person who synced the page left the team, deleted their account, disconnected the provider or lost access to the GitHub repository.Click Sync with my account.
PausedThe diagram is read-only on the Free plan, or its team has no plan.Bring your personal team back within the Free plan's limits, or buy seats for the team. The page syncs again on its own at the next check.

Sync with my account checks that your own account can read the same file on the same branch of the same repository, and from then on the page syncs with your access. If a different repository has taken the name, unlink the page and sync it again. If you haven't connected that provider yet, the strip offers Connect GitHub, Connect GitLab or Connect Bitbucket first.

Disconnect#

Choose Disconnect… under the provider in Git providers, in the Diagram menu or in settings. Pages synced through your account stop updating and keep their content, and Lineout deletes its tokens and revokes its access.

  • GitHub: the Lineout app stays installed on your repositories until you uninstall it in GitHub's settings.
  • Bitbucket: Bitbucket doesn't let apps revoke themselves, so remove Lineout from your authorized apps in Bitbucket's settings.

MCP and Claude Code#

get_diagram gives a synced page a source with its provider, repository, branch, path and status, and the tools that change page content refuse it. Asked to change a synced page, the Claude Code plugin changes the file in your repository instead.