Skip to content

Package format and distribution ​

A plugin package binds identity, executable profile, capability requests and payload bytes into a reviewable artifact. Build it from source; do not hand-edit a ZIP after its payload hashes have been computed.

Container layout ​

The template emits this root layout:

text
plugin.json
plugin.wasm
page.nxml

Do not wrap these files in another directory. Each declared payload has a normalized relative path, exact byte length and SHA-256. Duplicate entries, traversal paths, symlinks and undeclared replacement assets must not become a way to change verified bytes. The actual admission policy is owned by the Host.

Manifest fields used by the executable example ​

FieldMeaning and author action
manifestVersionContainer manifest schema; the current example uses 1
pluginId / pluginVersionStable author-controlled identity and package version; keep qualified registration IDs consistent
bootstrapVersionLoading contract version, currently 1; not the SDK package version
entryManaged entry descriptor retained in the schema; the Wasm example leaves assembly/type empty
targetRuntime profile plus OS/architecture restrictions; the example uses nexa-wasm-1
declaredAbiCandidatesStable ABI candidates; the example declares [100]
requiredDependencies / optionalDependenciesDependency declarations used during admission and group coordination
conflictsDeclared incompatibilities; do not silently assume conflicting loads can coexist
requestedPermissionsExact permissions the plugin asks the Host to grant
requiredCapabilities / optionalCapabilitiesContract IDs and minimum versions needed for mandatory/optional features
webAssemblyEntryPathRelative path of the executable module
declarativeEntryPathOptional declarative content entry for the supported content profile
payloadsPaths, sizes and digests computed from the actual payload bytes

eng/build_wasm_sample.py in the SDK and eng/build.py in the template are the executable examples of constructing these fields. The template deliberately exposes a smaller plugin.config.json; its builder fills the complete manifest. If you need new dependency or target metadata, extend the builder and validation together.

Profiles and assets ​

nexa-wasm-1 is an import-free WebAssembly module. Static assets are opened through verified package file references. nexa-content-1 uses a declarative content entry without a code entry. A managed DLL does not become an allowed production profile by changing its extension or manifest string.

The guest binary format and declarative schema are documented in Wasm SDK. A plugin archive and an SDK bundle are different artifacts: do not install the SDK bundle as a plugin or include its NuGet packages in the guest package.

Consume an immutable SDK bundle ​

The public SDK release includes two NuGet packages, headers, contracts, examples and documents. sdk-manifest.json identifies the source and package versions; SHA256.json covers its other members. Consumers pin the release filename, commit, size and outer digest, then validate the member digests and manifest identity.

Use the bundle's packages/ directory as a local NuGet source alongside nuget.org when compiling managed contract code. Publication on GitHub Releases does not imply those packages are available from nuget.org. No private Sidecar checkout is required.

Separate integrity from trust ​

Checksums establish byte identity, not publisher authenticity. Local unsigned packages need explicit developer admission. Production Market delivery additionally needs authenticated acquisition, publisher/entitlement verification and Host policy. The SDK cannot manufacture those approvals or hold Market private keys.

Approved cached content can support offline use only under the Host's actual policy. See offline design and test and release before describing your package's distribution guarantees.


Source: NexaCL-Plugin-SDK · Apache-2.0.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.