Tools
Obsidian Plugin
Render WireScript wireframes directly in your Obsidian notes.
The WireScript Obsidian Plugin renders wire code blocks as interactive wireframes in your notes.
Features
- Render wireframes inline in your markdown notes
- Switch between multiple screens with tabs
- Navigate between screens and open overlays
- Syntax highlighting and error display
Installation
Manual Installation
-
Build the plugin:
cd apps/obsidian-plugin pnpm install pnpm build -
Copy files to your Obsidian vault:
mkdir -p /path/to/vault/.obsidian/plugins/wirescript cp main.js manifest.json styles.css /path/to/vault/.obsidian/plugins/wirescript/ -
Reload Obsidian and enable the plugin in Settings → Community plugins
Usage
Create a code block with the wire language identifier:
```wire
(wire
(screen home "Home" :mobile
(box :gap 16 :padding 24
(text "Hello World" :high)
(button "Click Me" :primary))))
```The wireframe will be rendered inline in your note.
Multiple Screens
If your wireframe has multiple screens, tabs will appear to switch between them:
```wire
(wire
(screen home "Home" :mobile
(box :center :full
(text "Home Screen" :high)
(button "Go to Settings" :primary :to settings)))
(screen settings "Settings" :mobile
(box :center :full
(text "Settings" :high)
(button "Back" :ghost :to home))))
```With Components
Define reusable components:
```wire
(wire
(define task-item (title done)
(box :row :between :padding 12
(input :type checkbox :checked $done)
(text $title :fill)))
(screen tasks "Tasks" :mobile
(box :full
(header :padding 16
(text "My Tasks" :high))
(scroll :full :padding 16 :gap 8
(task-item :title "Buy groceries" :done false)
(task-item :title "Walk the dog" :done true)
(task-item :title "Write docs" :done false)))))
```Development
# Watch mode for development
pnpm dev
# Production build
pnpm buildTroubleshooting
Plugin doesn't load
- Make sure all three files (
main.js,manifest.json,styles.css) are in the plugin folder - Check the Obsidian console (Ctrl+Shift+I) for errors
Wireframe doesn't render
- Check for syntax errors in your WireScript code
- Errors will be displayed in a red box with line numbers
Styles look wrong
- Make sure
styles.cssis copied to the plugin folder - Try reloading Obsidian