Commit Graph

17 Commits

Author SHA1 Message Date
Fabian @ Blax Software 2be845030e A terminal and keyboard parts: text out on a rising WR (CLR clears), keys typed in waiting on D0-D7 with RDY, NEXT takes one
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 13:05:57 +01:00
Fabian @ Blax Software ef8f97b1c9 A RGB pixels: three inputs, eight colours, on the canvas and on a component's screen
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-28 12:51:09 +01:00
Fabian @ Blax Software bacc6af17e Merge branch 'feat/library'
# Conflicts:
#	README.md
#	app/composables/useEditor.ts
#	app/lib/logic/project.ts
2026-10-26 18:54:44 +01:00
Fabian @ Blax Software 7d6b0f8fad A public library of components: publish yours, add everybody's
"Publish to the library…" in the menu on a circuit's name (or Space)
sends the component with every component it uses and their connector
types, under your leaderboard name. The server checks it like any
project, refuses what is missing, inside itself, nested too deep or too
big to run, and counts its transistors and pins itself. Publishing again
from the same browser makes the next version of the same entry; only that
browser holds the entry's key, so only it can update or remove it.
Challenge circuits and puzzle solutions stay private.

The Library (Components in the bottom bar, Space, the main menu) lists
every entry, newest first, searchable by name, description and author,
with a picture of its box, its transistors, pins and what comes along.
Add brings an entry into the open project and starts placing it: what the
project has in exactly that form already is used as it is, the rest comes
with new ids, a taken name gets a number, connector types join one with
the same lines. The This panel says where a component came from and
offers a newer version, which replaces it in place. A campaign only adds
what is built from parts it has earned, and its challenges take nothing
from the library.

Components keep an optional "from" mark; projects without it load and
compute as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:14:46 +01:00
Fabian @ Blax Software 1be913bd24 A ports on top of the box, split into lines to wire by hand
On a component's box every connector port now sits at the very top of its
side, above the single pins, in auto and hand-drawn boxes alike. A port
can be split on one placed component (its settings or right click: Split
… into lines): right below the socket the box then gets a pin per line,
named after the line, so lines can be wired by hand without an adapter.
Lines going into the component are inputs, lines coming out outputs, each
facing out of its side; a bar in the type's colour ties them to the
socket. A cable still plugs into the socket at the same time. Dropping a
single wire on a socket (or clicking one while connecting) splits the
port and takes the first free line that runs that way. Join … lines
takes the line pins and their wires away again, as one undo step.

A line wired by hand joins the same net the cable's line reaches inside;
a wire and a cable on one line both drive it, and the check says so.
Line pins are left out of the open-input warning, docked panels and
bubbles; docked panels no longer get a row for a port's socket either.
Saved as an optional list on the placed component (splitPorts); without
it a box only has its ports moved to the top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:08:27 +01:00
Fabian @ Blax Software 97c650a2b8 BF inverted inputs: lamps and outputs show the inverted value, and checks read it
A bubble on a lamp or output pin now shows on it. The truth table, Check,
puzzle scores and gate detection read what an output puts out after its
bubble (they read the raw wire, so a bubble on an output was ignored), and
rows of an output panel count as outputs there (they always read 0).
Right-click on an input pin offers to invert it, for desktops that take
Alt+click for themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 12:27:12 +02:00
Fabian @ Blax Software 8de4a81678 A connector types of your own: HDMI, RJ45 or any bus, with out and in ports and one cable that carries every line both ways
- A project keeps connector types: a name, a colour and lines that run
  out -> in or back. Made, edited and deleted (once unused) from the
  parts list's new Connectors group and a connector dialog.
- "<type> out" and "<type> in" ports: inside a component a pin per line
  on the inner side plus a cable pin to pass the whole cable on to a
  part inside; on the component's box one port, coloured like its type.
- One cable joins an out port to an in port of the same type; the
  compiler joins line by line, forward and back, at every depth. Ports
  of different types never join; mismatched cables are pruned.
- Pins can face the other way (the inner pins of ports); the router
  takes them out and in from the side they face.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:59:56 +02:00
Fabian @ Blax Software 794acad140 A finer component boxes, a regrouped parts list with keyboard search, a real green for wires and cables
- Box designer: drag pins up or down to open gaps between groups; size (+/−) and turn (R) lamps, displays, screens and drawings; pixels belong to named screens, each placed on its own; displays of the components inside can be shown on the box (off unless ticked); a list of everything the box can show, each optional; the box grows to hold what it shows
- Lamps and displays deep inside placed components light up on the box
- Parts list: one search box for parts and components (letters in order match too), recently placed parts first, grouped Logic / Inputs / Outputs / Wiring / Notes, then components by group; groups fold away
- Keys: / searches the parts list (Enter starts placing), Shift+A or Ctrl+K adds a part at the mouse
- Wires and cables get a green; the default swatch shows grey, as the default really is

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 06:48:42 +02:00
Fabian @ Blax Software 09f945d2c5 A output panels, and switches, buttons, clocks or lamps combined into one panel
- Output panel: a column of named lamps, each passing its signal on; inside a component its rows are output pins (or kept inside); "Attach output panel" docks one to a component's outputs
- Select switches, buttons and clocks: Combine into an input panel (names, states, keys and wires stay; spacing kept); "All rows" makes them all switches, buttons or clocks
- Select lamps or output pins: Combine into an output panel
- Unnamed panel rows take the name of the pin they are wired to; output panels merge like input panels; circuits that place this one keep their wires when pins move into a panel

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 14:38:59 +02:00
Fabian @ Blax Software deb94b9d61 BF input panels are component inputs, cable ends plug in more reliably; A merge panels, hex pass-through, design a component's box
- Inside a component, the switch and button rows of its input panels are now input pins (in order with the other inputs, named after the rows); "Rows are component inputs" can be turned off per panel to keep the old fixed switches
- Select input panels, Merge: one panel with all rows, spacing and wires kept; circuits that place this one keep their wires
- Cable ends plug in more often: bundling orders the wires by the part a side runs to, an end with only some wires on a part still plugs, an end placed by hand next to the pins plugs, and dragging an end near its part shows green rings and plugs it on drop
- Hex displays pass their four bits on (outputs on the right), so they can sit in the middle of a bus
- Design the box: move lamps, displays, the screen and the name on a component's box, draw lines, boxes, circles and text in six colours, size it, leave things off; every placed copy shows it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 13:49:29 +02:00
Fabian @ Blax Software 4d0e32d678 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 13:26:59 +02:00
Fabian @ Blax Software 5663685505 A compact tidy wiring, pass-through lamps and outputs, gates with up to 16 inputs
- Tidy wiring orders all wires entering one column together and lays
  them out as one compact staircase a grid step apart, sliding only
  within that gap to avoid running along other signals. Separate
  bundles into the same part no longer cross each other.
- Lamps and output pins get a pin on the right that carries the same
  signal on; labels move above when it is wired.
- AND, OR, XOR, NAND and NOR (built in, examples or your own, detected
  from the truth table) take 2 to 16 inputs. The wide version is a
  balanced tree of the two-input gate, so transistors count honestly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:09:23 +02:00
Fabian @ Blax Software 9754ecc0b4 A transistor counts and records, cables, pixels and screens
- Every component shows its transistors (CMOS, 4 per NAND, at every
  depth) in the palette, its settings and the stats. Challenges keep
  the fewest transistors of a passing solution and announce new records.
- Cables: bundle and split parts carry 2 to 32 wires as one thick cable
  with a width mark; "Bundle into cable" builds one from selected wires,
  "Remove cable" takes it apart. Cable ends only join cable ends.
- Pixel part; pixels inside a component show on its box as one screen
  without gaps. New examples: Screen 4x4 and Demo: Screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:29:16 +02:00
Fabian @ Blax Software 861b161c8b A input panels, automatic names, one-by-one wiring, tidy routing, truth table export
- Input panel part: rows of switches, buttons and clocks. "Attach input
  panel" docks one to a component with a row per free input; it moves
  with the component and follows its pins.
- Copies and new pins continue name series (D0 -> D1, A -> B); unnamed
  switches, lamps and pins take the name of the component pin they are
  wired to.
- Connecting: target pins are ringed, dropping on a part uses its next
  free pin, click-then-click works, and "Connect one by one" (W) wires a
  selection's pins in turn.
- Tidy wiring option and "Tidy all wires": sorted, evenly spaced columns
  per gap, one trunk per signal, fewer crossings.
- Truth table full screen, CSV download, copy as Markdown, current row
  highlighted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:17:25 +02:00
Fabian @ Blax Software 5e17826ba5 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 13:09:37 +02:00
Fabian @ Blax Software a241adc94e 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 13:21:49 +02:00
Fabian @ Blax Software 03a4d55834 A logigate: NAND-only logic editor and simulator with components, challenges and examples
Draw circuits from NAND gates, package them as components and reuse them.
Event-driven simulation runs live while drawing. IEC/ANSI symbols, truth
tables, 17 challenges, example library up to a 4-bit counter. Deploys to
edgerealm like autismus-spektrum (logicate.blax.at).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 12:49:38 +02:00