2026-10-17 10:49:38 +00:00
< script setup lang = "ts" >
const ed = useEditor ( )
const SPEEDS = [
{ value : 0.5 , label : '0.5 Hz' } ,
{ value : 1 , label : '1 Hz' } ,
{ value : 2 , label : '2 Hz' } ,
{ value : 5 , label : '5 Hz' } ,
{ value : 10 , label : '10 Hz' } ,
{ value : 30 , label : '30 Hz' } ,
{ value : 0 , label : 'Max' } ,
]
const hasClock = computed ( ( ) => ( ed . sim . value ? . nl . clocks . length ? ? 0 ) > 0 )
const statusText = computed ( ( ) => ( { stable : 'Stable' , busy : 'Settling' , oscillating : 'Oscillating' } ) [ ed . status . value ] )
const backName = computed ( ( ) => {
const id = ed . nav . value . at ( - 1 )
return id ? ed . getDef . value ( id ) ? . name : undefined
} )
A settings for every part, overlap-free wiring with crossing styles, accounts with sync
- Clicking anything opens its settings: swap parts in place (wires stay on
matching pins), clock frequency per clock, keyboard keys for switches and
buttons, lamp/display colours, note sizes, component names on the canvas,
position, unlink all wires, unpack a component, make an independent copy.
- Wires of different signals never share a line: auto routes pick free
columns or detours, remaining clashes go on separate lanes. Crossings drawn
as bow, triangle, bridge, gap or plain.
- Accounts (email + scrypt password, httpOnly session) with two-way project
sync and conflict copies; per-account limits; cross-site writes refused.
- Compatibility suite: a project and both browser-storage layouts from
release a241adc must load and compute identically.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 11:09:37 +00:00
const cloudText = computed ( ( ) => ( { off : '' , syncing : 'syncing' , synced : 'all saved' , offline : 'offline' , error : 'sync failed' } ) [ ed . cloudState . value ] )
A component faces, project library with share links, fine-grained wire editing
- Lamps and hex displays inside a component show on its box with their
labels, lit by that instance's state; Counter 4 example shows its count.
- Several projects per browser; share links at /p/<id> that the creator's
edits save to automatically, others get their own copy. Export, open a
file as project, or add a file's components to the open project.
- Wires: drag any segment or corner, Alt+drag for a new bend, Ctrl+drag to
branch, double-click selects the whole signal, multi-select, arrow keys,
colour tags.
- Share-link API (POST/GET/PUT /api/p) on Nitro fs storage in data/, mounted
as a volume on edgerealm.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 11:21:49 +00:00
const linkIcon = computed ( ( ) => {
switch ( ed . linkState . value ) {
case 'saved' :
return 'lucide:cloud-check'
case 'saving' :
case 'dirty' :
return 'lucide:cloud-upload'
case 'error' :
return 'lucide:cloud-alert'
default :
return 'lucide:share-2'
}
} )
2026-10-17 10:49:38 +00:00
< / script >
< template >
< header class = "toolbar" >
< div class = "flex min-w-0 items-center gap-2" >
A main menu: free play, campaign, challenges and leaderboard over a circuit that builds itself
Logigate opens on a title screen. Continue, Free play (your own projects),
Campaign (progress and what is next), Challenges (every challenge and the
puzzle of the week in one Challenges project), Leaderboard (the best ten of
this and earlier weeks, your place, your records), Settings. Arrow keys,
Enter and Esc work through it; links still open straight into the editor.
Players can name themselves on the leaderboards. The logo in the editor
leads back to the menu.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 10:22:35 +00:00
< button class = "brand" title = "Main menu (your work is saved)" @click ="ed.showMenu()" >
2026-10-17 10:49:38 +00:00
< svg viewBox = "0 0 32 32" class = "size-6" aria -hidden = " true " >
< path d = "M6 7h10a9 9 0 0 1 0 18H6Z" fill = "none" stroke = "currentColor" stroke -width = " 2.5 " / >
< circle cx = "27" cy = "16" r = "2.6" fill = "none" stroke = "currentColor" stroke -width = " 2.2 " / >
< / svg >
A main menu: free play, campaign, challenges and leaderboard over a circuit that builds itself
Logigate opens on a title screen. Continue, Free play (your own projects),
Campaign (progress and what is next), Challenges (every challenge and the
puzzle of the week in one Challenges project), Leaderboard (the best ten of
this and earlier weeks, your place, your records), Settings. Arrow keys,
Enter and Esc work through it; links still open straight into the editor.
Players can name themselves on the leaderboards. The logo in the editor
leads back to the menu.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 10:22:35 +00:00
< span class = "hidden xl:inline" > Menu < / span >
< / button >
A component faces, project library with share links, fine-grained wire editing
- Lamps and hex displays inside a component show on its box with their
labels, lit by that instance's state; Counter 4 example shows its count.
- Several projects per browser; share links at /p/<id> that the creator's
edits save to automatically, others get their own copy. Export, open a
file as project, or add a file's components to the open project.
- Wires: drag any segment or corner, Alt+drag for a new bend, Ctrl+drag to
branch, double-click selects the whole signal, multi-select, arrow keys,
colour tags.
- Share-link API (POST/GET/PUT /api/p) on Nitro fs storage in data/, mounted
as a volume on edgerealm.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 11:21:49 +00:00
< button class = "tb-btn project-btn" title = "Your projects" @ click = "ed.dialog.value = 'projects'" >
< Icon name = "lucide:folder" class = "size-4 shrink-0" / >
< span class = "truncate" > { { ed . project . value . name } } < / span >
< Icon name = "lucide:chevron-down" class = "size-3.5 shrink-0 text-(--muted)" / >
< / button >
< span class = "text-(--border)" > / < / span >
2026-10-17 10:49:38 +00:00
< button v-if ="backName" class="tb-btn" :title="`Back to ${backName}`" @click="ed.back()" >
< Icon name = "lucide:arrow-left" class = "size-4" / >
< / button >
< label class = "circuit-select" title = "Circuit you are editing" >
< select :value ="ed.def.value.id" @ change = "ed.open(($event.target as HTMLSelectElement).value)" >
< option v-for ="d in ed.project.value.components" :key="d.id" :value="d.id" > {{ d.name }} < / option >
< / select >
< / label >
< / div >
< div class = "flex items-center gap-1.5" >
< button
class = "tb-btn"
: class = "{ active: ed.running.value }"
: title = "ed.running.value ? 'Pause the clock' : 'Run the clock'"
: disabled = "!hasClock"
@ click = "ed.running.value = !ed.running.value"
>
< Icon : name = "ed.running.value ? 'lucide:pause' : 'lucide:play'" class = "size-4" / >
< / button >
< button class = "tb-btn" title = "One clock cycle" :disabled ="!hasClock" @ click = "ed.running.value = false; ed.step()" >
< Icon name = "lucide:step-forward" class = "size-4" / >
< / button >
< select v -model .number = " ed.hz.value " class = "tb-select" title = "Clock speed" :disabled ="!hasClock" >
< option v-for ="s in SPEEDS" :key="s.value" :value="s.value" > {{ s.label }} < / option >
< / select >
< span v-if ="hasClock" class="cycles tabular-nums" title="Clock cycles since this circuit was opened" > {{ ed.cycles.value.toLocaleString ( ) }} ticks < / span >
< span class = "status" :class ="ed.status.value" : title = "ed.status.value === 'oscillating' ? 'A loop keeps flipping and never settles (e.g. a NOT feeding itself)' : 'Simulation state'" >
< span class = "dot" / > { { statusText } }
< / span >
< / div >
< div class = "flex items-center gap-1.5" >
A Loxone-style working aids: named signals, inverted inputs, a project check, values on cables, search, printable sheets; wire ends move by dragging
- Send signal / Use signal: name a signal (CLK, RESET) once and use it anywhere in the circuit without a wire; selecting one lights up all of them, a use with no sender shows dashed
- Inverted inputs: Alt + click an input (or the menu/settings) puts a bubble on it; it reads the signal inverted through one NAND, counted in every transistor total
- Check (Circuit tab): open inputs, parts that drive nothing, duplicate pin names, unsent or doubly sent signals, loops that never settle; click one to show it. Open inputs get an orange marker on the canvas. Components no other circuit uses are listed with a delete
- Cables show the number they carry (= 13 · 0x0D); hovering a wire tells where it runs and its value
- Ctrl+F finds parts, signals, panel rows, notes and components in every circuit, with where each component is used
- Ctrl+P prints the circuit as a sheet with a title block on white paper (or save as PDF); also as an SVG file
- + and − under a selected gate change its number of inputs; swaps keep bubbles in place
- Drag a wire by its end to move that end to another pin; drop a dragged wire on another wire to tap its signal or feed what it fed
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 11:26:59 +00:00
< button class = "tb-btn" title = "Find anything in the project (Ctrl+F)" @ click = "ed.dialog.value = 'search'" > < Icon name = "lucide:search" class = "size-4" / > < / button >
2026-10-17 10:49:38 +00:00
< button class = "tb-btn" title = "Undo (Ctrl+Z)" :disabled ="!ed.canUndo.value" @click ="ed.undo()" > < Icon name = "lucide:undo-2" class = "size-4" / > < / button >
< button class = "tb-btn" title = "Redo (Ctrl+Shift+Z)" :disabled ="!ed.canRedo.value" @click ="ed.redo()" > < Icon name = "lucide:redo-2" class = "size-4" / > < / button >
A campaign with unlocks, synthesised sound, puzzles and the puzzle of the week
- Campaign projects start with NAND only; challenges open along a
dependency chain, each solution becomes a usable part, and basic parts
unlock on the way. Locked parts and challenges say what opens them.
- Sound effects made with Web Audio: place, connect, switches, buttons,
delete, clock ticks (opt-in), solve, fail, unlock, record. Mute and
volume in the top bar and Display settings.
- Publish any circuit as a puzzle link; only its behaviour is shared.
The server re-runs the checks on submitted solutions, counts their
transistors and keeps each player's best; the board shows a histogram
and your place. A generated puzzle of the week for everyone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 17:54:57 +00:00
< button
class = "tb-btn"
A right panel in tabs, Pins list, bulk editing, transistor breakdown, Settings dialog
- Right panel tabs: Selection, Circuit, Pins, Test. Display and sound
preferences move to a Settings dialog (gear in the top bar).
- Pins tab: every input and output in pin order with live values; rename in
place (Enter goes to the next), number a whole side from a pattern, flag
duplicate names, centre the canvas on a part.
- Several selected parts: narrow by type, swap all, rename all from a
pattern, set switches to 0/1 or flip, shared colour/frequency/size, align
and spread.
- Transistors on every part (NAND 4, switches and lamps 0), NAND 4T in the
palette, and a per-part breakdown of the circuit. Test: the count equals
4 x the gates the simulator builds, for every example and wide gate.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 07:29:55 +00:00
: title = "ed.sound.value.on ? 'Sound on (volume and clock ticks in Settings)' : 'Sound off'"
A campaign with unlocks, synthesised sound, puzzles and the puzzle of the week
- Campaign projects start with NAND only; challenges open along a
dependency chain, each solution becomes a usable part, and basic parts
unlock on the way. Locked parts and challenges say what opens them.
- Sound effects made with Web Audio: place, connect, switches, buttons,
delete, clock ticks (opt-in), solve, fail, unlock, record. Mute and
volume in the top bar and Display settings.
- Publish any circuit as a puzzle link; only its behaviour is shared.
The server re-runs the checks on submitted solutions, counts their
transistors and keeps each player's best; the board shows a histogram
and your place. A generated puzzle of the week for everyone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 17:54:57 +00:00
@ click = "ed.setSound({ on: !ed.sound.value.on })"
>
< Icon : name = "ed.sound.value.on ? 'lucide:volume-2' : 'lucide:volume-x'" class = "size-4" / >
< / button >
A right panel in tabs, Pins list, bulk editing, transistor breakdown, Settings dialog
- Right panel tabs: Selection, Circuit, Pins, Test. Display and sound
preferences move to a Settings dialog (gear in the top bar).
- Pins tab: every input and output in pin order with live values; rename in
place (Enter goes to the next), number a whole side from a pattern, flag
duplicate names, centre the canvas on a part.
- Several selected parts: narrow by type, swap all, rename all from a
pattern, set switches to 0/1 or flip, shared colour/frequency/size, align
and spread.
- Transistors on every part (NAND 4, switches and lamps 0), NAND 4T in the
palette, and a per-part breakdown of the circuit. Test: the count equals
4 x the gates the simulator builds, for every example and wide gate.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 07:29:55 +00:00
< button class = "tb-btn" title = "Settings: gate symbols, wire crossings, current flow, tidy wiring, sound" @ click = "ed.dialog.value = 'settings'" >
< Icon name = "lucide:settings" class = "size-4" / >
< / button >
A component faces, project library with share links, fine-grained wire editing
- Lamps and hex displays inside a component show on its box with their
labels, lit by that instance's state; Counter 4 example shows its count.
- Several projects per browser; share links at /p/<id> that the creator's
edits save to automatically, others get their own copy. Export, open a
file as project, or add a file's components to the open project.
- Wires: drag any segment or corner, Alt+drag for a new bend, Ctrl+drag to
branch, double-click selects the whole signal, multi-select, arrow keys,
colour tags.
- Share-link API (POST/GET/PUT /api/p) on Nitro fs storage in data/, mounted
as a volume on edgerealm.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 11:21:49 +00:00
< button class = "tb-btn share-btn" :class ="ed.linkState.value" title = "Save online, share a link, export or import a file" @ click = "ed.dialog.value = 'share'" >
< Icon :name ="linkIcon" class = "size-4" / >
< span class = "hidden md:inline" > Share < / span >
< / button >
2026-10-17 10:49:38 +00:00
< button class = "tb-btn" title = "Help (?)" @ click = "ed.showHelp.value = true" > < Icon name = "lucide:circle-help" class = "size-4" / > < / button >
A settings for every part, overlap-free wiring with crossing styles, accounts with sync
- Clicking anything opens its settings: swap parts in place (wires stay on
matching pins), clock frequency per clock, keyboard keys for switches and
buttons, lamp/display colours, note sizes, component names on the canvas,
position, unlink all wires, unpack a component, make an independent copy.
- Wires of different signals never share a line: auto routes pick free
columns or detours, remaining clashes go on separate lanes. Crossings drawn
as bow, triangle, bridge, gap or plain.
- Accounts (email + scrypt password, httpOnly session) with two-way project
sync and conflict copies; per-account limits; cross-site writes refused.
- Compatibility suite: a project and both browser-storage layouts from
release a241adc must load and compute identically.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 11:09:37 +00:00
< button
class = "tb-btn account-btn"
: class = "ed.cloudState.value"
: title = "ed.account.value ? `${ed.account.value.email}: ${cloudText}` : 'Sign in to keep your projects on every computer'"
@ click = "ed.dialog.value = 'account'"
>
< template v-if ="ed.account.value" >
< span class = "avatar" > { { ed . account . value . email [ 0 ] ! . toUpperCase ( ) } } < / span >
< span class = "sync-dot" / >
< / template >
< template v-else >
< Icon name = "lucide:user" class = "size-4" / >
< span class = "hidden md:inline" > Sign in < / span >
< / template >
< / button >
2026-10-17 10:49:38 +00:00
< / div >
< / header >
< / template >