Genesis

Packages

@marktiderman/genesis-config

0.13.0Foundation · Coreessential

Genesis configuration (formerly genesis-features): a typed feature registry, `defineFeatures` and `defineFlags` in one `features.ts` that running code imports, plus the AGENTS.md and JSON generators. `genesis features build|check` keeps the generated output in step. See packages/features/README.md.

> Formerly `@marktiderman/genesis-features`, renamed in place (same source, same subpaths, same > formats). The old name is a deprecated re-export for two minor versions > (packages/features-alias); `genesis upgrade` moves an app's imports.

A repo's features in one typed code file that running code imports. Every other format (the AGENTS.md pointer, `features.json`, an OpenFeature `flags.json`, the agent skill, a README section, the admin page) is generated from it, and `genesis features check` fails CI when a generated copy is stale or the registry and the code disagree.

pnpm add @marktiderman/genesis-config

READMEChangelognpm

@marktiderman/genesis-config
Genesis configuration (formerly genesis-features): a typed feature registry, `defineFeatures` and `defineFlags` in one `features.ts` that running code imports, plus the AGENTS.md and JSON generators. `genesis features build|check` keeps the generated output in step. See packages/features/README.md.

Other exports (80)

AGENTS_BLOCK_END · AGENTS_BLOCK_START · APP_LOCK_LAYERS · BlockError · BrokenBlockError · catalogueFromManifest · catalogueManifest · CONTENT_PACK_FIELD_TARGETS · contentPackBlocks · ContentPackError · contentPackProblems · cycleProblems · DEFAULT_PRESET · defineBlock · defineContentPack · defineFeatures · defineFlags · defineSettings · dependencyOrder · expiredFlags · FEATURE_HORIZONS · FEATURE_KINDS · FEATURE_LAYERS · FEATURE_PLATFORMS · FEATURE_STATUSES · featureKind · featureLayer · FeatureOff · featureOn · featurePackageLayer · FeatureRegistryError · featureSchema · findFeatures · FLAG_KINDS · flagSchema · flagsForFeature · fromSnapshot · gateSnapshot · isLockedEntry · isPresetDefaults · isSnapshotStale · MARKETING_BLOCK_END · MARKETING_BLOCK_START · marketingRecords · OPENFEATURE_MANIFEST_SCHEMA · overlayUpstream · PACKAGE_GROUPS · PACKAGE_LAYERS · packageLayerProblems · readAgentsBlock · readOverlayMarker · readPackageMeta · replaceAgentsBlock · requireFeature · requirementProblem · requiresProblems · resolveBlocks · resolveSettings · SCOPE_LAYERS · SETTING_KEY · SETTING_TYPES · SETTINGS_LAYERS · SETTINGS_PRESETS · settingsCatalogue · SettingsError · settingsFromManifest · settingsGateContext · settingsLayerFromFile · settingsLayerFromRows · settingsSecrets · settingValueProblem · SHIPPED_STATUSES · statusOn · toAgentsMarkdown · toJson · toMarketingMarkdown · toOpenFeatureManifest · toRecords · toSkillMarkdown · withSettings

And 81 types.

@marktiderman/genesis-config/blocks

Other exports (3)

BlockError · defineBlock · resolveBlocks

And 12 types.

@marktiderman/genesis-config/gate

Other exports (7)

FeatureOff · featureOn · fromSnapshot · gateSnapshot · isSnapshotStale · requireFeature · SHIPPED_STATUSES

And 9 types.

@marktiderman/genesis-config/gate/react

Components (1)

  • FeatureGateBeta

    Renders `children` when the feature is on; `upsell` when a plan would turn it on; otherwise `fallback`.

Hooks (1)

  • useFeature

    The gate's answer for one feature. Outside a {@link FeatureGateProvider} this throws: a missing provider would otherwise turn every feature off without a word.

Other exports (1)

FeatureGateProvider

@marktiderman/genesis-config/settings

Other exports (23)

APP_LOCK_LAYERS · catalogueFromManifest · catalogueManifest · DEFAULT_PRESET · defineSettings · isLockedEntry · isPresetDefaults · resolveSettings · SCOPE_LAYERS · SETTING_KEY · SETTING_TYPES · SETTINGS_LAYERS · SETTINGS_PRESETS · settingsCatalogue · SettingsError · settingsFromManifest · settingsGateContext · settingsLayerFromFile · settingsLayerFromRows · settingsSecrets · settingValueProblem · SETUP_STEP_ID · withSettings

And 21 types.

@marktiderman/genesis-config/settings/react

Components (1)

  • GenesisSettingsBeta

    The Settings screen. See the module header.

Other exports (1)

GENESIS_SETTINGS_COPY

And 2 types.

@marktiderman/genesis-config/settings-protocol

Other exports (15)

APP_HOST_CAPABILITIES · auditValuesVisible · canSetSecret · createSettingsClient · intersectCapabilities · NO_SETTINGS_CAPABILITIES · preferredWriteLayer · safeHref · secretNames · settingFileSnippet · SETTINGS_CLIENT_MESSAGES · SETTINGS_OPS · SETTINGS_PROTOCOL_VERSION · SettingsProtocolError · settingWritability

And 37 types.

@marktiderman/genesis-config/node
`buildFeatureOutputs` and `checkFeatureOutputs`, the file-system half that `genesis features build|check` runs.

Other exports (6)

blankComments · buildFeatureOutputs · checkFeatureOutputs · globToRegExp · scanFlagReads · summarizeCheck

And 5 types.

@marktiderman/genesis-config/react
`FeatureList`: the registry as a genesis-ui ResourcePage — a table, a board grouped by status, filters by app and audience. genesis-ui, React and lucide-react are optional peers, loaded only by this subpath.

Components (1)

  • FeatureListBeta

    A repo's features as a page. The default (`variant="admin"`) is a ResourcePage over static data: a table, and in its grid view a board grouped by status, with status chips, filters by app, audience and visibility, search, and a detail pa...

Other exports (1)

FeatureStatusBadge