Skip to content

Local packages

Publishing makes a version of your reusable definitions available to other documents through an @local import. It does not publish a public template. The dialog also manages existing library packages and this document’s package snapshots.

Keep shared definitions in a source project, then choose File → Publish & manage packages… in the editor. Local packages in the account menu opens the same tools. Choose a lowercase name, a version such as 1.0.0, and the entry point that exports the definitions. Publish to My library.

Another document can then import it:

#import "@local/tylor-guide:1.0.0": *

This example works after you publish a package with that name and version. The screenshot below shows two reusable styles, with their saved document references expanded.

My library with study-cards and tylor-guide packages and the documents that reference them

Search by package or document name to find a dependency. Expand its reference count to open a document that uses it.

My library holds reusable account-wide packages in server mode, or browser-local packages in local mode.

This project holds independent package snapshots attached to a document, including packages restored from a build bundle. Local-mode bundle imports keep these snapshots in this browser; server accounts also support opening their package source projects for editing. A matching project snapshot takes precedence over the library version. Updating My library does not replace those snapshots.

A personal copy of the meeting report has its own tylor-guide snapshot under This project, above the account library

When editing a package source, save your changes and then publish explicitly. Republishing the same library version replaces that version; use a new version when existing documents should continue using the previous release.

Under This project, choose Open to edit. Tylor opens the package’s source project. After saving your edits, reopen Local packages and choose Publish to copied project to update that document’s snapshot. The destination is named above the controls.

Package source ready to publish to Paper review meeting · Personal copy, with its name, version, entrypoint, and destination visible

Use Add these packages to My library when you also want to reuse the snapshots elsewhere. Review any confirmation before replacing an existing library version.

In a document shared with you, choose File → Document packages…. The dialog lists Packages used by this document, resolved from the owner’s library and project snapshots. Your personal library is shown separately.

Only the owner can publish the original document as a package. Choose Make a personal copy… in the dialog to create an independent document, then use File → Publish & manage packages… in your copy. A package-loading error is shown explicitly; an empty personal library does not mean the shared document has no dependencies.

Shared documents use their owner’s referenced packages. A collaborator’s identically named library package does not replace them. Personal copies preserve independent snapshots so the copy can stand on its own.

Choose Export beside My library to download all library packages as a ZIP backup. Use Import to restore that archive or bring your reusable styles into another account.

If a package name and version already exist, choose Keep existing or Overwrite for each conflict, then Apply. Overwriting a library version changes what documents importing that version receive. Keep the existing version unless you intend that update.

This export covers My library. For independent This project snapshots, use a submission snapshot or folder backup to preserve the document and its dependencies together.

With a server account, you can find versions that no saved document or library package references:

  1. Save your documents and let pending changes sync.
  2. Open Local packages and choose Export to keep a backup.
  3. Enable Show only packages with no references under My library. You can also search by package or document name.
  4. Check each candidate. Clear the filter and expand a package’s reference count to see documents or other packages that still use it.
  5. Choose the trash icon, Delete this version, and review the confirmation before deleting.

References include saved shared work, documents in Trash, and discoverable indirect dependencies. Computed import names and unsynced edits may be missed; literal examples may also count as references. A zero count is a useful cleanup signal, not a guarantee that a version is unnecessary. If usage is unavailable, reopen the dialog before deciding what to remove.

Deleting a library version leaves independent project snapshots and archives intact. Documents relying on that library version need it restored with Import, or their imports updated to a retained version.