Familiar plugin SDK illustration

Familiar

An SDK for building plugins and panels that run in a Signals & Sorcery engine.

Familiar is the component that lets developers extend an engine with their own processors and user interface panels. It is part of Signals & Sorcery, a coherent set of Rust audio building blocks for audio apps, plugins, players and DAWs.

Repositorygithub.com/shiehn/familiar-plugin-sdk
LicenseMIT, free for commercial and closed-source use
StatusPlanned
LayerExtend and display (how the layers stack)
Crates (planned names)familiar (Rust processors, TypeScript panels)

What it is

An engine becomes a platform when other people can add to it without forking it. Familiar is the contract for those additions. It covers two kinds:

  • Processors: custom audio and MIDI nodes that run inside the engine's graph, written in Rust against Leyline's Node trait, with parameters, state and latency declared up front.
  • Panels: user interface extensions that sit beside the engine, read its state and change it through Grimoire's protocol. A drum editor, a sample browser, a mixing assistant or a controller mapping page.

For both, Familiar provides a manifest (what the extension needs and which protocol versions it supports), a host contract the engine checks on every call, namespaced storage in Tapestry's app data (saved, versioned and undoable with everything else), testing tools (a fake engine that answers the host contract), and templates and examples, including a headless panel driven entirely from a script.

Usage example

Illustrative sketch

Planned, not final. Taken from the READMEopen in new window.

A processor:

use familiar::{processor, Params, Node, ProcessIo, BlockCtx};

#[processor(name = "Bit Crusher", id = "example.bitcrusher")]
struct BitCrusher { #[param(range = 1.0..=16.0, default = 8.0)] bits: f32 }

impl Node for BitCrusher {
    fn process(&mut self, io: &mut ProcessIo<'_>, _ctx: &BlockCtx) { /* audio thread rules apply */ }
}

A panel, in TypeScript against the protocol client:

import { definePanel } from "familiar";

export default definePanel({
  id: "example.track-colours",
  needs: { methods: ["track.list", "intent.apply"], events: ["event.trackChanged"] },
  async activate(host) {
    const tracks = await host.call("track.list");
    await host.call("intent.apply", { name: "app.setColour", params: { track: tracks[0].id, colour: "#7a5cff" } });
  },
});

How it fits in the ecosystem

Familiar is in the extend and display row, beside Glyphwork. Dependencies point down, never up.

Below it:

Beside it: Glyphwork (repoopen in new window). Panels can use its widgets.

Above it: your extensions and the applications that load them.

What it deliberately doesn't do: no VST3, AU or CLAP authoring (for plugins that run in any DAW, use crates such as nih-plug or clack; to host those, use Summoner), no engine internals (extensions use published contracts only), and no widget library of its own (that is Glyphwork).

Not the same as Studio's plugin SDK

Signals & Sorcery Studio, the downloadable DAW, has its own TypeScript Plugin SDK for panels inside Studio, available today. Familiar is the planned, engine-level SDK for anything built on the components.

Extend and display
The engine
Musical structure
Signal flow
ComponentRepositoryRoleStatus
Runecraftrunecraft-audio-coreShared contracts, realtime safety, process isolation and realtime-safe logging: the floor every other component stands onIn preparation
Orreryorrery-musical-timeTempo and meter, transports, bar, beat and sample maths, timed MIDIIn preparation
Summonersummoner-plugin-hostOut-of-process VST3 and Audio Unit plugin hosting with crash isolationIn preparation
Aethergateaethergate-audio-platformAudio devices (cpal, CoreAudio, a fake device for tests) and shared-memory metersPlanned
Leylineleyline-audio-graphA realtime audio graph with delay compensation, and a compiler from an edit model to a graphPlanned
Cantripscantrips-audio-dspBuilt-in mixer DSP: sampler, fader, pan, meters, compressorPlanned
Scriptoriumscriptorium-audio-mediaDecode and encode, a sample store, streaming voices, crash-safe recordingPlanned
Tapestrytapestry-session-modelTracks, clips, lanes and scenes; edits with undo; a crash-safe project storePlanned
Processionprocession-timeline-engineWhat plays in each block: regions, notes, automation, launchesPlanned
Grimoiregrimoire-daw-engineThe assembled engine and its headless JSON-RPC protocolPlanned
Familiarfamiliar-plugin-sdkAn SDK for plugins and panels that extend a Signals & Sorcery enginePlanned
Glyphworkglyphwork-audio-uiAudio UI widgets: meters, knobs, faders, waveformsPlanned

Status

Planned. No code yet. The repositoryopen in new window holds the design.

Processors will build wherever Rust and the engine build (macOS, Windows, Linux). Panels are web technology and run wherever the user interface does. Running processors in WebAssembly is a later exploration.

Last Updated:
Contributors: shiehn