0.2.0 • Published 18h ago
@mostajs/voxstudio
Licence
AGPL-3.0-or-later
Version
0.2.0
Deps
0
Size
13 kB
Vulns
0
Weekly
0
@mostajs/voxstudio
Auteur : Dr Hamid MADANI drmdh@msn.com
VoxStudio — Podcast, Streaming & Interactive Discussions. Cœur métier mince, zéro-dépendance, du média d'une pépinière : émissions, épisodes (podcasts), lives programmés (un live = un événement à QR via @mostajs/events), réussites célébrées (liées aux fiches entreprises). Phase 1 = catalogue éditorial ; le live temps réel (régie/MCU/SFU, @mostajs/media-*) se branche en Phase 2. La diffusion vers les réseaux sociaux est déléguée à @mostajs/social-publish.
import { createVoxStudio, createMemoryRepositories } from '@mostajs/voxstudio';
const vox = createVoxStudio({ repositories: createMemoryRepositories(), events });
const show = await vox.shows.create({ title: 'Paroles d\'Entrepreneurs', kind: 'talkshow' });
const ep = await vox.episodes.create(show.id, { title: 'Ép. 1', mediaUrl: '/media/ep1.mp3', mediaKind: 'audio' });
await vox.episodes.publish(ep.id);
await vox.live.schedule({ showId: show.id, title: 'Live #1', makeEvent: true, capacity: 100 });
await vox.stories.celebrate({ companyId, title: 'StartupDZ diplômée', kind: 'graduation', featured: true });Tests : npm test (@mostajs/mjs-unit). Licence : AGPL-3.0-or-later.