Skip to content

Packages

Install the core and add the packages your application uses. These packages ship independently as ESM. Their public APIs are still changing. Bundle size has no published measurement.

This table comes from the current workspace manifests. Every public declaration entry point appears in the generated reference. CSS exports are assets, and internal entry points stay outside the public reference.

PackagePurposeDeclaration entry points
@singapore-editor/collabHost-ordered collaborative text core. Editor and network integration are separate work.1
@singapore-editor/collaboration5
@singapore-editor/coreEditor views, documents, extensions, rendering, syntax, keymaps and testing.14
@singapore-editor/decodeText reveal animation.1
@singapore-editor/diffDiff presentation and editor contributions.1
@singapore-editor/findFind and replace widget and commands.1
@singapore-editor/guttersLine numbers, fold arrows and gutter contributions.3
@singapore-editor/highlightingShared highlighting support.1
@singapore-editor/lspLanguage Server Protocol client and protocol types.3
@singapore-editor/lsp-pluginEditor diagnostics, completion, hover and other server-backed features.15
@singapore-editor/markdownMarkdown preview and editing features.1
@singapore-editor/minimapWorker-drawn document overview.1
@singapore-editor/pagedRead-only paged file viewing.1
@singapore-editor/panesPlain DOM split-pane layouts.1
@singapore-editor/plugin-uiShared hovers and anchored UI for plugins.11
@singapore-editor/reactReact controller, host and state selectors.1
@singapore-editor/scope-linesStructure guides and sticky scope headers.1
@singapore-editor/solidSolid refs, accessors and reactive options.1
@singapore-editor/spellcheckWorker-backed spelling checks.1
@singapore-editor/textbufferPersistent AVL piece table, versioned reads and anchors.3
@singapore-editor/tree-sitterWorker syntax parsing, highlighting, folds and structural selection.1
@singapore-editor/tree-sitter-languagesBundled grammar assets and language contributions.2
@singapore-editor/typescript-lspTypeScript language service and virtual project files in a worker.3

@singapore-editor/core/editor exposes the editor constructor and options. /document covers document sessions and snapshots. /extensions covers plugin contributions. /rendering, /syntax and /keymap expose those integration contracts. /shiki supplies Shiki highlighting and theme conversion. /testing provides testing helpers. The reference also documents other exported public declaration entry points.

Import @singapore-editor/core/style.css for the editor. Packages with visual UI, including gutters, find, minimap, diff, Markdown, scope lines and panes, expose their own stylesheets. Check the package manifest and guide for the entry point to import.

The editable core, worker syntax, language-server integrations, framework adapters and read-only paged viewer exist today. The collab package contains a host-ordered text core; full collaborative editor and network integration remain separate planned work. Vim mode, multibuffers and editable paging remain plans.

Follow the roadmap for planned work and send contributions to Fregat.