Saving and file format
Circuits are saved as .rye files: plain JSON describing every
component, wire, and setting on the board.
Saving
Choose File › Save (Ctrl+S) to write to the current file. The first time you save, RYEWIRED prompts you to choose a location. Save As always prompts for a location.
In browsers that support it, RYEWIRED can write changes back to the file you opened. The first time you save to a file, the browser asks permission to modify it. This is part of the browser’s file-access security system, not a prompt controlled by RYEWIRED.
In other browsers, saving downloads a new copy of the file.
Opening
Choose File › Open Layout
(Ctrl+O) to open a .rye file.
Load Sample Circuit opens one of the bundled examples.
Loading a file or sample circuit replaces the current board and clears the undo history. Undo cannot recover the previous circuit. Save first.
Autosave
RYEWIRED continuously saves the current board to your browser’s local storage and restores it the next time you open the app. Closing the tab does not normally lose your work.
This is a convenience, not a backup. Autosaved data stays in one browser on
one machine. Clearing that browser’s site data erases it. Save circuits
you want to keep as .rye files.
Inside a .rye file
A .rye file is JSON with four top-level sections:
{
"components": [ ... ],
"wires": [ ... ],
"permanentDevices": { "power": {}, "input": {}, "output": {} },
"schematicInfo": { ... }
}
The file is readable and can be edited by hand, though using RYEWIRED is safer.
components
Every placed component has an instance ID, a component type, the board holes occupied by its legs, and its settings.
{
"instanceId": "R6414P",
"defId": "resistor",
"legs": [ { "row": 5, "col": 10 }, { "row": "rtm", "col": 10 } ],
"props": {
"resistance": 42000,
"resistance__unit": "kΩ",
"tolerance": "5%",
"label": "R1 base bias"
}
}
Rows are numbered 0 to 9 for the main board, or
identified by the strings rtp, rtm,
rbp, and rbm for the four power rails. Columns are
stored as 0 to 62 and displayed as 1 to 63.
A 42 kΩ resistor is stored as 42000, representing
ohms. The accompanying __unit field records the unit used to
display the value. It does not change the stored number.
wires
Each jumper is stored with two endpoints and a color.
A jumper from the power supply uses the row pwr for its
terminal end: column 0 is the −
terminal and column 1 the + terminal.
"terminals": true in the power settings marks a file saved
with this model. An older file without it gets the two jumpers added when
it opens, so it behaves exactly as it did before.
{ "id": "WV2YXP", "r1": 7, "c1": 9, "r2": 7, "c2": 10, "color": "#ff9900" }
permanentDevices
This section stores settings for the power supply, signal input, and signal output. Everything on the Workbench is stored here.
"power": {
"voltage": 9,
"current_limit_ma": 500,
"power_on": true,
"battery_sag": 0,
"internal_resistance": 1,
"terminals": true
}
schematicInfo
This section stores the title-block information used when exporting a schematic: circuit name, creator, date, revision numbers, and company.
What is not stored
Solver output, including node voltages, transistor states, and computed gains, is runtime data and is not saved. RYEWIRED recalculates it from the circuit whenever you run a simulation. Saving those results would risk preserving values that no longer match the circuit.
Sharing circuits
A .rye file is self-contained and small. Send it to someone else
and they can open the circuit with its component models, tolerances, and
Workbench settings.
One exception: custom audio files loaded into the signal input are not
embedded in the .rye file. If the circuit uses one, send that
audio file separately.