SVG Studio

by Johannes Kaindl
5
4
3
2
1
Score: 51/100

Description

Describe an icon, logo, diagram or floor plan and get an exact, editable SVG in your Obsidian note.

Reviews

No reviews yet.

Stats

0
stars
60
downloads
0
forks
14
days
0
days
0
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
110
commits

Latest Version

19 hours ago

Changelog

Fixed

  • In a short window the footer of the order panel no longer covers the order field and the send button. In a window of about 300 × 420 pixels, in German, the sticky footer with the write buttons took most of the height; the buttons now sit in two rows below a one-line hint, and the field stays visible (shared prompt panel frame, obsidian-kit 0.105.0).

README file from

Github

SVG Studio

🇬🇧 English · 🇩🇪 Deutsch

Describe an icon, logo, diagram or floor plan in words and get an exact, editable SVG in your note — then refine it in rounds, by prompt or by changing single numbers, and accept or reject each change to a single element.

License: AGPL-3.0 Docs: CC BY-SA 4.0 Release Platform

A language model writes the SVG; SVG Studio keeps it exact. The SVG itself is the source (no private drawing language), every change is a replacement of a span of text against the current text, and what you did not ask to change stays byte for byte the same. It works with a local or any OpenAI-compatible model and carries no keys of its own.

Features

  • Create from words — describe an icon, a diagram or a floor plan with measurements and get a sanitized SVG with a preview and a measure line.
  • Refine in rounds — each answer is a round; every changed element is a card you accept or reject on its own, with a comment that goes to the model with your next request.
  • Edit numbers by hand — click an element in the preview and change its coordinates, size, colours, text, position or rotation without a model.
  • Exact and byte-faithful — changes are applied all or nothing against the current text and read back; a hand edit is never lost.
  • Safe by construction — another tool's SVG is parsed and sanitized before it is drawn; the sanitizer rejects instead of silently removing parts.
  • Works on what you have — open an .svg file, an svg-studio code block or an embedded ![[name.svg]]; repair an SVG from Inkscape or give every element a name, with or without a model.
  • Apply as file or block — a new SVG becomes a file in your attachment folder (with its link at the cursor) or a code block in the note.

Requirements

  • Obsidian 1.11.4+ (desktop and mobile).
  • A language model: an OpenAI-compatible endpoint (for example a local server) set up in the plugin LLM Endpoint Manager or in this plugin's own settings. Small models work, larger ones are more reliable; the panel shows measured results for models that were tested.

Install

Community Plugins

Not yet in the community directory. Until the review is through, use one of the other ways below; afterwards: Settings → Community plugins → Browse → „SVG Studio“.

Manual

Put main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/svg-studio/, then enable the plugin.

BRAT (beta)

Add the GitHub mirror johannes-kaindl/svg-studio in BRAT.

From source

git clone https://git.jkaindl.de/jkaindl/svg-studio
cd svg-studio && npm install && npm run build
# main.js manifest.json styles.css → <vault>/.obsidian/plugins/svg-studio/

Usage

  1. Set up a language model (see Requirements).
  2. Run the command SVG Studio: New SVG; the panel opens in the right sidebar.
  3. Describe the image („A moon icon, 48 × 48, flat, one colour.“) and press Create.
  4. Check the preview, change it with another request or by hand, then press Apply.

To change an SVG later, put the cursor in an svg-studio block or on an embedded .svg and run SVG Studio: Edit SVG, or use the Edit button on the block or the embed. More in Getting started.

Configuration

Setting Effect Default
Apply new SVG as Where Apply puts an SVG created from scratch: a file in the attachment folder, a code block at the cursor, or ask every time. File in the attachment folder
Show SVG in notes automatically Off: a button instead of the image, so a drawing that freezes Obsidian can be edited or removed without opening it. On
Language model Endpoint, model and request settings (from LLM Endpoint Manager, if installed). —

How it works

The model answers with an SVG, or with a list of changes keyed by element id. SVG Studio checks the answer (well-formed, accepted by the sanitizer), shows it as a round, and writes only what you accept — through one path that re-reads the text of the target first and refuses to write if it changed in the meantime. In the panel only the checked tree is inserted, into an isolated shadow root; in a note the checked SVG is shown as an image. Architecture and decisions: docs/internal/architecture.md.

Known limits

  • Drawing cost is an estimate, not a protection. The sanitizer estimates how long an SVG takes to draw and rejects what is clearly too much (too-costly); a block that costs a quarter of the limit or more is drawn only after a click. The estimate was measured in Chromium and misses whole classes (shapes and clips set by CSS, large colour emoji, gradients with thousands of stops, CSS animations); WebKit (iOS) and Firefox were not measured, and a phone is probably several times slower than the measuring machine. What actually protects Obsidian is the safety net: a mark is written before an SVG is drawn, a watchdog notices a frozen window, and a block that froze Obsidian waits for a click the next time. It cannot catch a freeze shorter than about one second or one that starts late; a switch in the settings turns off automatic drawing in notes. SVGs embedded with ![[name.svg]] are drawn by Obsidian itself and are not covered.
  • Model quality varies. The panel prints what was measured for a model; for models that were not measured it says so.

Documentation

Contributing

Issues and pull requests on git.jkaindl.de. Test-driven (npm run gate: lint, typecheck, tests, purity and bundle checks). See AGENTS.md.

License

Copyright © 2026 Johannes Kaindl.