Publishing
Sora-Market is the official plugin catalog. It holds bilingual entry manifests, hosts the .ddp artifacts on GitHub Releases, and publishes a signed registry.json to GitHub Pages. The Sora app reads that registry for Plugins → Market.
This page covers the entry format, artifact hosting, the publish/sign/validate flow, and the review rules.
Catalog layout
| Path | Purpose |
|---|---|
entries/plugin/, entries/skill/, entries/mcp/ | One JSON manifest per entry; registry.json is generated, never hand-edited |
icons/ | Entry icons (<name>.png, ≤ 128 KB) |
previews/ | Optional plugin portrait previews |
keys/market-public.pem | ECDSA P-256 public key that verifies the registry signature |
scripts/ | publish.mjs, sign.mjs, validate.mjs, verify-ddp.mjs |
.github/workflows/ | PR schema validation, signed Pages deployment, daily artifact re-verification |
The generated registry.json has this shape:
{
"schemaVersion": 3,
"generatedAt": "2026-11-30T00:00:00Z",
"keyId": "ec256:0123456789abcdef",
"entries": [ /* entry objects */ ]
}| Field | Rule |
|---|---|
schemaVersion | Must be 3 |
generatedAt | Set by publish.mjs |
keyId | ec256: plus the first 16 hex characters of SHA-256 over the market public key DER |
entries | 1–512 entries; the whole file must stay under 2 MB |
The registry is signed with the market private key (registry.json.sig), and the app verifies the signature with the public key before showing entries.
Entry schema (v3)
{
"type": "plugin",
"id": "io.github.sadami3066.sora.plugin.hello",
"version": "0.1.0",
"name": { "zh": "你好", "en": "Hello" },
"summary": {
"zh": "一句话说明用途",
"en": "One line about what it does"
},
"description": {
"zh": "两到四行说明用途与限制。",
"en": "Two to four lines explaining usage and limits."
},
"icon": "icons/hello.png",
"tags": { "zh": ["示例", "工具"], "en": ["Example", "Utility"] },
"artifact": {
"url": "https://github.com/Sadami3066/Sora-Market/releases/download/plugins-v0.1.0/hello-0.1.0.ddp",
"sha256": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 1
},
"plugin": {
"apiLevel": 7,
"minHostVersion": "0.1.0",
"publisherKeyId": "ed25519:0000000000000000000000000000000000000000000000000000000000000000",
"publisherName": "Your Name",
"requiredAccess": "normal",
"version": "0.1.0"
},
"category": "dev"
}| Field | Required | Rule |
|---|---|---|
type | Yes | plugin, skill, or mcp; must match the directory |
id | Yes | Unique across entries; for plugins it must equal the id inside the .ddp manifest |
version | Yes | Semver string; for plugins it must equal plugin.version and the artifact file name |
name | Yes | { zh, en }, both non-empty |
summary | Yes | { zh, en }, both non-empty |
description | Yes | { zh, en }, both non-empty; user-facing copy, no developer notes |
tags | Yes | { zh: [...], en: [...] }, non-empty string arrays; 2–4 tags per language |
category | No | One of office, content, dev, study, research, business, design, life |
icon | No | icons/<name>.png, PNG, ≤ 128 KB. publish.mjs appends ?v=<12-hex content hash> |
artifact.url | Yes | https:// URL of the public artifact |
artifact.sha256 | Yes | 64 lowercase hex characters, matching the file byte for byte |
artifact.size | Yes | Positive integer byte size; plugins ≤ 50 MB, skills ≤ 20 MB |
plugin | Yes for plugins | Plugin identity block, see below |
skill | Yes for skills | license and source (https://) |
mcp | Yes for MCP | url (https://), transport: "http", headers, auth/authHint |
Plugin block:
| Field | Rule |
|---|---|
plugin.version | Must equal the top-level version |
plugin.apiLevel | Must be 7 |
plugin.minHostVersion | At least "0.1.0" and not higher than the current host version |
plugin.publisherKeyId | ed25519: plus 64 lowercase hex characters; must equal the keyId in the package signature |
plugin.publisherName | Optional display name; the client falls back to the first 12 characters of the keyId |
plugin.requiredAccess | normal, adb, or root; must state the tier the plugin truly needs |
plugin.previews | Optional 1–6 HTTPS portrait images (9:20), 1080×2400 recommended |
MCP entries accept only remote HTTP endpoints. The registry stores no credentials and no local commands.
Artifact hosting and naming
Plugins are distributed as GitHub Release assets:
| Item | Convention |
|---|---|
| Release tag | plugins-v<version> for a plugin suite release, e.g. plugins-v0.1.0 |
| Asset name | <module>-<version>.ddp, e.g. amap-0.1.0.ddp |
| Checksums | Upload a SHA256SUMS.txt next to the assets |
| Stability | The URL must stay publicly downloadable long term; GitHub Releases are preferred |
The asset name, entry.version, plugin.version, and the version inside assets/plugin.json must all match. A mismatch is caught by the validator and by the daily artifact check.
Compute sha256 and size
sha256sum amap-0.1.0.ddp
wc -c < amap-0.1.0.ddpPut the exact lowercase hex digest into artifact.sha256 and the byte count into artifact.size. Never estimate the size from a build log: the number is verified against the downloaded file.
Publish flow
Requirements: Node.js ≥ 22 and git. The scripts use only the Node standard library, so there is nothing to install.
- Build and sign. Bump
versionandversionName, updateversionCode, and produce the bundle:
./gradlew assemblePlugin signPlugin verifyPluginCreate the release and upload the artifact. Create tag
plugins-v0.1.0, upload every<module>-0.1.0.ddpandSHA256SUMS.txt.Update the entry. Edit
entries/plugin/<id>.json:version,plugin.version,plugin.minHostVersion,artifact.url,artifact.sha256,artifact.size, and refresh the bilingual copy. Put icons inicons/and previews inpreviews/.Regenerate the registry.
node scripts/publish.mjsThis validates each entry's type against its directory, appends content hashes to local icons, and writes registry.json with schemaVersion: 3 and the market keyId.
- Sign the registry with the market private key:
node scripts/sign.mjs --key /secure/market-private.pem
# or: node scripts/sign.mjs --key-env MARKET_SIGNING_KEYThe output is registry.json.sig, a SHA-256 signature verified with keys/market-public.pem.
- Validate everything, including the downloaded artifacts:
node scripts/validate.mjs --pub keys/market-public.pem| Flag | Effect |
|---|---|
--pub <path> | Public key used to verify the registry signature (default keys/market-public.pem) |
--in <path> / --sig <path> | Validate a different registry/signature pair |
--schema-only | Schema checks only; skips signature and artifact download |
--no-sig | Skips the registry signature check but still checks artifacts |
--skip-artifacts | Skips downloading artifacts |
--tolerate-network | Downgrades transient network failures to warnings |
For plugins, validation downloads each .ddp, re-checks its SHA-256 and size, then verifies the internal manifest (id, version, apiLevel, minHostVersion) and the Ed25519 publisher signature, including that publisherKeyId matches the signature keyId. For flags that skip checks, pull requests still run schema validation in CI.
- Open a pull request against
Sora-Market. If schema validation fails in PR CI, fix the entry; maintainers review against the checklist below. After merge, the release workflow signsregistry.jsonwith the market key, deploys it to GitHub Pages, and verifies the live endpoint byte for byte. A daily workflow re-checks every published artifact.
Publisher identity
The publisher keyId is the Ed25519 fingerprint of the signing key:
openssl pkey -pubin -in plugin-signing.pub -outform DER | sha256sumsignPlugin prints the same value as publisher keyId. The marketplace entry, the package signature, and the trust store all use it:
- The first install records
keyId → publicKeywith trust on first use. - Updates under the same plugin
idmust use the same key. A new key is a new publisher: automatic upgrades are refused. plugin.publisherKeyIdmust match the signature exactly; the validator rejects a mismatch before review.
One key per publisher is the norm. Do not generate a key per plugin; users and the marketplace treat it as the same publisher either way.
Version upgrades
| Rule | Detail |
|---|---|
Same id | An update stays under the same plugin id |
| Higher version | The new version must be greater than the published one; plugin.version and the asset file name follow it |
| Same publisher key | The new bundle must be signed with the key already recorded for that publisher |
| Match everything | entry.version = plugin.version = assets/plugin.json version = <module>-<version>.ddp |
minHostVersion | Raise it only when the plugin truly needs a newer host |
| Migration notes | Update entries describe behavior changes and migration steps in bilingual copy |
keyId change | Only for a deliberate publisher identity change; existing installs stop receiving updates |
Review checklist
Maintainers review every entry against these rules:
- [ ] The source is publicly accessible and the license allows redistribution (MIT, Apache-2.0, CC-BY or similar), with the LICENSE or a source link kept in the repository.
- [ ]
artifact.sha256matches the release file; the size is reasonable (plugins ≤ 50 MB, skills ≤ 20 MB). - [ ] The release tag and asset name follow the convention (
plugins-v<version>,<module>-<version>.ddp). - [ ]
entry.version,plugin.version, and the asset file name all match. - [ ] The package signature is valid,
plugin.publisherKeyIdmatches^ed25519:[0-9a-f]{64}$, and it equals thekeyIdinMETA-INF/plugin-signature.json. - [ ]
plugin.apiLevelis7;plugin.minHostVersionis at least0.1.0and not higher than the current host. - [ ]
plugin.publisherName, when present, belongs to the same publisher aspublisherKeyId. - [ ]
plugin.requiredAccesstruthfully states the access tier (normal/adb/root), and plugins that need Root explain why. - [ ]
plugin.previews, when present, are 1–6 HTTPS portrait images (9:20) that match the plugin. - [ ]
categoryis one of the allowed values and matches the plugin's purpose. - [ ]
name,summary,description, andtagshave bothzhanden; the English reads naturally, with no developer notes or internal links; each language has 2–4 tags. - [ ] The icon is a PNG ≤ 128 KB with a traceable source; its
?v=hash matches the file content.
Policy
Listed entries must add real capability to Sora: plugins, skills, and remote MCP connectors. Prohibited content includes:
- Malicious or destructive behavior: stealing credentials, chats, or files; undisclosed data exfiltration; destroying user data; bypassing system permissions; silent installs; hidden behavior; privilege-escalation backdoors.
- Credential abuse: shipping other people's accounts, using stolen API keys, signing in to third-party accounts on a user's behalf, or collecting private data unrelated to the plugin's function.
- Serious mismatch with the description: advertised features that do not match the actual tools, skills, or pages, or undeclared capabilities smuggled into the package.
- Infringement and violations: piracy, cracking, or content that breaks local law or platform terms. Brand icons may only identify their source.
Maintainers may remove entries for security, infringement, breakage, or policy violations. Installed plugins are never uninstalled remotely; the app stops offering updates for a removed entry. A publisher whose trusted key turns destructive can be blocked, and later entries from it are refused.
Publishers are responsible for their plugin's behavior, license, and updates. Plugins run in the same process and with the same permissions as the app, so the install page shows the publisher, signature, and declared capabilities; users should only install from sources they trust.
