[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112005":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":28,"discoverSource":29},112005,"KiVi","XyleMora\u002FKiVi","XyleMora","KiVi: view, compare and review KiCad projects","",null,"JavaScript",59,8,2,1,0,3,6,44.96,"GNU General Public License v3.0",false,"main",[],"2026-11-23 09:03:49","2026-11-19 05:02:16","\u003Cimg src=\"assets\u002Fkivi-logo.svg\" width=\"120\" alt=\"KiVi logo: a kiwi with a circuit board inside\">\n\n# KiVi: view, compare and review KiCad projects\n\n[![Built with Claude Code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBuilt_with-Claude_Code-D97757?logo=claude&logoColor=white)](https:\u002F\u002Fclaude.com\u002Fclaude-code)\n\n**KiVi turns the KiCad projects in your GitHub and GitLab repositories, or on\nyour disk, into something you can actually look at.** Any source control forge shows a changed\n`.kicad_pcb` as thousands of lines of S-expressions; reviewing it usually\nmeans checking out both versions and flipping between KiCad windows. In KiVi,\nschematics, boards and 3D views open in seconds, a visual diff tells you what\nchanged in KiCad terms, and comments pinned to parts and nets make a board\nchange as easy to review as a code change.\n\n- **Nothing to set up on a server.** GitHub or GitLab stays your\n  source control, diff and review system; KiVi is a desktop app that parses\n  and renders everything locally.\n- **Nothing to install.** One `.AppImage` on Linux, one `.exe` on Windows,\n  one `.dmg` on macOS.\n- **No account needed to play around.** Public repositories work signed out;\n  sign in to GitHub or GitLab (one at a time) for private repositories and the\n  full review features.\n- **You are in control of access.** GitHub sign-in uses a GitHub App with\n  fine-grained permissions, and you choose which repositories it can read;\n  GitLab sign-in uses an OAuth application.\n- **KiCad 6 to 10.** Tested against the demo projects that ship with KiCad 10.\n\n## What you get\n\n*Screenshots show [CM5 MINIMA REV3](https:\u002F\u002Fgithub.com\u002Fpiecol\u002FCM5_MINIMA_REV3)\nby Pierluigi Colangeli (CERN-OHL-S-2.0), from KiCad's demo projects. The\nchanges, review comments and issues in them were made up for these examples.*\n\n**🗂 Every project at a glance.** KiVi finds every KiCad project in the\nrepositories you can reach and in folders you add, and shows each as a card\nwith a rendered board thumbnail. One click opens its schematic, PCB, 3D view\nor BOM.\n\n![Home screen: a gallery of KiCad projects with rendered board thumbnails](docs\u002Fscreenshots\u002Fhome-projects.png)\n\n**🔍 Viewing, cross-probing and more.** Click a symbol to see its fields and\nevery pin with its net, or a wire to select the whole net. **Highlight on PCB** shows\nthat net on the board, with its length, layers and vias; **Show in 3D** lights\nit up and turns the camera to the side it's routed on. Switch PCB layers one\nby one, flip to the bottom, and measure between pads, vias and model corners\n(key **M**).\n\n![Schematic: the net USB_C.D_P selected next to the USB-C connector, with its pins listed](docs\u002Fscreenshots\u002Fviewer-schematic.png)\n\n![PCB: the same net \u002FUSB_C.D_P highlighted, 21 mm of track on both copper layers with 2 vias and 4 pads](docs\u002Fscreenshots\u002Fviewer-pcb.png)\n\n![3D: the same net highlighted in yellow on the board, seen from the top](docs\u002Fscreenshots\u002Fviewer-3d-net.png)\n\n**🧮 A diff that speaks KiCad.** Compare a pull request, a commit, two\nbranches, or your uncommitted local work. KiVi lists changes the way a designer\nthinks about them and marks each one on both versions side by side:\n\n- *Schematic:* which pins joined or left each net; parts added, removed or\n  edited; library symbols whose pinout, pin types or body changed, with every\n  part that uses them.\n- *Board:* parts moved, rotated, flipped or re-wired; what changed inside a\n  footprint (pads, drills, mask and paste overrides, 3D models, silkscreen);\n  routing, vias, zones, outline and stackup.\n- *Design rules:* a table of what changed in the `.kicad_pro` and `.kicad_dru`.\n- *Not a change:* redrawn wires that connect the same pins, re-annotation,\n  refilled zones, or the pads of a part that merely moved.\n\nHere a footprint was updated from a corrected library: four pads got longer,\npad 1 got a solder mask override, the 3D model went from VRML to STEP and a\npin-1 mark was added to the silkscreen.\n\n![Visual diff of a board: U405's pads, mask margin, 3D model and silkscreen changes listed and marked](docs\u002Fscreenshots\u002Fdiff-footprint.png)\n\nAnd here the LED symbol's anode and cathode were swapped in the library: KiVi\nreports it once, with both LEDs that use it and the nets that changed.\n\n![Visual diff of a schematic: the LED library symbol's swapped pins and the nets that changed](docs\u002Fscreenshots\u002Fdiff-library-symbol.png)\n\n**💬 Review where the problem is.** Press **C** and click a footprint, pad,\nnet or symbol to comment on it. Comments are ordinary pull request review\ncomments on GitHub (discussions on a merge request's file on GitLab), so your\nteam sees them there too, and they stay pinned to the part across later\npushes. Outside a pull request the same pin opens an issue: a hardware change\nrequest that a later pull request can close\n([see how](#reviewing-hardware-pull-requests-and-issues)).\n\n![PCB at a pull request's head: review comment 1 open on U405, change request #12 pinned in green](docs\u002Fscreenshots\u002Freview-comment.png)\n\n**🌿 Git without the git.** Download a project, make a branch, edit in KiCad\n(KiVi reloads as you save), then commit, push and open a pull or merge request\nfrom one menu, with git built in. KiCad files don't merge reliably as text, so KiVi\nnever merges a file both sides changed; it keeps your work safe on a branch\ninstead.\n\n![Branch menu of a local copy: New branch, Commit, Push 1 commit and Pull, above the branch list](docs\u002Fscreenshots\u002Fgit-branch-menu.png)\n\n**🔗 Works with your KiCad.** Link your KiCad installation and KiVi loads 3D\nmodels from your library exactly as KiCad does, and **Open in KiCad** opens the\nproject in one click.\n\n![Settings: KiCad 10.0.6 linked, with its 3D model and add-on folders](docs\u002Fscreenshots\u002Fsettings-kicad.png)\n\n## Reviewing hardware: pull requests and issues\n\nKiVi gives a team two ways to talk about a design, both pinned to the part,\npad or net they're about and both stored on GitHub (or GitLab: there a pull\nrequest is a merge request, a review comment a file discussion), so nothing\nlives only in KiVi:\n\n| | Review comment | Change request |\n|---|---|---|\n| **For** | Discussing a proposed change before it's merged | Asking for a change to the design as it is |\n| **Made in** | A pull request: its visual diff, or the viewer at its head (**Hardware**) | A branch of a GitHub or GitLab project, or a local copy linked to one |\n| **How** | Press **C** (**Comment**) and click | Press **C** (**Request change**), click, give it a title |\n| **On GitHub it's** | A review comment on the `.kicad_sch` \u002F `.kicad_pcb` file, in the pull request's conversation and *Files changed* | An issue labelled `kivi`, in the repository's Issues |\n| **On GitLab it's** | A discussion on that file of the merge request, in its *Overview* and *Changes* | An issue labelled `kivi`, in the project's Issues |\n| **Done when** | Resolved, in KiVi or on the forge | Closed; a pull request whose description says \"Fixes #N\" (\"Closes #N\" on GitLab) closes it when merged |\n| **Listed in** | The pull request's side panel | The schematic and PCB side panels, KiVi's home **Issues** view, the forge |\n| **Pins** | Numbered 1, 2, 3… in orange | Issue numbers (#12) in green |\n\n### Reviewing a pull request\n\n1. **Find it.** The home screen's pull request view lists the open pull\n   requests in your projects, each saying how many KiCad files it changes.\n   **Visual diff** opens it; **Hardware** opens the viewer at its head.\n\n   ![Pull requests: a remote project's open pull request, which changes 3 KiCad files](docs\u002Fscreenshots\u002Fpull-requests.png)\n\n2. **Review it.** Go through the change list; each item zooms to the change\n   on both versions. Press **C**, click what you have a question about and\n   write it: here a question about U405's longer pads, pinned to U405. The\n   author answers and resolves it in KiVi or on github.com, where it's an\n   ordinary review comment. The repository's open change requests show up\n   too, in green, since the pull request may be what fixes them.\n\n   ![Visual diff of a pull request with a review comment open on U405 and two change requests listed](docs\u002Fscreenshots\u002Fvisual-diff.png)\n\n### Requesting a change with an issue\n\n1. **Pin a request to the hardware.** In the viewer on any branch, press\n   **C**, click the part, pad or net, and give the request a title: here #12\n   asks to move the HDMI connector J501, and has a reply underneath. Anyone\n   with access to the repository sees it in KiVi or in the repository's\n   Issues on GitHub or GitLab.\n\n   ![PCB with change request #12 open on the HDMI connector J501](docs\u002Fscreenshots\u002Fviewer-issues.png)\n\n2. **Keep track of them.** The home screen's **Issues** view gathers the open\n   change requests of all your projects, each saying what it's pinned to;\n   **Hardware** opens it right there.\n\n   ![Issues: four open change requests, pinned to J501, the +5V net, M701 and D605](docs\u002Fscreenshots\u002Fissues.png)\n\n3. **Fix it in a pull request.** The pull request that drills M701 bigger says\n   \"Fixes #9\" in its description, so in its visual diff issue #9 is marked\n   *closes with this PR*: the reviewer sees the request next to the change\n   that answers it, and GitHub closes the issue when the pull request is\n   merged. For the other issues, **Close with this PR** adds the \"Fixes #N\"\n   line for you (signed in). GitLab works the same, with merge requests and\n   \"Closes #N\".\n\n   ![Visual diff of the pull request with issue #9 open on M701: closes when this pull request is merged](docs\u002Fscreenshots\u002Fpr-closes-issue.png)\n\n## Try it in five minutes\n\n1. **Get KiVi.** Download it from the\n   [Releases page](https:\u002F\u002Fgithub.com\u002FXyleMora\u002FKiVi\u002Freleases): on Linux the\n   AppImage (`chmod +x KiVi_*.AppImage`, then run it); on Windows\n   `KiVi_\u003Cversion>_x64.exe` (run it; it isn't code-signed yet, so SmartScreen\n   asks once: *More info* → *Run anyway*); on macOS `KiVi_\u003Cversion>_universal.dmg`\n   (drag KiVi to Applications; it isn't notarised yet, so the first time it's\n   blocked: *System Settings* → *Privacy & Security* → *Open Anyway*). Or\n   [build it](#building) yourself.\n2. **Add a public project.** In **Projects**, click **+** → **Remote\n   project…** and enter `greatscottgadgets\u002Fhackrf` (the HackRF One software\n   defined radio, on GitHub), `https:\u002F\u002Fgitlab.com\u002Friglol\u002Flapod` (LVDS\n   breakout boards, on GitLab), or any public repository with KiCad projects.\n   No sign-in needed.\n3. **Look around.** Open its card: click parts in the schematic, cross-probe\n   to the PCB, measure something, spin it in 3D.\n4. **See what changed.** Open **History** in the project bar, pick a commit\n   that touched the hardware and press **Visual diff**. In your own\n   repositories, the pull request icon in the header lists the open pull (or\n   merge) requests the same way.\n5. **Bring your own.** **+** → **Local project…** adds a folder from your\n   computer. Edit it in KiCad, save, and press **Visual diff** to see your\n   uncommitted changes the way a reviewer would.\n6. **Sign in** (account menu, top right, then GitHub or GitLab) to see your\n   private repositories and the pull requests waiting for your review, and to\n   comment. KiVi is signed in to one of them at a time.\n\n### Help us test it\n\nKiVi is young and we'd love to hear how it does on your projects: boards it\ndraws wrong, diffs that miss a change or report noise, anything confusing.\n[Open an issue](https:\u002F\u002Fgithub.com\u002FXyleMora\u002FKiVi\u002Fissues) with the KiCad\nversion and, if you can, the file. Good to know before you start:\n\n- Linux is where it's used day to day. The Windows build is made by CI and\n  hasn't been tried much by hand. The macOS build has been tried by hand on\n  Apple Silicon (macOS 27, KiCad 10.0.1: viewer, 3D with the linked KiCad's\n  models, Open in KiCad, GitHub sign-in); not yet on Intel.\n- See [Known limitations](#known-limitations) for what KiVi doesn't do yet.\n\n## Using KiVi\n\nThe [user guide](docs\u002FREADME.md) covers every feature in detail:\n[Projects](docs\u002FREADME.md#projects) · [Schematic, PCB and 3D](docs\u002FREADME.md#schematic-pcb-and-3d) · [Visual diff](docs\u002FREADME.md#visual-diff) · [Pull requests](docs\u002FREADME.md#pull-requests) · [Review comments on pull requests](docs\u002FREADME.md#review-comments-on-pull-requests) · [Change requests as issues](docs\u002FREADME.md#change-requests-as-issues) · [Local copies, branches and pushing](docs\u002FREADME.md#local-copies-branches-and-pushing) · [Linking KiCad](docs\u002FREADME.md#linking-kicad) · [Signing in to GitHub and GitLab](docs\u002FREADME.md#signing-in-to-github-and-gitlab) · [Links into the viewer](docs\u002FREADME.md#links-into-the-viewer) · [How the gallery stays fast](docs\u002FREADME.md#how-the-gallery-stays-fast).\n\n## Known limitations\n\n- **3D models embedded in KiCad 9+ files** (`kicad-embed:\u002F\u002F…`) aren't read\n  yet; such parts show without a model unless a file with the same name is in\n  the repository.\n- **KiCad 9 padstacks** (different pad shapes on inner layers) are drawn with\n  the outer layers' shape.\n- Text uses a regular sans font scaled to KiCad's metrics instead of KiCad's\n  stroke font (the newstroke font data is GPL-2.0, so it is not bundled).\n  Layout and anchoring match, but glyph shapes differ.\n- Schematic nets are traced per sheet (wires, junctions, labels, pins) and\n  mapped to board nets through component pins; the name shown is the board's\n  when there is one. Buses aren't traced, and the diff doesn't follow a net\n  through a global label on another sheet.\n- The default 3D model source is the KiCad 6-era GitHub mirror of\n  `kicad-packages3D`; models added in later KiCad versions need KiCad linked in\n  Settings or another model source. A GitHub repository model source is\n  listed once through the API, so it counts against the rate limit. The first\n  view of a board with many STEP models is slow (KiCad 10's library is STEP\n  only); later views use the cache.\n- Git LFS files aren't fetched from GitHub (GitLab returns their content).\n- GitLab: gitlab.com only (no self-hosted servers yet). Signed out, GitLab\n  shows no merge request comments and no issue comments, and limits requests\n  from your network tightly; a big repository is listed 100 files per request.\n- A file changed on both sides is never merged (on purpose: KiCad files don't\n  merge reliably as text); Pull offers to move your commits to a new branch\n  instead.\n\n## Not done yet\n\n- The tokens and refresh tokens are kept in the app's local storage; a release\n  should keep them in the OS keychain, at least the long-lived refresh token.\n- Auto-update, code signing, notarisation, file associations.\n\n---\n\n## For developers\n\n### Building\n\n```sh\n# once: system libraries and Rust (Linux)\nsudo apt install libwebkit2gtk-4.1-dev libxdo-dev libayatana-appindicator3-dev librsvg2-dev build-essential\ncurl --proto '=https' --tlsv1.2 -sSf https:\u002F\u002Fsh.rustup.rs | sh\ncargo install tauri-cli --version \"^2\" --locked\n\ncargo tauri dev        # run from source\ncargo tauri build      # release binary + AppImage in src-tauri\u002Ftarget\u002Frelease\u002Fbundle\u002Fappimage\u002F\n```\n\nKiVi is a [Tauri 2](https:\u002F\u002Ftauri.app) app. Windows builds the same way, with\nRust and Python installed: `cargo tauri build --no-bundle` makes\n`src-tauri\u002Ftarget\u002Frelease\u002Fkivi-desktop.exe`, which runs as it is, with the\npages built in (plain `cargo tauri build` also makes an NSIS installer, set in\n`src-tauri\u002Ftauri.windows.conf.json`, which Tauri merges on Windows).\n\nOn macOS, install the Xcode Command Line Tools (`xcode-select --install`,\nwhich bring `python3`) and Rust; no other libraries are needed (Tauri uses\nthe system's WKWebView). `cargo tauri build` makes\n`src-tauri\u002Ftarget\u002Frelease\u002Fbundle\u002Fdmg\u002FKiVi_\u003Cversion>_aarch64.dmg` (set in\n`src-tauri\u002Ftauri.macos.conf.json`, which Tauri merges on macOS); CI builds one\nfor both architectures with `rustup target add x86_64-apple-darwin` and\n`cargo tauri build --target universal-apple-darwin`. If the build stops with\n`hdiutil: couldn't unmount … Resource busy`, run it as\n`CI=true cargo tauri build`: that skips the Finder window styling of the disk\nimage, which can keep it busy. Tauri doesn't cross-compile. The pages\nare plain ES modules with no build step; `tools\u002Fbuild_web.py` (run by Tauri)\ncopies them to `dist\u002Fweb`.\n\nSettings and sign-in are kept per user (`%LOCALAPPDATA%\\app.kivi.desktop` on\nWindows, `~\u002F.local\u002Fshare\u002Fapp.kivi.desktop` on Linux,\n`~\u002FLibrary\u002FWebKit\u002Fapp.kivi.desktop` on macOS), not next to the program.\nThe Windows `.exe` needs the WebView2 runtime, which is part of Windows 11 and\ncomes with Edge updates on Windows 10 (otherwise get the *Evergreen* runtime\nfrom Microsoft).\n\nTo build in your own GitHub App, set `KIVI_GITHUB_CLIENT_ID` and\n`KIVI_GITHUB_APP_SLUG` when building, and for GitLab your gitlab.com OAuth\napplication's ID as `KIVI_GITLAB_CLIENT_ID` (in CI: the repository variables\nof the same names, under Settings → Secrets and variables → Actions →\nVariables); without them the sign-in dialog asks for them. GitHub's\ndevice-flow endpoints don't send CORS headers, so sign-in requests run in Rust\n(`oauth_post` in `src-tauri\u002Fsrc\u002Flib.rs`, for both forges).\n\n### Layout\n\n```\nindex.html              viewer\ndiff.html               visual diff\ninbox.html              home screen (projects, pull requests, issues)\nsrc\u002Fsexpr.js            S-expression parser (+ tree helpers)\nsrc\u002Fgeom.js             matrices, arcs, bounding boxes\nsrc\u002Ftext.js             text layout (KiCad metrics, markup, escapes)\nsrc\u002Fdrawing-sheet.js    .kicad_wks parser\u002Frenderer, built-in default sheet\nsrc\u002Fproject.js          project discovery, hierarchy walk, page numbering\nsrc\u002Fforge\u002F              code hosts: the forge interface (index.js) and one adapter\n                        per forge (github.js, gitlab.js: every API request,\n                        comparisons, review comments, issues, lists, sign-in\n                        details, web links)\nsrc\u002Fsources.js          text before a patch, 3D model path resolution\nsrc\u002Fdiff\u002F               semantic schematic, net, board and design rule diffs, comment anchors\nsrc\u002Freview.js           comment markers and the thread shape (review comments and\n                        change requests), the same on every forge\nsrc\u002Fsch\u002F                schematic model, renderer, themes\nsrc\u002Fpcb\u002F                board model, renderer, shapes, hit testing,\n                        outline extraction, face textures, three.js scene,\n                        STEP conversion (worker) and its cache, measuring\nsrc\u002Fapp\u002F                UI: tabs, pan\u002Fzoom viewport, inspectors, BOM, diff page,\n                        branch and history menus, measuring\nsrc\u002Fdesktop\u002F\n  tauri.js              TauriSource (folder on disk), GitRevSource (it at a commit), drag and drop, link routing,\n                        folder chooser, sign-in (forge chooser, device flow), token refresh\n  desktop.js            additions to the viewer and diff pages\n  account.js            header on every page: home icons, account menu, Settings dialog\n  inbox.js, desktop.css home screen: view switch, pull\u002Fmerge requests, issues\n  card-zoom.js          Ctrl + wheel resizes the gallery's cards\n  projects.js           project gallery: repository scan, caches, cards\n  thumb-worker.js       board thumbnails (parse + render off the main thread)\n  git.js                local copies: download\u002Flink, branch and history menus, commit, push, pull\n  add-project.js        the \"+\" menu: local project, remote project (settings `watchRepos`)\n  local-projects.js     local project folders in the gallery, Link to remote…\n  icons.js              header and menu icons (repository \u002F pull request follow Octicons)\nsrc-tauri\u002F              Rust app\n  src\u002Flib.rs            commands: open_folder, list_folder, read_file, startup_folder,\n                        model folders, forge_build_config, oauth_post (sign-in)\n  src\u002Fpicker.rs         the folder chooser through the desktop portal (Linux)\n  src\u002Fgit.rs            git commands (clone, branch, local changes, commit, push, pull, fetch with prune),\n                        GitHub and GitLab remotes (tokens only to their hosts)\n  src\u002Fgit_http.rs       git over HTTPS through reqwest (no OpenSSL)\n  src\u002Fkicad.rs          linking KiCad (program, version, path variables), Open in KiCad\n  tauri.conf.json       window, CSP, bundle targets\n  capabilities\u002F         which plugin APIs the page may call\n  icons\u002F                app icons (tools\u002Fmake_icons.py)\nvendor\u002F                 three.js 0.169, occt-import-js (LGPL-2.1), see vendor\u002FREADME.md\ntests\u002F                  headless checks (gjs), Tauri API mock\ntools\u002F                  build, CLI rendering, visual comparison, icons, headless browser,\n                        screenshot preludes\nassets\u002F                 logo (SVG)\ndocs\u002FREADME.md          user guide (every feature in detail)\ndocs\u002Fscreenshots\u002F       README images\n```\n\nThe parsers, renderers and diff engines have no DOM dependency, so they run in\na page, a worker, or headless.\n\n### Logo and icons\n\n`assets\u002Fkivi-logo.svg` is the logo. The page headers show it in the header's\ncolours (`src\u002Fapp\u002Flogo.js` inlines it: the orange parts follow the brand colour,\nthe white ones the header background). The app icons in `src-tauri\u002Ficons\u002F` are\ngenerated from it:\n\n```sh\npython3 tools\u002Fmake_icons.py\n```\n\n### Tests and visual checks\n\nThe tooling runs on `gjs` (GNOME's JavaScript runtime), so Node is not needed.\nThe tests use KiCad's demo projects without a KiCad installation:\n`tests\u002Fkicad-demos.txt` lists the design files they read (172 files, 74 MB, at a\npinned KiCad release, with git hashes), and `tools\u002Ffetch_demos.py` downloads\nthose from KiCad's GitHub mirror into the git-ignored `tests\u002Fkicad-demos\u002F`,\nchecking each hash and skipping files already there.\n\n```sh\npython3 tools\u002Ffetch_demos.py                     # get \u002F verify the listed files\npython3 tools\u002Ffetch_demos.py --refresh 10.0.7    # move the list to another KiCad release\n\n# Parse and render every KiCad demo project, check invariants\n# (envelope, NaN, unresolved references, pin-to-wire connectivity, footprints)\ngjs -m tests\u002Frun.js               # or: gjs -m tests\u002Frun.js path\u002Fto\u002Fprojects …\ngjs -m tests\u002Fdiff.js              # schematic, library symbol, board, footprint and rules diffs\ngjs -m tests\u002Fnets.js\ngjs -m tests\u002Freview.js\ngjs -m tests\u002Fgitlab.js\ngjs -m tests\u002Fmodels.js\ncargo test --manifest-path src-tauri\u002FCargo.toml --lib   # Rust side: model folders, git (needs dist\u002Fweb: run tools\u002Fbuild_web.py once)\n\n# Render a file to SVG\ngjs -m tools\u002Frender.js board.kicad_pcb out.svg --layers F.Cu,F.SilkS,Edge.Cuts\ngjs -m tools\u002Frender.js board.kicad_pcb face.svg --face front     # 3D texture artwork\n\n# Optional, manual, needs KiCad installed: compare against KiCad's own export\nkicad-cli sch export svg -o ref\u002F project.kicad_sch\npython3 tools\u002Fcompare.py ref\u002Fproject.svg out.svg cmp.png  x0 y0 x1 y1  [px_per_mm]\n\n# Smoke test: every page loads without script errors, the viewer opens\n# pic_programmer (headless WebKit, Tauri API mocked, no network)\ntests\u002Fsmoke.sh\n\n# Drive the pages yourself (served over HTTP, Tauri API mocked)\npython3 -m http.server 8000 &\nLIBGL_ALWAYS_SOFTWARE=1 xvfb-run -a gjs -m tools\u002Fbrowser-check.js \\\n  \"http:\u002F\u002F127.0.0.1:8000\u002Finbox.html#projects\" shot.png \\\n  --prelude \"$(cat tests\u002Ftauri-mock.js)\" --wait \"document.querySelector('.project-card')\"\n```\n\n`tools\u002Fscreenshots.sh` regenerates every screenshot in this README (all, or\nby name: `tools\u002Fscreenshots.sh viewer-3d-net`) after a UI change. It needs no\nnetwork or sign-in: `tools\u002Fscreenshots-prelude.js` answers GitHub and the\ndesktop app from the KiCad demo files, with a pull request that applies a few\nfixes to the CM5 MINIMA board, and serves KiCad's installed 3D library\n(`KICAD3D`, default `\u002Fusr\u002Fshare\u002Fkicad\u002F3dmodels`).\n\nWhat a passing run prints:\n\n```console\n$ python3 tools\u002Ffetch_demos.py          # here 5 files were missing or damaged\ndownloading 5 of 172 KiCad 10.0.6 demo files from KiCad\u002Fkicad-source-mirror …\n  1.3 MB in 3 s\ntests\u002Fkicad-demos: 172 KiCad 10.0.6 demo files ready\n$ gjs -m tests\u002Fdiff.js | tail -1\nall diff checks passed\n$ tests\u002Fsmoke.sh\nok    home\nok    pull-requests\nok    viewer\nok    diff\n```\n\n### Continuous integration\n\n`.github\u002Fworkflows\u002Fci.yml` runs the tests on every pull request and push to\n`main` (or `master`), and builds only for releases and manual runs:\n\n1. **Tests**: installs gjs, WebKitGTK and xvfb, restores the KiCad demo files\n   from the Actions cache (keyed on `tests\u002Fkicad-demos.txt`, so they're\n   downloaded only when the list changes or the cache expired after 7 unused\n   days), then runs the unit tests, the full demo sweep and `tests\u002Fsmoke.sh`.\n2. **Rust tests**, alongside: `cargo test` on the Rust side, with the Rust\n   build cached, and a check that `THIRD-PARTY-NOTICES.md` is up to date. All\n   three builds below wait for both test jobs.\n3. **Build (Linux)**, only for tags and manual runs (*Run workflow* on the\n   Actions tab): `cargo tauri build`, with the Rust build and the Tauri CLI\n   cached; lists the AppImage's bundled system libraries in\n   `appimage-libraries.md`. The AppImage and that list are the `kivi-linux`\n   artifact.\n4. **Build (Windows)**, likewise: `cargo tauri build --no-bundle` on a Windows\n   runner; the `kivi-windows` artifact holds `KiVi_\u003Cversion>_x64.exe` with\n   `LICENSE` and `THIRD-PARTY-NOTICES.md` next to it (GitHub zips every run\n   artifact for download; release files aren't).\n5. **Build (macOS)**, likewise: `cargo tauri build --target\n   universal-apple-darwin` on a macOS runner; the `kivi-macos` artifact holds\n   `KiVi_\u003Cversion>_universal.dmg` (Apple Silicon and Intel; `LICENSE` and\n   `THIRD-PARTY-NOTICES.md` are inside the app). Not code-signed or notarised.\n\nPushing a tag `v\u003Cversion>` (for example `v0.2.0`) runs all five and publishes a\nGitHub Release. The version comes from the tag: each build first runs\n`tools\u002Fset_version.py`, which writes it into `src-tauri\u002Ftauri.conf.json`,\n`src-tauri\u002FCargo.toml` and `src-tauri\u002FCargo.lock`, so there's nothing to bump\nby hand (the versions in the repository are only for local and manual builds;\na tag that isn't `v\u003Cmajor>.\u003Cminor>.\u003Cpatch>`, optionally with `-beta.1` and the\nlike, fails the build). The release has the AppImage, the\nWindows `.exe`, the macOS `.dmg`, `LICENSE`, `THIRD-PARTY-NOTICES.md`,\n`appimage-libraries.md` and `KiVi_\u003Cversion>_source.tar.gz` (`git archive` of\nthe tag, with the version written in). Merges don't build, so run the workflow by hand on `main` before\ntagging and check all three builds pass.\n\n## Licence\n\nKiVi is free software: you can redistribute it and\u002For modify it under the terms\nof the [GNU General Public License](LICENSE), version 3 or (at your option) any\nlater version. It comes with no warranty.\n\nIt includes third-party software under its own licences: three.js (MIT),\nChevrotain (Apache-2.0), occt-import-js with Open CASCADE Technology (LGPL-2.1)\nand the Rust crates behind Tauri (mostly MIT and Apache-2.0), plus three icons\nfrom GitHub's Octicons (MIT) and KiCad's default drawing sheet (GPL-2.0-or-later).\n[THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md) has their licence texts and is\ninstalled with the app. Each release also carries its source code\n(`KiVi_\u003Cversion>_source.tar.gz`). Regenerate it with `python3 tools\u002Fnotices.py` after\nchanging `Cargo.lock` or `vendor\u002F` (CI fails if it's out of date). The AppImage\nalso bundles system libraries (GTK, WebKitGTK, GStreamer…) from the build\nmachine; each release lists them with their licences and sources in\n`appimage-libraries.md`.\n\nThe GitHub and GitLab logos in the sign-in dialog aren't part of KiVi: they're\nloaded from GitHub and GitLab when the dialog opens (GitLab's artwork is\nlicensed CC BY-NC-SA, which isn't GPL-compatible, so KiVi doesn't ship it).\nGitHub is a trademark of GitHub, Inc. and GITLAB is a trademark of GitLab\nInc.; KiVi isn't affiliated with either.\n","KiVi 是一款面向硬件开发者的桌面应用，用于可视化浏览、对比和评审 KiCad 电路设计项目。它支持本地解析 KiCad 6–10 的原理图（.sch）、PCB（.kicad_pcb）和 3D 模型文件，提供实时渲染、跨视图联动（如原理图选网→PCB高亮→3D定位）、分层查看、测量与视觉化差异比对（以器件、网络、封装等 KiCad 语义单位呈现变更）。无需服务器部署或在线账户，通过单文件应用（AppImage\u002FEXE\u002FDMG）即可离线运行，兼容 GitHub\u002FGitLab 仓库及本地目录。适用于开源硬件协作、PCB 设计代码审查、团队设计评审及教育场景中的原理图与版图教学演示。","2026-11-24 04:42:04","CREATED_QUERY"]