← Back to the editor

StoryKit Editor help

A browser-based Markdown editor for StoryKit posts: live preview, viewer-tag autocomplete, drag-and-drop media, Wikidata entity linking, and GitHub sync.

Overview

The editor runs entirely in your browser — there is nothing to install and no server-side account. Documents are saved automatically (about two seconds after you stop typing) to your browser's local storage; the badge on each document tells you how it relates to GitHub (see sync states). One editor serves every StoryKit repository: connect it to GitHub once and you can open, edit, and commit files in any repository you can write to.

Your drafts live in this browser. They survive reloads and restarts, but clearing site data deletes them — commit to GitHub (or Export) anything you care about.

Connecting to GitHub (one-time token setup)

To read private repositories and commit changes, the editor needs a GitHub personal access token — think of it as a password you mint specifically for this purpose. GitHub offers two kinds, and for this editor you want a classic token. It takes about two minutes:

  1. Open github.com/settings/tokens/new (GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic) → Generate new token (classic)).
  2. Note: anything memorable, e.g. storykit-editor.
  3. Expiration: your choice — 90 days is a sensible default. (When it expires, sync starts failing with an auth error; just mint a new token and save it here.)
  4. Select scopes: tick repo — the top-level checkbox, which selects the whole group. That covers reading and committing. If you only ever author in public repositories you can tick just public_repo instead.
  5. Click Generate token and copy the value (it's shown only once).
  6. Back in the editor: click GitHub above the document list to open the sync panel, paste the token, and click Save token. (The status-bar chip and any document's Sync with GitHub button open the same panel.) Do this before opening a file from a private repository — the editor can't read one without a token.
Why classic rather than fine-grained? A fine-grained token is issued against a single resource owner — you, or one organization — so it can only reach repositories that owner controls. If you are a collaborator on someone else's repository, a fine-grained token cannot be granted access to it at all, and for an organization's repositories the organization has to enable fine-grained tokens (often with an admin approving each one). The symptom is confusing: reading may appear to work while every commit fails. A classic token with the repo scope reaches every repository you can already push to, including ones you collaborate on. The trade-off is that it is broader — it is not limited to chosen repositories — so set an expiration, and use Forget token when you are done on a shared machine.
The token is stored only in this browser's local storage and is sent only to api.github.com. Nothing else ever sees it, and Forget token removes it. Public repositories can be opened without a token; committing always requires one.

Working with GitHub

Opening an existing file

Opening is idempotent: if the file is already in your list, the existing copy is focused instead of duplicated — your local edits are never overwritten.

Binding, committing, pulling

Each document remembers its own repository, branch, and path (its binding). The sync panel shows the binding, lets you change it, and offers Commit (push your version to GitHub) and Pull (replace your buffer with GitHub's version — a snapshot of your text is kept in the revision history first, so pulling is never destructive).

What the badges mean

BadgeMeaning
Local onlyNot connected to GitHub yet.
SyncedYour copy matches GitHub (the Sync button is disabled — nothing to do).
Local changesYou've edited since the last commit — commit when ready.
Remote changedGitHub has newer changes (someone else committed) — pull, or commit to see the conflict dialog.
ConflictYour commit raced someone else's. Choose Keep mine, Take remote, or view the diff — whichever you pick, a snapshot of your text is saved first.

The "Edit in StoryKit" bookmarklet

The fastest route from GitHub to the editor. Drag this link to your browser's bookmarks bar:

Edit in StoryKit

Then, on any Markdown file page on GitHub (a blob or edit URL), click the bookmark: the editor opens with that file loaded and bound — ready to edit, preview, and commit. If the file was already in your document list, it's simply focused.

Bookmarks bar hidden? ⌘⇧B (Chrome/Edge) or View → Always Show Bookmarks Bar (Safari) toggles it. You can also skip the bookmarklet entirely: the editor URL accepts ?open=<GitHub file URL>.

Drag-and-drop media

Drop media into the text where you want the viewer tag inserted:

Pasting one of these URLs as plain text offers a one-click "Paste as StoryKit tag?" affordance instead of inserting the raw URL. The toolbar's Insert viewer menu covers every viewer type with a template tag.

Wikidata entity linking

Select a name or term and press ⌘⇧K: search Wikidata, pick the match, and the selection becomes an entity link like [Charles Darwin](Q1035) — rendered pages show an info popup for it. Hovering an existing QID in the text shows a reference card.

Tips & troubleshooting

← Back to the editor