Using Marginalia on a phone

Marginalia has a layout made for phones. You write, edit and regenerate parts, edit lorebooks, manage your models and (as an administrator) the installation from the phone browser. The phone layout is not a copy of the desktop one: the same things are laid out in one column, a few windows are simpler and not every extension works in it. This page lists the differences.

For reading a book on a phone, there is also the viewer, which is made for it.

When the phone layout is used

Marginalia looks at the width of the browser window when the page loads. Narrower than 768 pixels gives you the phone layout, anything wider the normal workspace.

  • Tablets and phones in landscape mode are usually wider than 768 pixels and get the desktop layout.

  • The layout is not switched while you work. If you turn the phone or tablet on its side, or resize the window, the layout stays as it was until you reload the page. So to get the larger desktop layout on a tablet or a turned phone, turn it and reload; to go back to the phone layout, turn it back and reload again.

  • A narrow desktop browser window gets the phone layout too, which is handy to try it.

Like the desktop, the phone layout can be added to the home screen like an app (Install app / Add to Home Screen in the browser menu).

The workspace

The tabs on the left are replaced by a drawer. Tap the menu button in the top bar to open it, tap a tab to switch to it. The tab you are on fills the whole screen and its name is shown in the top bar.

The phone workspace with the drawer open
The phone workspace with the drawer open

The drawer has the same tabs as the desktop - Books, Lorebooks, Settings, Protocols, Inference Providers, Agents (only for users who may use agents), Resources and Trash - and, for an administrator, Admin (the button of the desktop is a tab here). At the bottom are the Language selector, Change Password and Logout. Extensions may add buttons, but only to the places they know on the phone, see Extensions.

While the Settings tab has unsaved changes, the drawer is locked as on the desktop: save or discard first.

Books

The book list is one column. Above it are the name filter, the tag filter and the sort buttons (Last Modified, Created, Name; tap the active one again to reverse the order), then Add Book, the magnifier (the advanced search: tags to include and exclude, dates, number of parts and text) and refresh. Each book has buttons: the star makes it a favorite, Move to folder puts it into a folder, the pencil opens it and the trash deletes it (into the Trash).

The book list on a phone
The book list on a phone

The list shows one folder at a time, as on the desktop: the path of the folder you are in as buttons to go back on, the check box Include subfolders, then the folders above the books (tap one to go in; it shows how many books are beneath it) and, at the top level, the virtual Favorites folder. The name and tag filters search the current folder, or everything below it with Include subfolders. Add Book and the imports put the new book into the folder you are in. The folder you are in is remembered.

Folders on a phone
Folders on a phone
The menu of the book list
The menu of the book list

A folder is made with the New folder button of the header, and renamed, set up (description, tags, language, model and protocol for its books) or deleted from the ⋮ button of its row. The ⋮ button in the header has the windows that work on many books: Organise (the two panes of folders are one over the other on a phone, there is no keyboard hint), Tag books, Tag folders and the mass changes of folders (model and protocol, language, rename). The language of a book can be inherited from a folder here too, and the Prompts tab shows where each value comes from.

Lorebooks

The phone has the whole lorebook editor of the desktop, laid out in one column. The lorebook is picked in a box; the ⋮ button next to it opens the menu of the lorebook: Add Lorebook, Clone, Delete, Import (a lorebook file, a SillyTavern file, a zip archive of Markdown files, a lorebook another user shares), Export (the lorebook or the SillyTavern format), Tag lorebooks and Edit description. Under the Enabled check box, the token count and the buttons for Search and replace and the activation preview, the section Settings opens to the name, the sub lorebooks, the tags, the scan depth and Share with other users of the lorebook. See Lorebooks.

Below are Add Entry (and the ⋮ with the mass edit and the tags of many entries), the search box and the entries. An entry opens with its enabled box and name on a row; opened it has a form: name, order, tags, filtering mode and text, insertion mode, negative tags, the activation context and its range, Also search the summaries, Prevent recursion, Only through other entries, the content, the note and Delete entry. Everything that is changed is saved at once, as on the desktop. Under the search box are the tag and the status boxes that limit the list; Select entries in the ⋮ menu puts a check box in front of every entry and shows Delete selected for the checked ones. What is not here: the check box Only root lorebooks.

The Lorebook tab of the drawer of the story shows the lore of the book like the desktop tab: a search box, the entries that open to their content, and the pen that edits the text of an entry.

The same editor is used in the Lorebook tab of a book. When the lorebook of the book has sub lorebooks, the box Shown lorebook under it switches the tab to any of them, and back, without changing the lorebook of the book. While an agent works on a book that uses the lorebook, the lorebook is shown as text and nothing in it can be changed.

A lorebook on a phone
A lorebook on a phone
The menu of the lorebook
The menu of the lorebook
The settings of the lorebook
The settings of the lorebook
An entry opened into its form, with the revisions of the Lorebook VCS above it
An entry opened into its form, with the revisions of the Lorebook VCS above it

The button next to the Enabled check box opens Search and replace for the entries of the lorebook, see Entries.

Search and replace of a lorebook on a phone
Search and replace of a lorebook on a phone

Settings, protocols, providers, resources, trash

  • Settings are the same as on the desktop, laid out in a narrow column; Import Backup as New Book is the button above Discard Changes.

  • Protocols and Inference Providers list each entry as text with the buttons next to it (below it, for providers, which have more of them). The editing dialogs are the desktop ones, so a protocol can be shared from the phone, and the Import from other user button above the list imports a protocol that another user shares.

  • Resources groups the files by the object that uses them (open a group with its arrow), each file is a card (a picture, the name, type, size, date and the buttons to download, replace and delete), with a check box for Delete selected; ticking a group deletes all its files.

  • Trash shows each deleted object as a card (name, type, when it was deleted). The explanation of the trash is behind the i button; the buttons of the filters wrap to a second line. Restoring works as described in Trash.

The resources on a phone
The resources on a phone
The inference providers on a phone, with the info button of a shared provider
The inference providers on a phone, with the info button of a shared provider
The trash on a phone
The trash on a phone

The book window

Opening a book shows it full screen. The close button is the ✕ in the top corner, and the tabs - About, Prompts, Lorebook, Story, Branch view, Backups - are one row you scroll sideways. They do the same as on the desktop (see Books), with their fields in one column.

The story

The story tab is one column of parts. The differences from the story editor:

The story of a book on a phone
The story of a book on a phone
  • The outline (and the tabs extensions add next to it, such as the Author's Note) is in a drawer. Open it with the button at the top left.

  • The Summaries button and the settings menu (⚙, with Change Styles For Text, Search and replace, Import, Mass delete and Export story) are in the top bar, not at the bottom.

  • The + button for a new part is at the bottom.

  • The Summaries window has its menu bar (Search and replace, Create summaries..., Resummarize all summaries, Export Summaries, Import Summaries) in a row of its own; on a narrow screen the items are behind the ⋯ button. Importing summaries is the same window as on the desktop, in the width of the screen.

Import Summaries on a phone
Import Summaries on a phone
  • Annotations: the Annotations tab is in the drawer next to the outline; a tap on an underlined passage opens its note; Annotate part and Annotate with AI are in the menu of the part, Annotate selection in the menu of a long press on the selected text.

  • Search and replace opens the same window as on the desktop, with the fields and buttons below each other:

    Search and replace of the story on a phone

  • A part is only its text under one small line with two icons. The first is the part's menu (edit, regenerate, swipe, branch, history, show prompt, images, summary, delete); the second opens a popup with what the desktop shows in the column on the right of a part: the ids, model, protocol, tokens, words and the turn details.

  • History in the menu of a part opens the version history as a full screen page: the versions are cards above the selected version, with the same actions as on the desktop.

    The version history of a part on a phone

  • Statistics is in the settings menu of the story (the statistics of the book) and a button in the header of the list of books (all books). The window is a full screen page; its calendar shows the last 16 weeks (a year on the desktop), see Writing statistics.

    The statistics of all books on a phone

  • The summaries overview keeps a fixed width and scrolls sideways.

Administration

An administrator has the tab Admin in the drawer, with the same tabs as the desktop page in a row you scroll sideways: Users, Database Backups, Cleanup, Resource Files, Help assistant, Agents, Update and Extensions. The lists (users, backups, extensions) are cards with their buttons under the text, and the toolbars wrap onto a second line. Installing an extension (Load Extension) and uploading a database backup open the file chooser of the phone. Other users do not get the tab.

The users of the Admin tab on a phone
The users of the Admin tab on a phone
The database backups on a phone
The database backups on a phone

What is missing

The phone does what the desktop does, with these differences:

Missing or different on the phone Where to do it
The check box Only root lorebooks and the selection of many lorebook entries to delete at once Desktop layout.
The command bar, keyboard shortcuts, the diff view of a regenerated part and the notes in the margin Desktop layout, they need a keyboard or a wide screen.
Windows with a lot of columns or two panes (the summaries overview, the Beta Readers conversation, the Manga Generator) are small They work: landscape is easier.

Everything not in this list works the same as on the desktop: generating, editing, regenerating, swiping and branching parts, summaries and meta summaries, book prompts, the branch tree, book backups, export, resources, the trash, lorebooks and the administration.

Extensions

The phone layout has its own classes, so an extension has to support it explicitly. The extensions that come with Marginalia:

Extension On the phone
Arc Outline Works. The Arcs tab is in the outline drawer.
Author's Note Works. The note is in the outline drawer of the story.
Beta Readers Works. The Beta Readers tab is in the outline drawer; the room for the conversation is small, landscape is easier.
Book Description Generator Works. The button is at the end of the About tab; the dialog shows the options above the result.
Chapter Marker Works. Chapter titles are in the outline drawer.
Character Tracker Works. The Characters tab is in the outline drawer.
Story Notes Works. The Notes tab is in the outline drawer; the page dialog fits the screen, a long page is easier to write in landscape.
Conlang Translator Partly. The panel in Settings → Extension Settings, the editor, the review and the wizard work (the lexicon grid scrolls sideways), and so does the tap on a translated speech in the viewer; the story side (Translate dialogs, Translate parts (constructed language), the click in the story) was not tried on a phone, see Limits.
Converter Works. The Converter tab is in the outline drawer; the range of the chat is chosen with two taps, see On a phone.
Instruction Exporter Works. Export instructions is in the settings menu of the story.
Manga Generator Works. Manga Generator is in the settings menu of the story; its window is large, so landscape is easier.
Reviewer Works. Its items are in the menu of a part, its settings in Settings → Extension Settings.
Side Query Works. The Side Query tab is in the outline drawer.
Lore Generator Works. The wand button is in the row of every entry of the lorebook; its window shows the prompt above the result.
Lorebook VCS Works. The panel of the lorebook is under its Enabled row, the revisions of an entry are at the top of its form.
Image Generator Works. Generate image is in the menu of a part.

Extensions from other sources may behave differently or add nothing at all on the phone; they appear where their author made them work. If an extension seems to be missing, check it in the desktop layout. How an extension supports the phone is described in the developer manual.

Tips

  • Writing long text on a phone is easier in landscape mode. The layout stays the phone one after the turn, until you reload the page.

  • If you need something that is missing on the phone, turn the phone on its side and reload, or open Marginalia in a wider window; your books and settings are the same everywhere.

  • To reach Marginalia from a phone it has to run as a server: the desktop app listens on your computer only.