OKHAM.org Documentation EnglishCastellano

February 2026 edition

Okham App Artifact v1 Specification

Disclaimer: This document is non-normative and describes recommended practices for the OKHAM ecosystem.

Version 1.0.0

Status: DRAFT

Overview

App Artifacts v1 define a secure, sandboxed way to distribute and execute UI components (apps, games, widgets, tools) within the Okham portal. Artifacts are obtained via MCP (Model Context Protocol) and executed in isolated sandboxes to prevent security risks.

Artifact Structure

An App Artifact consists of:

  1. Manifest JSON: Metadata and security declarations
  2. Bundle: Compressed archive containing the app's assets (HTML, JS, CSS, images, etc.)

Manifest Schema

{
  "id": "string",
  "name": "string",
  "version": "string (semver)",
  "kind": "game|widget|tool|demo",
  "entry": "string (filename, e.g. 'index.html')",
  "permissions": {
    "network": "boolean (default: false)",
    "storage": "boolean (default: false)",
    "toolCalls": "array of strings (default: [])"
  },
  "integrity": {
    "sha256": "string (hex hash of bundle)",
    "signedBy": "string (optional, future use)"
  }
}

Field Descriptions

  • id: Unique, stable identifier (e.g., "snake-game", "weather-widget")
  • name: Human-readable display name
  • version: Semantic version string (e.g., "1.0.0")
  • kind: App category for UI classification
  • entry: Main HTML file to load in the runner
  • permissions:
    • network: Whether app can make external HTTP requests
    • storage: Whether app can use localStorage/sessionStorage
    • toolCalls: Array of allowed MCP tool names (e.g., ["weather.get", "calendar.create"])
  • integrity:
    • sha256: SHA256 hash of the bundle file
    • signedBy: Reserved for future code signing

MCP Resource Protocol

Artifacts are distributed via MCP Resources using the OKHAM App Resource Profile.

Note: The app:// URI scheme is an OKHAM-specific resource profile that uses MCP's standard resource mechanism. It is not an extension of the MCP specification itself.

Resource: app://catalog (OKHAM Resource Profile)

Returns a JSON array of available apps:

[
  {
    "id": "snake-game",
    "name": "Snake Game",
    "version": "1.0.0",
    "kind": "game"
  }
]

Resource: app://{id}/manifest

Returns the manifest JSON for a specific app.

Resource: app://{id}/bundle

Returns the bundle as binary data (ZIP format).

Bundle Format

  • Format: ZIP archive
  • Structure: Flat or hierarchical, must contain the entry file
  • Size Limits:
    • Max compressed: 10MB
    • Max uncompressed: 50MB (zip bomb protection)
  • Content Types: HTML, JS, CSS, images (PNG, JPG, SVG), fonts (WOFF2)

Security Model

  1. Integrity Verification: SHA256 hash must match allowlist
  2. Allowlist Enforcement: Only explicitly allowed apps/versions can run
  3. Sandbox Execution: iframe with strict sandbox attributes
  4. Permission Model: Minimal permissions by default
  5. Communication Protocol: Controlled postMessage channel

Example Manifest

{
  "id": "snake-game",
  "name": "Classic Snake Game",
  "version": "1.0.0",
  "kind": "game",
  "entry": "index.html",
  "permissions": {
    "network": false,
    "storage": true,
    "toolCalls": []
  },
  "integrity": {
    "sha256": "a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3"
  }
}