Skip to content

Getting started

The editor currently lives in the main svertik repository. Install Node.js 24 or newer and pnpm, then run:

Terminal window
git clone https://github.com/scorcoles/svertik.git
cd svertik
pnpm install
pnpm editor

Open the local URL printed in your terminal. Use a desktop browser for the editor.

  1. Add a primitive shape or text, or import an SVG.
  2. Add an effect to its stack and adjust its parameters.
  3. Combine effects to generate copies, deform paths, and change their colors.
  4. Animate parameters with keyframes or numeric expressions.
  5. Save the project as JSON, export SVG or PNG, or use the generated code for the web.

Effects run in stack order. Changing the order changes the result. The original shape is preserved, so you can return to it at any time.

Save this as scene.json in the main svertik checkout:

{
"version": 1,
"document": { "width": 800, "height": 600 },
"objects": [{
"kind": "shape",
"id": "star",
"name": "Star",
"shape": "star",
"params": { "radius": 120, "innerRadius": 60, "points": 5, "fill": true, "fillColor": "#09fdd1" },
"stack": []
}]
}
Terminal window
pnpm svertik render scene.json -o scene.svg
pnpm svertik render scene.json -o scene.png --scale 2

For programmatic scenes, validate with validateScene before rendering. Every object and effect needs a unique ID in its scene.

Read the engine guide for animation, scene coordinates, expressions, and the player. Explore scene recipes for complete examples.