Default module set (documented in docs/DEFAULT-MODULES.md):
CI / Build & Test (push) Successful in 8m10s

Category	Modules
Runtime
bare, bare-process, bare-module, bare-fs, bare-path, bare-stream
Swarm / data
hyperswarm, hypercore, corestore, hyperbee, hyperdrive, autobase, hyperdb, hyperschema, hrpc, protomux, compact-encoding, b4a
Media
bare-media, bare-ffmpeg, plus codecs via bare-media (jpeg/png/webp/gif/heif/…)
Local power (bundled)
bare-sqlite, bare-fetch
This commit is contained in:
Raven Scott
2026-07-26 23:12:08 -04:00
parent 631f9c4023
commit ee79042e9f
17 changed files with 489 additions and 246 deletions
+31
View File
@@ -0,0 +1,31 @@
/**
* Register capability packs that ship in the default host.
* Static imports so bare-pack always includes bare-media / ffmpeg in the graph.
*/
import * as bareMedia from 'bare-media';
import registry from './capabilities/registry.js';
import mediaMod from './capabilities/media.js';
import { logErr } from './boot.mjs';
export function registerDefaultCapabilityPacks() {
const pack = mediaMod.createMediaPack(bareMedia);
registry.registerPack(pack);
if (typeof pack.onLoad === 'function') pack.onLoad();
logErr('capability pack registered: media');
return ['media'];
}
/** Touch bundled modules so bare-pack + --extract-addons keep them in the host. */
export async function warmDefaultModules() {
// bare-fetch is a dep of bare-media; import explicitly for the default set.
try {
await import('bare-fetch');
} catch (_) {}
try {
await import('bare-sqlite');
} catch (_) {}
try {
await import('bare-ffmpeg');
} catch (_) {}
}