Skip to content

Build with the UI package

Reuse the components without embedding credentials in a page.

The UI package is for developers building an interface around Podstead operations. It is separate from choosing one of the seven shipped MCP views.

The source packages are built and tested as tarballs but are not published to npm yet. Build the repository and consume the local packages or pack them. Keep the required React and Effect peer versions aligned with the package manifests.

Render a shipped task

import { Effect } from "effect";
import { TaskView, type OperationClient } from "@r2cast/ui";
import "@r2cast/ui/style.css";

const operations: OperationClient = {
  call: (name, input) => Effect.runPromise(client.call(name, input)),
};

<TaskView view="episode-review" slug="my-show" id={episodeId} client={operations} />;

Here client is an SDK client whose transport is authorized for the current user. Use a same-origin authenticated backend or the MCP Apps bridge in a browser. Never bundle an owner token or privileged API key into frontend code. SDK guide

Compose a focused task

Start with the shared composition components and the registry’s rules. Import the packaged stylesheet; consumers do not need a Tailwind build.

Use one task, clear typography, one primary action, and progressive disclosure for optional details. Use Kumo primitives for their actual purpose. Let the caller supply checked data and named callbacks; components do not own credentials.

For distribution, use DistributionRecipe and TaskActions. The distribution recipe is recorded as tested. The other composition recipes are guidance; their presence in the registry does not mean a general generator has been tested.

Review a new layout

Check phone and desktop widths, light and dark themes, keyboard focus, long titles, empty/error states, and permission failures. A passing click test is not enough to establish a good layout.

Keep the shared rules, registry guidance, and implementation in sync. Detailed composition guide

Type to search…

↑↓ navigate↵ selectEsc close