Skip to content
SheetForge

Web plugin market

The web app has a plugin market that installs SheetForge plugins into the browser. A separate path sideloads an unreviewed plugin from a GitHub URL. The same market, drawn the same way, also ships inside Unity as a dialog of the Data Studio.

Install a plugin

Install a plugin from the market's catalog. Every download is checked against the hash recorded when the plugin was approved, as Hash check describes.

Install in the web app

  1. In the sheet list on the left, press Browse plugins at the bottom. On a narrow screen, first open the sheet list with the button at the left end of the toolbar.
  2. On the Browse tab, press Install on the plugin's card. You can also press the card to open its details and press Install there.

The install starts at once, with no confirmation. The market shows each step as it runs: the download, the hash check and the hand-off to the core. When it finishes, the card shows Installed, and its button reads Install again.

The plugin's cell types, enums and other contributions join the session right away. The plugin is listed on the My plugins tab as enabled, and it loads by itself on later visits. See Caching.

If the download cannot go through, the market offers Open the download page and Choose the downloaded file. See Upload a downloaded file.

Install in Unity

  1. Open the market. Press Browse plugins in the Data Studio sidebar, or choose Tools ▸ SheetForge ▸ Plugin Market.
  2. On the Browse tab, press Install on the plugin's card or in its details.
  3. A confirmation dialog, Install this plugin?, opens. Press Download and continue to go on, or Cancel to stop.

SheetForge downloads the file and checks its hash. A .unitypackage then opens Unity's package import window, where you review the contents. The plugin counts as installed once that import finishes.

A zip file cannot be imported directly. SheetForge says where it saved the file, and you unzip it into the project's Assets folder.

Unity differs from the web app in two ways. It asks for confirmation before it downloads, and it has no Presets tab. The market inside Unity describes the dialog.

Sideload a plugin

Sideload a plugin that is not in the catalog. Nobody has reviewed a sideloaded plugin, and there is no approved hash to check it against. Load only code whose source you trust.

Sideload in the web app

  1. Press Browse plugins, then open the My plugins tab.
  2. Hand the app the plugin:
    • From a file: under Upload a .dll yourself, drop the DLL on the box that reads Drop a .dll file here, or press Load a plugin (.dll).
    • From GitHub: paste the URL under Import from a GitHub release and press Fetch.
  3. The first time, a dialog asks Load code that nobody reviewed?. Press I understand — continue.

The plugin appears under Uploaded by you with the Unreviewed badge. Its row has an on and off switch, and a ✕ button that removes the plugin and deletes the stored file.

Sideload in Unity

Open the market, then the My plugins tab.

  • To install a file you already have, drop a .unitypackage or .zip on the upload box, or press Install from file…. A dialog, Install this file?, asks first.
  • To import from GitHub, paste the URL of a source repository or a release DLL into the field beside Import from GitHub…, then press that button. Only GitHub URLs are accepted.

Neither path is reviewed or hash-checked. The code runs in the editor with full trust.

Disable or remove a plugin

In the web app, press Browse plugins and open the My plugins tab. Each plugin's row has a switch that turns the plugin off, and a ✕ button that takes it out. Remove in a plugin's details does the same.

Disabling or removing a plugin takes effect immediately. The app tells the core to drop that assembly from the plugin composition and rebuild the session. The plugin's cell types, enums, templates, color presets, studio actions and canvas overrides disappear without a refresh.

.NET itself never unloads an assembly. The bytes stay resident in the page, inert. If you enable the same plugin again, the core reactivates the resident assembly instead of loading it a second time.

In Unity, removing a plugin deletes the folders that its install put into the project.

Not undoable

Ctrl+Z cannot bring the deleted folders back. Anything of your own inside them is deleted too.

  1. In the market, press Remove on the installed plugin's card or in its details.
  2. A dialog, Remove this plugin?, lists every folder that goes. Press Delete the folders.

The install record goes with the folders, so the plugin no longer counts as installed. If a folder cannot be deleted, a dialog names it. Close whatever is using it, then press Remove again.

The registry

The market listing comes from a single static registry file, public/registry/plugins.json. Both the web app and the market dialog inside Unity read it. There is one list, so the two surfaces always show the same catalog.

SheetForge does not host other authors' plugin binaries. Each author's own GitHub release does. A registry entry is metadata plus a pinned hash, not a copy of the plugin.

The one exception is SheetForge's own Plugin Demo. Its files are hosted next to the registry file. Its Unity package is a byte-for-byte copy of the example package that ships inside SheetForge. See Plugin demo.

Hash check

Every registry entry carries the SHA-256 captured when the plugin was approved. On acquisition, every received byte is checked against that hash before it ever reaches the core. A one-byte mismatch is refused.

The hash check is what makes it safe for the binary to live on someone else's GitHub. The release can be downloaded again from anywhere, but only the exact approved bytes are ever loaded.

Downloads through the server proxy

Browsers cannot fetch GitHub release assets directly, because cross-origin (CORS) rules block it. A registry install goes through a server-proxy route instead. The route fetches the release on the server and streams it back.

Where the proxy lives

The server-proxy route is api/market/artifact. It is wired through the ArtifactProxy in lib/market/install.ts.

Upload a downloaded file

A manual download-and-upload path remains as a secondary fallback for when the proxy cannot reach a release. Press Open the download page, download the file, then press Choose the downloaded file. The file passes the identical hash check. An uploaded file is trusted no more than a proxied one.

Compatibility gate

Passing the hash check proves that the bytes are the approved ones. It says nothing about whether this host can read that plugin's format. That is a second, separate question. The compatibility gate answers it after the integrity check and before registration.

The answer comes from the verified DLL itself. The DLL carries an assembly-level declaration. The declaration names the plugin-format generation the plugin was built for and the lowest host version it wants.

Which values the gate reads

A registry entry carries the same two values, pluginFormat and minHost, so the catalog can show them before you download. The gate itself reads the declaration out of the bytes that passed verification. A listing can be out of date. A compiled declaration cannot be.

One gate for three paths

Market install, sideload and a plain local file all ask the same predicate. No route can quietly accept what another refuses.

Refused assemblies

The gate is all or nothing per assembly. A refused assembly registers nothing, never half its contracts. The refusal names what the assembly declared against what this host reads.

Assemblies with no declaration

A plugin built before the assembly-level declaration existed is read as the earliest generation with no host requirement. It loads exactly as it always did.

Caching

Bytes that pass the hash check are cached in the browser, in IndexedDB. A plugin that is enabled in the list loads automatically on later visits. You enable it once.

Safeguards for a GitHub URL

Separately from the curated registry, you can hand the app an arbitrary GitHub URL to sideload an unreviewed plugin, as Sideload a plugin shows. The web app's server fetches that URL for the browser.

Where the sideload code lives

The sideload code is lib/market/sideload.ts, and the api/market/github route serves it.

URL restrictions

This path takes a user-supplied URL rather than a vetted registry entry. It is therefore the one place that enforces SSRF defense directly.

The URL must resolve to a GitHub-family domain, such as github.com, raw.githubusercontent.com, release-assets.githubusercontent.com and the like. The domain is lowercased and matched exactly.

Redirects that would leak into an internal network are blocked at that boundary.

Separate cache

Sideloaded artifacts are cached under a distinct owner tag, sideload:. An unreviewed plugin that happens to share bytes with a registry entry is kept separate from the curated one. A sideload never masquerades as an approved plugin.

Registry install and sideload compared

GitHub is the import source for both paths. Both route plugin bytes through the same pipeline.

PathWhere the bytes come fromIntegrity check
Registry installThe artifact hosted on the author's GitHub release, pulled through the server proxyAgainst the pinned SHA-256
SideloadA raw GitHub URL, guarded to GitHub-family domainsThe bytes are checked the same way

In both cases the browser's CORS limitation on GitHub release assets is handled on the server. Integrity is preserved by the hash check on the client, before the core loads anything.

The market inside Unity

The Unity plugin market is a dialog inside the Data Studio, drawn like the web market: Browse and My plugins tabs, and a card grid beside a detail pane. The sidebar's Browse plugins and Tools ▸ SheetForge ▸ Plugin Market open the same dialog. The menu opens the Data Studio first. Browse plugins shows how many plugins the market installed into the project.

The dialog reads the same static registry. It has the same hash-mismatch rejection and the full-trust install notice. Before anything downloads, the details show the registry's compatibility advisory: a plugin format newer or older than this build reads, or a minimum SheetForge version.

An install's download, check and import steps, and a failure, appear inline in the details. An install counts as installed only once Unity's package import finishes, so cancelling the import window leaves nothing behind. It stays installed only while a folder that the install put into the project is still there.

When you open the market, it forgets an install record whose folders are all gone. It also forgets a record from an earlier version of SheetForge, which kept no folders. The Console gets one line for each record it forgets. Such a plugin then shows as not installed, even while its files are still in the project.

If the project does not compile after an install, the plugin's card says so and points you to the Console. The notice stays until the project compiles again.

My plugins lists what the market installed into the project and takes a .unitypackage or .zip dropped onto its upload card. While nothing is installed yet, it offers Browse the market. When the machine is offline, the Browse tab says so and reads the list again by itself as soon as the connection is back.

Sign-in and the browser-kept plugin list and presets stay web-only. The Unity dialog is where you browse, install and remove plugins.

Next steps