updated 2026-11-26·2 min read
TypeScript API: Manifest Specification
TypeScript ExtensionManifest and ExtensionIconConfig interfaces, JSON example, and SemVer/kebab-case validation rules.
Every Noether extension and theme must include a manifest.json file in its root folder. This document details the TypeScript type definitions, JSON schema, and validation rules.
1. TypeScript Interface
export interface ExtensionManifest {
/** Unique lowercase hyphenated identifier (e.g., 'word-counter') */
id: string;
/** Human-readable display title */
name: string;
/** Version string (e.g., '1.0.0' or '1.0.0.1') */
version: string;
/** Brief overview of functionality (40-160 characters) */
description: string;
/** Minimum host application version required (e.g., '0.2.0') */
minAppVersion?: string;
/** Author or maintainer name */
author?: string;
/** Link to author's GitHub profile or website */
authorUrl?: string;
/** Discovery and categorization tags */
tags?: string[];
/** Primary marketplace category */
category?: string;
/** Source repository URL */
repoUrl?: string;
/** Icon name, structured styling configuration, or React node */
icon?: string | ExtensionIconConfig | React.ReactNode;
/** Optional standalone icon styling configuration */
iconConfig?: ExtensionIconConfig;
/** Relative path or URL to preview banner */
bannerImage?: string;
/** Full markdown readme shown in details view */
readme?: string;
/** Whether a core extension defaults to disabled on fresh installations */
defaultDisabled?: boolean;
/** Reserved for internal host extensions */
isCore?: boolean;
}
export type ExtensionIconBackgroundType = 'solid' | 'gradient';
export interface ExtensionIconConfig {
/** Icon glyph name (any HugeIcon name or SVG string; emojis are disallowed) */
name?: string;
/** Background fill style: 'solid' or 'gradient' */
type?: ExtensionIconBackgroundType;
/** Background hex color for solid fills or automatic 2-stop gradient generation */
backgroundColor?: string;
/** Array of colors for linear gradients */
gradientColors?: string[];
/** Angle in degrees or direction string (defaults to '135deg') */
gradientDirection?: number | string;
}
2. Example manifest.json
{
"id": "word-counter",
"name": "Live Reading Time Counter",
"version": "1.0.0",
"minAppVersion": "0.1.0",
"description": "Calculates estimated reading time for your active note in the status bar.",
"author": "Noether Docs",
"authorUrl": "https://github.com/example",
"tags": ["productivity", "writing"],
"icon": {
"name": "clock-01",
"gradientColors": [
"#0ea5e9",
"#0284c7"
],
"gradientDirection": "135deg"
}
}
3. Validation Rules
- ID Format: Must match
^[a-z0-9-_]+$(lowercase alphanumeric, hyphens, and underscores). - Version: Matches
^\d+(\.\d+)+(-[a-zA-Z0-9.]+)?$(multi-part SemVer or four-part version string). - Core Isolation: Community extensions loaded via
ExternalExtensionLoaderalways haveisCoreforced tofalse.