Skip to content

Getting Started

This section covers everything you need to get Motif running and start creating adaptive soundtracks for games.

  • Node.js 22 or later
  • pnpm 10 or later (for monorepo development)
  • A modern browser (Chrome, Firefox, or Edge) for the Studio app

If you want to use Motif packages in your own project, install from npm:

Terminal window
npm install @motif/schema @motif/clip-engine @motif/runtime-pack

All 16 packages are published individually under the @motif scope. Pick only what your project needs:

PackageUse when you need
@motif/schemaTypes, Zod validation, parse/validate
@motif/clip-engineClip composition, transforms, cue scheduling
@motif/music-theoryScales, chords, motifs, intensity
@motif/sample-labAudio import, trim, slice, kit/instrument building
@motif/scene-mapperTrigger evaluation and scene resolution
@motif/runtime-packExport/import runtime packs for game engines
@motif/automationLanes, macros, envelopes, capture
@motif/libraryTemplates, snapshots, branches, favorites, compare
@motif/audio-engineSample playback and voice management
@motif/playback-engineMixing, effects, rendering
@motif/instrument-rackSynth and drum voice presets
@motif/score-mapWorld scoring, motifs, profiles, cue families
@motif/asset-indexPack integrity indexing and auditing
@motif/reviewSummaries and audit helpers
@motif/uiShared UI components
@motif/test-kitFixtures and test utilities

Clone and build the full monorepo to develop locally or run the Studio:

Terminal window
git clone https://github.com/mcp-tool-shop-org/motif.git
cd motif
pnpm install
pnpm build
pnpm test # 663 tests across all packages
pnpm dev # Start the Studio dev server

The Studio opens in your browser at http://localhost:3000. All packages are built with Turborepo for fast incremental builds.

After building, run the full verification suite:

Terminal window
pnpm verify # lint + typecheck + test + build

If all steps pass, your environment is ready.