For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign in
DocsAPI ReferenceChangelog
DocsAPI ReferenceChangelog
Sign in
LogoLogo
On this page
  • May 21, 2026
  • New Code control
  • April 13, 2026
  • New Makeswift Developer Docs

Changelog


May 21, 2026
May 21, 2026

April 13, 2026
April 13, 2026

New Makeswift Developer Docs

We’re excited to announce the launch of our brand-new documentation site, now powered by Fern! The new docs feature a refreshed design, improved navigation, and a dedicated API Reference tab for the Makeswift REST API.

What’s new

  • Powered by Fern for a faster, more polished documentation experience
  • Redesigned documentation site with improved navigation and search
  • Dedicated API Reference tab for browsing REST API endpoints
  • Changelog to keep you up to date with the latest changes
Built with

New Code control

The Code control adds a full-featured code editor to the Makeswift builder, giving content teams a professional editing experience for source code snippets.

  • Monaco-powered editor — Opens an editor in a dialog using the same engine that powers VS Code, with syntax highlighting, line numbers, and familiar keyboard shortcuts
  • Automatic language detection — The editor detects the language from content automatically, covering JavaScript, TypeScript, HTML, CSS, JSON, YAML, Python, Go, Rust, SQL, shell, and many others
  • Standard control interface — Follows the same pattern as other controls with label, description, and defaultValue options

Use cases

The Code control is ideal for components that need to display or process source code:

  • Code snippet displays and syntax highlighters
  • Custom script injection blocks
  • Configuration or schema editors
  • Embed code components

Example

1import { Code, Style } from "@makeswift/runtime/controls";
2
3runtime.registerComponent(CodeBlock, {
4 type: "code-block",
5 label: "Code Block",
6 props: {
7 className: Style(),
8 snippet: Code({
9 label: "Snippet",
10 defaultValue: 'console.log("Hello, world!");',
11 }),
12 },
13});

The control passes { value: string } to your component. If no value is set and no defaultValue is provided, your component receives undefined.

For full documentation, see the Code control reference.