From f73f9e7dad13ca392ccb270a5c5873e6b9198833 Mon Sep 17 00:00:00 2001 From: Mark Wee Date: Fri, 18 Sep 2026 16:59:28 +0800 Subject: [PATCH 1/2] fix(packaging): 1.1 GB to 27 MB, and a wheel that actually serves the UI Two measured defects, both verified before and after. 1. The wheel shipped no UI. `uv build --wheel` gave 34 files with no web/dist, because PACKAGE_ROOT was Path(__file__).parents[2]: the repo root from a checkout, and a nonsense path inside site-packages once installed. So an installed copy served / as a 404, the bundled example seed was missing, and the key file resolved somewhere unwritable. New assets.py is the only module that knows where things live. Read-only assets moved inside the package (src/jevfish/web_dist, src/jevfish/ examples) and resolve through importlib.resources; anything written goes to the platform user-data directory. vite now builds straight into the package. PACKAGE_ROOT is gone. 2. The install was 1.1 GB and 97 percent of it was never used. camel-oasis pulled sentence-transformers, which pulled torch at 553 MB, plus scipy, transformers, pandas, sympy and sklearn. JevFish does no local inference. camel-ai, camel-oasis and PDF support are now optional extras, mcp is dropped (declared with zero imports anywhere), and pymupdf becomes pypdf. pymupdf mattered for a second reason: it is AGPL-3.0 or a paid Artifex licence, so dropping it removes a copyleft obligation that had nothing to do with MiroFish. pypdf is BSD-3-Clause. Measured, clean venv each time: core install 27 MB (was 1,100 MB) with all extras 993 MB wheel 49 files, carries web_dist and examples GET / 200 GET /api/health 200 JS bundle 200, 301,083 bytes default data_dir ~/Library/Application Support/jevfish, outside the package torch present False The full five-stage pipeline runs from the installed copy. Asking for the reddit platform without the extra now prints the install command and points at --platform lite, rather than a bare ModuleNotFoundError. Tests: 162 pass with extras, 158 pass and 4 skip on a core install, so the suite is honest either way. One test was retargeted after it revealed that the refusal fires in _import_oasis rather than make_platform, since oasis_platform imports oasis lazily. Co-Authored-By: Claude Opus 5 (1M context) --- .../docs/research/adoption-and-packaging.md | 1623 +++++++++++++++++ .../docs/research/calibration-experiment.md | 429 +++++ jevfish/docs/research/current-state.md | 212 +++ jevfish/docs/research/prediction-accuracy.md | 1453 +++++++++++++++ .../superpowers/plans/2026-09-18-PR-draft.md | 193 ++ .../docs/superpowers/plans/2026-09-18-PRD.md | 174 ++ .../2026-09-18-adoption-and-packaging.md | 1379 ++++++++++++++ .../plans/2026-09-18-prediction-accuracy.md | 1527 ++++++++++++++++ jevfish/pyproject.toml | 25 +- jevfish/src/jevfish/api.py | 5 +- jevfish/src/jevfish/assets.py | 70 + jevfish/src/jevfish/config.py | 11 +- jevfish/src/jevfish/example.py | 4 +- .../jevfish/examples/hotel-rate-ladder-v2.md | 115 ++ .../src/jevfish/examples/hotel-rate-ladder.md | 115 ++ .../jevfish}/examples/lazybee-cleaning.md | 0 .../jevfish/examples/pureloft-suasana-kl.md | 75 + jevfish/src/jevfish/platforms/base.py | 15 +- .../src/jevfish/platforms/oasis_platform.py | 7 +- jevfish/src/jevfish/service.py | 15 +- .../web_dist}/assets/index-BHsORouT.css | 0 .../web_dist}/assets/index-BX2Ou-8v.js | 0 .../dist => src/jevfish/web_dist}/index.html | 0 jevfish/tests/extras.py | 21 + jevfish/tests/test_assets.py | 60 + jevfish/tests/test_launcher.py | 11 +- jevfish/tests/test_optional_extras.py | 81 + jevfish/tests/test_pipeline.py | 43 +- jevfish/tests/test_platforms.py | 15 +- jevfish/uv.lock | 1024 ++++++++++- jevfish/web/vite.config.js | 3 +- 31 files changed, 8640 insertions(+), 65 deletions(-) create mode 100644 jevfish/docs/research/adoption-and-packaging.md create mode 100644 jevfish/docs/research/calibration-experiment.md create mode 100644 jevfish/docs/research/current-state.md create mode 100644 jevfish/docs/research/prediction-accuracy.md create mode 100644 jevfish/docs/superpowers/plans/2026-09-18-PR-draft.md create mode 100644 jevfish/docs/superpowers/plans/2026-09-18-PRD.md create mode 100644 jevfish/docs/superpowers/plans/2026-09-18-adoption-and-packaging.md create mode 100644 jevfish/docs/superpowers/plans/2026-09-18-prediction-accuracy.md create mode 100644 jevfish/src/jevfish/assets.py create mode 100644 jevfish/src/jevfish/examples/hotel-rate-ladder-v2.md create mode 100644 jevfish/src/jevfish/examples/hotel-rate-ladder.md rename jevfish/{ => src/jevfish}/examples/lazybee-cleaning.md (100%) create mode 100644 jevfish/src/jevfish/examples/pureloft-suasana-kl.md rename jevfish/{web/dist => src/jevfish/web_dist}/assets/index-BHsORouT.css (100%) rename jevfish/{web/dist => src/jevfish/web_dist}/assets/index-BX2Ou-8v.js (100%) rename jevfish/{web/dist => src/jevfish/web_dist}/index.html (100%) create mode 100644 jevfish/tests/extras.py create mode 100644 jevfish/tests/test_assets.py create mode 100644 jevfish/tests/test_optional_extras.py diff --git a/jevfish/docs/research/adoption-and-packaging.md b/jevfish/docs/research/adoption-and-packaging.md new file mode 100644 index 0000000000..e23d4fadb0 --- /dev/null +++ b/jevfish/docs/research/adoption-and-packaging.md @@ -0,0 +1,1623 @@ +# JevFish: adoption and packaging research + +Compiled 18 September 2026. Star counts and release figures pulled live from the GitHub REST API on that date. Local measurements were run on this machine against `/Users/mark/Desktop/claudine/projects/mirofish-jev`. + +Two corrections to the brief before anything else, both measured: + +1. The committed frontend is **332 KB**, not 39 MB. `jevfish/web/dist` is 3 tracked files (332 KB); the 39 MB is `jevfish/web/node_modules`, which is gitignored (`jevfish/.gitignore:6`). Only 34 files are tracked under `jevfish/web`. +2. The backend is **Flask**, not FastAPI. `jevfish/src/jevfish/api.py:1` reads `"""HTTP API (Flask). Serves the Vue app from web/dist at /."""`, and `pyproject.toml` lists `flask>=3.0`. This matters for the Vercel and PyInstaller sections below. + +Emoji have been removed from the quoted README excerpts below. They are otherwise verbatim. + +--- + +## Executive summary, ranked by impact per unit of effort + +1. **The repo is a GitHub fork, so it does not exist in GitHub search.** `search/repositories?q=mirofish-jev` returns **0**; with `fork:true` it returns **1**. Forks are excluded from repository search and from topic pages by default. Leaving the fork network is self-service and free, and costs nothing here (0 stars, 0 issues, 0 child forks). Natural experiment in the same ecosystem: `nikmcfly/MiroFish-Offline` (detached, 10 topics) has **2,522 stars** while `EleutheroiEdge/mirofish-offline` (a fork, 0 topics) has **0**, on a byte-identical description. +2. **The repo still presents itself as MiroFish.** Description is MiroFish's Chinese-and-English tagline, the homepage field points at `mirofish.ai`, topics are **zero of a permitted 20**, and three badges plus a whole 18 KB workflow report upstream's star count. Every shared link unfurls as MiroFish. Fix: about 40 minutes. +3. **A one-line install already works and nobody knows.** Verified live: `uv` clones the public repo, finds the package via `git+https://github.com/markiewee/mirofish-jev#subdirectory=jevfish` and resolves all 140 packages, with the commit SHA pinned for free. +4. **But the wheel ships no UI.** `uv build --wheel` gives 34 files / 168,620 bytes and **no `web/dist`**, because `PACKAGE_ROOT = Path(__file__).resolve().parents[2]` (`config.py:19`) resolves to `lib/python3.12` once installed. I applied the two-line fix and verified the wheel then serves `GET /` at 200 with the real index and the 301 KB JS bundle. +5. **The install is 1.1 GB and about 940 MB of that is never used.** `camel-oasis==0.2.5` hard-depends on `sentence-transformers`, dragging torch 2.14.0 (553 MB), transformers (59 MB), scipy (82 MB), scikit-learn (34 MB), sympy (41 MB), plus `pre-commit` and `pytest` as runtime deps. Measured: **1.1 GB / 161 packages** today, **118 MB / 59** without `camel-oasis`, **66 MB** if `pymupdf` also goes. Cold install drops from 27.4 s to 4.4 s. +6. **PyMuPDF is itself AGPL** ("Dual Licensed, GNU AFFERO GPL 3.0 or Artifex Commercial License"), used in exactly one already-lazy import at `service.py:59`. So `jevfish/` carries a copyleft obligation independent of MiroFish, and a hosted demo triggers AGPL Section 13 through it. Swapping to `pypdf` (BSD-3-Clause) is five lines, removes that obligation and saves 54 MB. Best value-per-line change in the report. +7. **The keyless demo already exists and is undiscoverable.** With `JEVFISH_FAKE_JUDGE=1 JEVFISH_FAKE_LLM=1` the full five-stage pipeline runs in about ten seconds with no API keys and returns a real calibrated prediction with a 90% range. No competitor in this market lets anyone see output without a signup. This belongs as the first command in the README. +8. **The unsigned `.app` is the weakest part of the funnel, and signing it would certify nothing.** `spctl` reports `rejected, source=no usable signature`. The right-click-Open bypass was removed in macOS 15.0, so the only path is System Settings, Open Anyway, which needs an admin password and expires after about an hour. Notarization costs USD 99/yr and would seal a 148 KB shell around 1 GB downloaded after launch. Switching the ZIP to a DMG is near-free and strictly better today. +9. **The README buries the install and the numbers.** First fenced block is at **line 112** against a 46-repo median of 60 and Ollama's 15, the brand ratio is 37 MiroFish mentions to 4 JevFish, and 44 of 46 high-star adjacent repos put media at a median of line 3. Target hero GIF: 300 to 900 KB, the band lazygit (665 KB) and zoxide (627 KB) sit in. +10. **The name is clear, the vocabulary is not.** `jevfish` is free on PyPI, npm and GitHub (0 repos, 0 users), and all four of `jevfish.com/.ai/.dev/.app` have no DNS records. But the README uses none of the words the audience types: silicon sampling, generative agents, synthetic respondents, AI focus group, social simulation. + +--- + +## 1. Comparable projects and what their repos look like + +### 1.1 Live figures, 18 September 2026 + +| Repo | Stars | Forks | Lang | Licence | README lines | First install command at line | Position | +|---|---|---|---|---|---|---|---| +| ollama/ollama | 181,191 | 17,922 | Go | MIT | 356 | 16 | 4% | +| langflow-ai/langflow | 154,960 | | Python | MIT | | | | +| open-webui/open-webui | 152,442 | 22,304 | Python | custom | 261 | 116 | 44% | +| AUTOMATIC1111/stable-diffusion-webui | 164,994 | 30,938 | Python | AGPL-3.0 | 205 | 154 | 75% | +| Comfy-Org/ComfyUI | 133,718 | 15,829 | Python | GPL-3.0 | 437 | 185 | 42% | +| tauri-apps/tauri | 111,148 | | Rust | Apache-2.0 | | | | +| astral-sh/uv | 89,946 | 3,591 | Rust | Apache-2.0 | 326 | 50 | 15% | +| **666ghj/MiroFish (upstream)** | **73,886** | **11,362** | Python | **AGPL-3.0** | 203 | 172 | **84%** | +| openinterpreter/openinterpreter | 68,378 | 5,884 | Rust | Apache-2.0 | 147 | 34 | 23% | +| Mintplex-Labs/anything-llm | 66,164 | 7,348 | JS | MIT | 326 | none (download button) | | +| lllyasviel/Fooocus | 53,098 | 8,612 | Python | GPL-3.0 | 486 | 132 | 27% | +| Aider-AI/aider | 49,036 | | Python | Apache-2.0 | 180 | none (docs link) | | +| oobabooga/textgen | 47,681 | | Python | AGPL-3.0 | | | | +| janhq/jan | 44,517 | 3,032 | TS | custom | 204 | 114 | 55% | +| danny-avila/LibreChat | 44,264 | 9,099 | TS | MIT | 264 | none | | +| khoj-ai/khoj | 37,399 | 2,484 | Python | **AGPL-3.0** | **107** | none (docs link) | | +| ItzCrazyKns/Vane (ex-Perplexica) | 36,867 | 4,092 | TS | MIT | 251 | 71 | 28% | +| Genesis-Embodied-AI/genesis-world | 29,963 | | Python | Apache-2.0 | | | | +| assafelovic/gpt-researcher | 29,503 | 4,014 | Python | Apache-2.0 | 369 | 102 | 27% | +| marimo-team/marimo | 22,821 | 1,275 | Python | Apache-2.0 | 350 | 60 | 17% | +| joonspk-research/generative_agents | 22,121 | 3,107 | - | Apache-2.0 | 141 | 45 | 31% | +| camel-ai/camel | 17,741 | 2,083 | Python | Apache-2.0 | | | | +| Nuitka/Nuitka | 15,129 | | Python | AGPL-3.0 | | | | +| SakanaAI/AI-Scientist | 14,574 | 2,056 | Notebook | custom | | | | +| pyinstaller/pyinstaller | 13,095 | | Python | custom | | | | +| pypa/pipx | 12,967 | | Python | MIT | | | | +| simonw/llm | 12,526 | | Python | Apache-2.0 | | | | +| darrenburns/posting | 12,424 | | Python | Apache-2.0 | 60 | 34 | 56% | +| **microsoft/TinyTroupe** | **7,571** | | Notebook | MIT | 844 | 237 | 28% | +| tconbeer/harlequin | 6,403 | | Python | MIT | 179 | 23 | 12% | +| **camel-ai/oasis** | **5,156** | 631 | Python | Apache-2.0 | 369 | 115 | 31% | +| OpenBMB/AgentVerse | 5,132 | | JS | Apache-2.0 | | | | +| mesa/mesa | 3,846 | 1,313 | Python | Apache-2.0 | 142 | 37 | 26% | +| beeware/briefcase | 3,348 | | Python | BSD-3 | | | | +| google-deepmind/concordia | 1,709 | 368 | Python | Apache-2.0 | 187 | 80 | 42% | +| tsinghua-fib-lab/AgentSociety | 1,293 | | Python | Apache-2.0 | | | | +| AgentTorch/AgentTorch | 649 | 98 | Notebook | **AGPL-3.0** | 127 | none | | +| sotopia-lab/sotopia | 332 | | Python | MIT | | | | + +LM Studio is closed source and has no public repo, so it is out of scope for README study; it is an Electron (reportedly now Tauri) signed installer distributed from lmstudio.ai. + +Two patterns worth naming. The projects with the highest adoption relative to their niche put the install command in the **top 20% of the README** (Ollama 4%, harlequin 12%, uv 15%, marimo 17%). The upstream MiroFish, despite 73,886 stars, buries its first command at **84%**, which tells you stars came from a trending-list spike and Chinese social distribution, not from README conversion. Note also that MiroFish's Discord has only **800 members** (65 online) against 73,886 stars: a 0.011 ratio. Compare ComfyUI Discord at **60,973** members and Open WebUI at **35,077**. Stars are not users. + +### 1.2 The most instructive READMEs, first 30 lines + +**Ollama, 181,191 stars. The gold standard for "download and it works".** First install command at line 16 of 356. + +``` +

+ + ollama + +

+ +# Ollama + +Start building with open models. + +## Download + +### macOS + +```shell +curl -fsSL https://ollama.com/install.sh | sh +``` + +or [download manually](https://ollama.com/download/Ollama.dmg) + +### Windows + +```shell +irm https://ollama.com/install.ps1 | iex +``` + +or [download manually](https://ollama.com/download/OllamaSetup.exe) + +### Linux + +```shell +curl -fsSL https://ollama.com/install.sh | sh +``` + +Nine lines of prose total before the heading `## Download`. One sentence of positioning ("Start building with open models"). No badges at all. Both a script and a manual download per platform. Release evidence that this works: `Ollama-darwin.zip` 188 MB with **59,719 downloads** and `OllamaSetup.exe` 1,497 MB with **58,282 downloads** on the latest tag alone, while the bare `install.sh` asset shows 9,110. + +**nikmcfly/MiroFish-Offline, 2,522 stars. The single most relevant comparable: a MiroFish derivative that got adopted.** First install command at line 56 of 205. + +``` +
+ +MiroFish Offline + +# MiroFish-Offline + +**Fully local fork of [MiroFish](https://github.com/666ghj/MiroFish) - no cloud APIs required. English UI.** + +*A multi-agent swarm intelligence engine that simulates public opinion, market sentiment, and social dynamics. Entirely on your hardware.* + +[![GitHub Stars](https://img.shields.io/github/stars/nikmcfly/MiroFish-Offline?style=flat-square&color=DAA520)](https://github.com/nikmcfly/MiroFish-Offline/stargazers) +[![GitHub Forks](https://img.shields.io/github/forks/nikmcfly/MiroFish-Offline?style=flat-square)](https://github.com/nikmcfly/MiroFish-Offline/network) +[![Docker](https://img.shields.io/badge/Docker-Build-2496ED?style=flat-square&logo=docker&logoColor=white)](https://hub.docker.com/) +[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-blue?style=flat-square)](./LICENSE) + +
+ +## What is this? + +MiroFish is a multi-agent simulation engine: upload any document (press release, policy draft, financial report), and it generates hundreds of AI agents with unique personalities that simulate the public reaction on social media. Posts, arguments, opinion shifts, hour by hour. + +The [original MiroFish](https://github.com/666ghj/MiroFish) was built for the Chinese market (Chinese UI, Zep Cloud for knowledge graphs, DashScope API). This fork makes it **fully local and fully English**: + +| Original MiroFish | MiroFish-Offline | +|---|---| +| Chinese UI | **English UI** (1,000+ strings translated) | +| Zep Cloud (graph memory) | **Neo4j Community Edition 5.15** | +| DashScope / OpenAI API (LLM) | **Ollama** (qwen2.5, llama3, etc.) | +| Zep Cloud embeddings | **nomic-embed-text** via Ollama | +| Cloud API keys required | **Zero cloud dependencies** | +``` + +The structure is a template JevFish can copy line for line: banner, H1, one bold line saying "fork of X, and here is the one thing that is different", one italic line saying what the thing is, four badges including an AGPL badge, then a two-column **original versus this fork** table before any install instruction. Its attribution section (line 197) reads: + +``` +## Credits & Attribution + +This is a modified fork of [MiroFish](https://github.com/666ghj/MiroFish) by [666ghj](https://github.com/666ghj), originally supported by [Shanda Group](https://www.shanda.com/). The simulation engine is powered by [OASIS](https://github.com/camel-ai/oasis) from the CAMEL-AI team. +``` + +**khoj-ai/khoj, 37,399 stars. AGPL-3.0, Python, local-first, hosted demo: the closest legal and architectural analog.** 107 lines, and **no install command in the README at all**. + +``` +

Khoj Logo

+ +
+ +[![test](https://github.com/khoj-ai/khoj/actions/workflows/test.yml/badge.svg)](https://github.com/khoj-ai/khoj/actions/workflows/test.yml) +[![docker](https://github.com/khoj-ai/khoj/actions/workflows/dockerize.yml/badge.svg)](https://github.com/khoj-ai/khoj/pkgs/container/khoj) +[![pypi](https://github.com/khoj-ai/khoj/actions/workflows/pypi.yml/badge.svg)](https://pypi.org/project/khoj/) +[![discord](https://img.shields.io/discord/1112065956647284756?style=plastic&label=discord)](https://discord.gg/BDgyabRM6e) + +
+ +
+Your AI second brain +
+ +
+ +
+ +[Docs](https://docs.khoj.dev) +  •   +[Web](https://khoj.dev) +  •   +[App](https://app.khoj.dev) +  •   +[Discord](https://discord.gg/BDgyabRM6e) +  •   +[Blog](https://blog.khoj.dev) + +
+``` + +Khoj's whole self-host section is three lines: `## Self-Host` / "To get started with self-hosting Khoj, [read the docs](https://docs.khoj.dev/get-started/setup)." The README's job is reduced to: logo, three CI badges that prove the thing builds, one-line positioning, five links, a 19.2 MB demo GIF, a feature bullet list, an FAQ. This is the right model if you intend to run a docs site. It is the wrong model if you do not, because the README then dead-ends. + +**Open WebUI, 152,442 stars. The counter-example on badges.** Nine shields badges before a single word of prose, first install at line 116 of 261, and the hero is a **281 KB PNG at the repo root** (`./demo.png`), not a GIF. + +``` +# Open WebUI + +![GitHub stars](https://img.shields.io/github/stars/open-webui/open-webui?style=social) +![GitHub forks](https://img.shields.io/github/forks/open-webui/open-webui?style=social) +![GitHub watchers](https://img.shields.io/github/watchers/open-webui/open-webui?style=social) +![GitHub repo size](https://img.shields.io/github/repo-size/open-webui/open-webui) +![GitHub language count](https://img.shields.io/github/languages/count/open-webui/open-webui) +![GitHub top language](https://img.shields.io/github/languages/top/open-webui/open-webui) +![GitHub last commit](https://img.shields.io/github/last-commit/open-webui/open-webui?color=red) +[![Discord](https://img.shields.io/badge/Discord-Open_WebUI-blue?logo=discord&logoColor=white)](https://discord.gg/5rJgQTnV4s) +[![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/open-webui) + +Open WebUI is **a home for AI**, a self-hosted AI platform that's **[extensible](...)**, **[feature-rich](...)**, user-friendly, and built to run **[entirely offline](...)**. + +Passionate about open-source AI? [Join our team →](https://careers.openwebui.com/) + +![Open WebUI Demo](./demo.png) +``` + +Note that six of those nine badges are vanity metrics (repo size, language count, top language) that carry no information for a visitor. Do not copy this part. + +**microsoft/TinyTroupe, 7,571 stars. The closest project by subject matter: LLM persona simulation for business insight.** 844 lines, first install at 237. Its opening is worth reading because it is the vocabulary JevFish's audience already uses: + +``` +# TinyTroupe +[![Core Tests](.../core-tests.yml/badge.svg)](...) + +*LLM-powered multiagent persona simulation for imagination enhancement and business insights.* + +

+ A tiny office with tiny people doing some tiny jobs. +

+ +>[!TIP] +>**New Paper Released!** Check out our [TinyTroupe paper (preprint)](https://arxiv.org/abs/2507.09788) ... + +*TinyTroupe* is an experimental Python library that allows the **simulation** of people with specific personalities, interests, and goals. ... Here are some application ideas to **enhance human imagination**: + + - **Advertisement:** TinyTroupe can **evaluate digital ads (e.g., Bing Ads)** offline with a simulated audience before spending money on them! + - **Software Testing:** TinyTroupe can **provide test input** to systems ... + - **Training and exploratory data:** TinyTroupe can generate realistic **synthetic data** ... + - **Product and project management:** TinyTroupe can **read project or product proposals** and **give feedback** from the perspective of **specific personas** ... + - **Brainstorming:** TinyTroupe can simulate **focus groups** and deliver great product feedback at a fraction of the cost! +``` + +Five named use cases in five bullets, each with a concrete example and a named product. That is what JevFish's README is missing: it explains the mechanism (five stages, seven typed Jev questions) and never says what a buyer would use it for. + +**MiroShark, 1,451 stars. An AGPL MiroFish derivative that is purely a marketing exercise, and it works.** First install at line 57 of 184. Its hero is an **11,393-byte animated SVG** with keyword-loaded alt text: + +``` +

+ MiroShark - Simulate anything for $1 in under 10 minutes with 100+ grounded agents. The pipeline flows input → build world → swarm → report. Keywords: multi-agent simulation, social simulation, swarm intelligence, agent-based modeling, LLM agents, prediction market, scenario testing. +

+ +

Simulate anything.

+ +

+ $1 · per simulation  ·  10 min · first result  ·  100+ · grounded agents +

+``` + +Three numbers above the fold: price per run, time to first result, agent count. JevFish already has the equivalent numbers and buries them in prose at line 22 of `jevfish/README.md` ("about US$0.00006 a turn, and it takes about 1 second from Singapore"). Those belong above the fold: **$0.00006 per agent turn, about 1 second per turn**. + +### 1.3 The fork versus detached natural experiment + +This is the most important finding in the report because it is free to act on and the evidence is unusually clean. + +Two repositories, byte-identical description ("Offline multi-agent simulation & prediction engine. English fork of MiroFish with Neo4j + Ollama local stack."): + +| Repo | `fork` flag | Topics | Stars | +|---|---|---|---| +| `nikmcfly/MiroFish-Offline` | false | 10 | **2,522** | +| `EleutheroiEdge/mirofish-offline` | true | 0 | **0** | + +Across the top 40 MiroFish derivatives by stars, **36 are detached and 4 are forks**. The highest-starred fork in the whole set is `ByeongkiJeong/MiroFish-Ko` at 222 stars; the highest-starred detached derivative is 2,522. Across the first 100 results, medians are close (forks 12, detached 9), so the effect is not on the median repo, it is on the ceiling: a fork cannot break out. + +Other derivatives to note, all detached: `MiroShark/MiroShark` 1,451, `jangles-byte/Pythia` 1,102, `D2I-CUHKSZ/MicroWorld` 1,039, `SCTY-Inc/mirofish-cli` 310, `tt-a1i/MiroFish-local` 152, `nativ3ai/hermes-geopolitical-market-sim` 130, `ChinmayShringi/MicroFish-En` 118, `luis212/NovaShoal-Swarm-Sim` 117. The derivative market is real, crowded, and JevFish's differentiator (typed calibrated decisions rather than parsed free text) is genuinely unoccupied in it. + +### 1.4 Distribution mechanics of the comparables + +Latest-release assets and download counts, live from the API: + +| Project | Assets | Sizes | Downloads on latest tag | +|---|---|---|---| +| ollama/ollama v0.34.2 | 17 | `Ollama-darwin.zip` 188 MB, `Ollama.dmg` 188 MB, `OllamaSetup.exe` 1,497 MB | zip 59,719; exe 58,282; dmg 2,060; `install.sh` 9,110 | +| janhq/jan v0.8.4 | 11 | `Jan_0.8.4_universal.dmg` 97 MB, `jan-mac-universal-0.8.4.zip` 97 MB, `Jan_0.8.4_x64-setup.exe` 55 MB | exe 91,746; mac zip 77,361; dmg 19,630; `latest.json` 313,061 (auto-updater polling) | +| Comfy-Org/ComfyUI v0.36.0 | 4 | `ComfyUI_windows_portable_nvidia.7z` 1,828 MB | nvidia 29,088 | +| Mintplex-Labs/anything-llm v1.16.1 | 7 | `AnythingLLMDesktop.exe` 391 MB, `AnythingLLMDesktop-Silicon.dmg` 522 MB | exe 9,111; AppImage 1,178; Silicon dmg 613 | +| khoj-ai/khoj 2.0.0-beta.28 | 3 | Obsidian plugin files only (`main.js`, `manifest.json`, `styles.css`) | 7,264 / 7,858 / 6,989 | +| marimo-team/marimo 0.24.2 | 0 | none (PyPI only) | | +| **666ghj/MiroFish v0.1.2** | **0** | **none** | | + +Three lessons. Windows is where the download volume is (Jan: 91,746 exe against 19,630 dmg plus 77,361 mac zip; Ollama: 58,282 exe against 59,719 mac zip, so roughly even). `latest.json` at 313,061 downloads is Jan's Tauri auto-updater and is the clearest signal of real retained users in the whole table. And a project can be enormous with zero release assets (marimo, MiroFish) if the install path is a package manager. + +### 1.5 Docs sites, detected by fetching each site + +| Project | Docs URL | Generator | Host | +|---|---|---|---| +| astral-sh/uv | docs.astral.sh/uv | **Material for MkDocs** | Cloudflare | +| marimo-team/marimo | docs.marimo.io | **MkDocs** | Vercel | +| khoj-ai/khoj | docs.khoj.dev | **Docusaurus** | GitHub Pages | +| open-webui/open-webui | docs.openwebui.com | **Docusaurus** | GitHub Pages | +| camel-ai/oasis | docs.oasis.camel-ai.org | **Mintlify** | Vercel | +| Comfy-Org/ComfyUI | docs.comfy.org | **Mintlify + Starlight** | Vercel | +| mesa/mesa | mesa.readthedocs.io | **Sphinx** | ReadTheDocs | + +Two free-and-good defaults emerge: Material for MkDocs (what uv uses, single `mkdocs.yml`, one Action) and Docusaurus (what both AGPL/Python local-first projects use, on GitHub Pages). MiroFish has **no docs site** (`has_pages: false`), which is part of why its README is 203 lines of everything. + +### 1.6 Hosted demos + +Upstream MiroFish has one, and it is the cheapest possible version: `https://666ghj.github.io/mirofish-demo/` is a **Vue SPA on GitHub Pages** (confirmed: `server: GitHub.com`, 1,359-byte `index.html`, module script at `/mirofish-demo/assets/index-BnqFA15a.js`, no API calls, Cloudflare Insights beacon). It is a static replay of a pre-computed simulation. No backend, no API keys, no bill, and no AGPL Section 13 network-interaction exposure. + +CAMEL-AI runs interactive Hugging Face Spaces instead (`huggingface.co/spaces/camel-ai/agent-trust-Trust-Game-Demo`, `camel-ai/camel-agents`), and the camel-agents Space requires the **visitor** to paste their own API key, which is the pattern that avoids paying for strangers' inference. + +Note that the large self-hosted projects mostly do not run official hosted demos: LibreChat and AnythingLLM only have third-party community mirrors on HF Spaces. They lead with Docker. + +--- + +## 2. The "download and it works" problem for Python apps + +### 2.0 JevFish's measured baseline + +| Check | Result | +|---|---| +| `JevFish.app` size | 148 KB, 3 files (`Info.plist`, `MacOS/JevFish`, `Resources/AppIcon.icns`) | +| `codesign -dv --verbose=4` | `code object is not signed at all` | +| `spctl -a -vvv` | `rejected`, `source=no usable signature` | +| `.venv` | **1.1 GB**, 161 packages | +| `uv build --wheel` output | 34 files, **168,620 bytes**, **no `web/dist`** | +| Tracked files under `jevfish/web` | 34 (dist is 332 KB) | + +So today the `.app` is a script-only wrapper with no signature, which is both the worst case for Gatekeeper and the hardest thing to notarize meaningfully. + +### 2.1 The dependency tree is the biggest single lever + +Traced from `jevfish/uv.lock`: + +``` +camel-oasis==0.2.5 + -> sentence-transformers==3.0.0 + -> torch==2.14.0 553 MB + -> transformers==4.57.6 59 MB + -> scikit-learn==1.9.1 34 MB + -> scipy==1.18.1 82 MB + -> sympy (via torch) 41 MB + -> pandas, pillow, neo4j, cairocffi, igraph, slack-sdk, + unstructured (-> lxml 21 MB), prance, openapi-spec-validator, + requests-oauthlib, AND pre-commit + pytest + pytest-asyncio +``` + +`camel-oasis` ships dev tools (`pre-commit`, `pytest`) as runtime dependencies, which is a packaging bug on their side that you inherit. + +Measured by actually installing each variant into a fresh venv on this machine: + +| Variant | Size | Packages | +|---|---|---| +| Current `jevfish/.venv` | **1.1 GB** | 161 | +| Drop `camel-oasis` (keep `camel-ai`) | **118 MB** | 59 | +| Drop `camel-oasis`, swap `pymupdf` (54 MB) for `pypdf` | **66 MB** | | +| Drop `camel-ai` too (Jev + LLM + Flask + pypdf) | **27 MB** | | + +JevFish already has "a fast in-memory platform" as an alternative to OASIS (`jevfish/README.md`, stage 3). So `camel-oasis` belongs in `[project.optional-dependencies] oasis = ["camel-oasis==0.2.5"]`, imported lazily, and the default install drops from 1.1 GB to 118 MB (17x if pymupdf also goes). That single change does more for the download experience than any packaging technology in this section. + +### 2.2 `uv tool install` and `uvx`: this already works, verified live + +I ran a real resolution against the live public repo: + +``` +$ echo 'jevfish @ git+https://github.com/markiewee/mirofish-jev#subdirectory=jevfish' > gittest.txt +$ uv pip compile gittest.txt -o gitresolved.txt --python-version 3.12 +resolved packages: 140 +jevfish @ git+https://github.com/markiewee/mirofish-jev@77bbedc7ff62ac125953de0c89e79b25996fb3f0#subdirectory=jevfish +torch==2.14.0 +camel-oasis==0.2.5 +typesafe-sdk==0.6.0 +``` + +uv cloned the repo, found the `jevfish` package inside the `jevfish/` subdirectory via the `#subdirectory=` fragment, and pinned the resolved commit SHA for free. So these commands work **today**: + +``` +uv tool install "git+https://github.com/markiewee/mirofish-jev#subdirectory=jevfish" +jevfish serve + +# or, without installing anything permanently +uvx --from "git+https://github.com/markiewee/mirofish-jev#subdirectory=jevfish" jevfish serve +``` + +`pyproject.toml` already declares `[project.scripts] jevfish = "jevfish.cli:main"` and `cli.py` already has a `serve` subcommand that prints `Open http://{host}:{port}`. + +**Three defects stop this being the headline install path.** All are small: + +1. **`web/dist` is not in the wheel.** `uv build --wheel` yields 34 files and no web assets. `api.py:20` does `WEB_DIST = PACKAGE_ROOT / "web" / "dist"`, and `config.py:19` sets `PACKAGE_ROOT = Path(__file__).resolve().parents[2]`. Installed into site-packages, `parents[2]` is `lib/python3.12`, so the UI 404s. Fix: move the built assets to `src/jevfish/web/dist/` and resolve them relative to the module, and let the uv build backend ship them. +2. **`.env` and `data/` resolve to the same wrong place** (`config.py:28`, `config.py:91`). Fix: `platformdirs.user_data_dir("JevFish")` with the current path kept as a fallback when running from a checkout. +3. **Nothing opens a browser.** `grep -rn "webbrowser" src/` returns nothing. `cmd_serve` prints a URL and blocks. Fix: after the port binds, `webbrowser.open(f"http://127.0.0.1:{port}")`, plus a `--headless` flag, which is exactly what marimo does. + +Install syntax reference, from https://docs.astral.sh/uv/guides/tools/: + +``` +uv tool install ruff +uvx ruff # ephemeral, = uv tool run ruff +uvx --from httpie http # command name differs from package +uvx --from git+https://github.com/httpie/cli httpie +uvx --from git+https://github.com/httpie/cli@v3.0.0 httpie +``` + +How a user gets uv (https://docs.astral.sh/uv/getting-started/installation/): + +``` +curl -LsSf https://astral.sh/uv/install.sh | sh +powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" +brew install uv +winget install --id=astral-sh.uv -e +``` + +uv 0.12.16 asset sizes: `uv-aarch64-apple-darwin.tar.gz` 16 MB, `uv-x86_64-apple-darwin.tar.gz` 19 MB, `uv-x86_64-pc-windows-msvc.zip` 16 MB. No Python is needed beforehand; uv fetches its own managed CPython. That last fact is the whole reason to prefer uv over pipx. + +Measured install speeds on a subagent's run of the same machine class: `fastapi uvicorn` cold with `--no-cache` was 1.05 s for a 10 MB venv; an eight-package scientific set was 15.22 s for 305 MB. Extrapolated, a 1.1 GB venv is roughly 45 to 60 s on a good connection, and a 118 MB venv is roughly 6 to 10 s. + +**Who distributes this way:** Aider-AI/aider (49,036 stars) whose `curl -LsSf https://aider.chat/install.sh | sh` is uv's own installer plus one `uv tool install --python python3.12 aider-chat` line; marimo (22,821) `uvx marimo edit --sandbox`; simonw/llm (12,526) `uv tool install llm`; darrenburns/posting (12,424) `uv tool install --python 3.13 posting`; tconbeer/harlequin (6,403); ml-explore/mlx-lm (7,044); simonw/files-to-prompt (2,790) `uvx files-to-prompt`. + +Friction for a non-technical Mac user: open Terminal, paste two lines. No Gatekeeper dialog, no admin password, no "damaged" scare. The cliff is Terminal itself. Cost: **USD 0**, roughly 4 to 8 hours including a hosted `install.sh`. + +### 2.3 pipx + +Same shapes, smaller reach: + +``` +pipx install jevfish +pipx run jevfish +pipx install --spec "git+https://github.com/markiewee/mirofish-jev#subdirectory=jevfish" jevfish +pipx install pipx[uv] # uv-backed venv creation, same CLI +``` + +pypa/pipx has **12,967 stars** against uv's 89,946 and is actively maintained (last push 2026-09-18), so it is superseded in practice rather than legacy. pipx's own comparison page (https://pipx.pypa.io/latest/explanation/comparisons.html) frames them as peers and names the real difference: "uv tool ships a smaller per-tool surface, then reuses the rest of uv for free: managed Python, content-addressed cache, lockfiles, PEP 723 script handling." The decisive gap for a non-technical installer is that pipx needs a working Python 3 first. Document it as a one-line fallback; about 30 minutes of README. + +### 2.4 Frozen bundles: PyInstaller, Nuitka, Briefcase, py2app + +| Tool | Stars | Reported sizes | Notes | +|---|---|---|---| +| pyinstaller/pyinstaller | 13,095 | FastAPI + uvicorn exe roughly 35 to 40 MB on Windows (https://aiechoes.substack.com/p/building-production-ready-desktop); a plain PyQt5 app hitting 800 MB is "a common experience", trimmable under 200 MB (https://www.pythonguis.com/faq/pyinstaller-on-macos-frustration/) | onefile extracts to temp on every launch, slow cold start | +| Nuitka/Nuitka | 15,129 (AGPL-3.0) | a TensorFlow app bundle measured **2.84 GB**, `_pywrap_tensorflow_internal.so` alone 1.3 GB (https://github.com/Nuitka/Nuitka/issues/2359) | compiles to C, longest build times | +| beeware/briefcase | 3,348 | default scaffold roughly 190 MB on macOS | signs and notarizes for you | +| ronaldoussoren/py2app | **425** | comparable to PyInstaller | macOS only, tiny community, maintenance risk | + +Known breakage, all of which JevFish would hit: + +- **Dynamic imports.** Static analysis cannot see `importlib.import_module()`, `__import__()`, `exec()`. Flask and Werkzeug are milder than uvicorn here, but `camel-ai` and `mcp` both dispatch dynamically. Diagnose with `--debug=imports` (https://pyinstaller.org/en/stable/when-things-go-wrong.html). +- **`importlib.metadata`.** `importlib.metadata.version("pkg")` raises `PackageNotFoundError` in a frozen app; needs a hook with `from PyInstaller.utils.hooks import copy_metadata` (https://pyinstaller.org/en/stable/hooks.html, https://github.com/pyinstaller/pyinstaller/issues/5814). Anything resolving entry points at runtime breaks here. +- **Data files.** `web/dist` has to go in via `--add-data` and be resolved at runtime through `sys._MEIPASS`, not `__file__`. This is the same bug class as defect 1 in section 2.2. +- **Hardened runtime collision.** `codesign --deep -s $ID -o runtime` on a PyInstaller macOS binary has crashed at startup with `MemoryError` and `[6159] Failed to execute script pyiboot01_bootstrap` in `ctypes/__init__.py line 273 in _reset_cache` (https://github.com/pyinstaller/pyinstaller/issues/4629). Hardened runtime is mandatory for notarization, so this is on the critical path. + +Who actually ships PyInstaller builds: **spesmilo/electrum** (8,591 stars), whose own docs note that from macOS 10.15 the output "also need to be notarized by Apple's central server" (https://github.com/spesmilo/electrum/blob/master/contrib/osx/README.md); **Ultimaker/Cura** (7,041), which produces both the macOS DMG and the Linux AppImage. Both are single-binary GUI apps, the easier case. + +For JevFish, freezing a Flask app plus a static bundle plus a 1.1 GB tree realistically lands at 300 to 700 MB per platform after trimming, at an estimated **30 to 60 hours**, and you still owe Apple USD 99. Skip until there is demand pull. Note also: cut the tree to 66 MB first (section 2.1) and the frozen bundle becomes a far more tractable 90 to 150 MB. + +### 2.5 macOS signing and notarization, since our `.app` is unsigned + +**What the user sees on macOS 15 Sequoia and macOS 26 Tahoe.** Apple's own page (https://support.apple.com/en-us/102445) lists the dialog **"Apple cannot check 'Example App' for malware"** with only **Move to Trash** and **Done** as buttons, and describes exactly one recovery path: System Settings, Privacy and Security, scroll to Security, **Open Anyway**, confirm again. The page does not mention right-clicking at all. + +**The right-click Open workaround is gone.** Removed in macOS 15.0: "Before macOS 15.0, you could ctrl+right-click an unsigned application and force it to run. In macOS 15.0, Apple removed the ability to do this" (https://www.osnews.com/story/141055/). Confirmed at announcement (https://www.idownloadblog.com/2024/08/07/apple-macos-sequoia-gatekeeper-change-install-unsigned-apps-mac/) and still gone in Tahoe (https://swissmacuser.ch/fix-macos-tahoe-app-is-damaged-and-cant-be-opened-move-trash/). + +Two extra cruelties: the Open Anyway button "is available for about an hour after you try to open the app" (https://support.apple.com/en-ca/guide/mac-help/mh40617/mac), and it requires an administrator username and password. On a managed or corporate Mac that is a hard stop. + +The current README's instruction ("If macOS blocks the app because you downloaded the ZIP, open System Settings, Privacy & Security, and click Open Anyway") is factually correct for 15 and 26, which is good. What it understates is that this is a six-step, password-gated, one-hour-windowed flow whose default button is Move to Trash. + +**Which message means what:** + +| Message | Trigger | +|---|---| +| "unidentified developer" | Signed, but not with a Developer ID traceable to Apple, or not notarized | +| "Apple could not verify / cannot check for malware" | Quarantined with no notarization ticket. This is our case on Sequoia and Tahoe | +| "is damaged and can't be opened" | Quarantine plus failed signature or ticket validation; also the standard Apple-silicon result for a broken or absent arm64 signature (https://blog.margrop.net/en/post/macos-gatekeeper-unsigned-app-fix/) | + +All three run on the `com.apple.quarantine` xattr, applied by browsers and inherited by everything extracted from a quarantined ZIP. `xattr -dr com.apple.quarantine /path/to/JevFish.app` clears it and the app launches silently. Do not put that in a README: it trains users to defeat Gatekeeper on request. + +**The notarization flow.** Cost: **Apple Developer Program USD 99 per year** (https://developer.apple.com/help/account/membership/program-enrollment/). Certificate: **Developer ID Application**, issued only to Program members (https://developer.apple.com/support/developer-id). **There is no free notarization path**, because notarization is gated on a Developer ID which is gated on the paid membership. + +``` +security find-identity -v -p codesigning + +# sign bottom up; do NOT use --deep, it is unreliable +codesign -f -s "$ID" -o runtime JevFish.app/Contents/MacOS/JevFish +codesign -f -s "$ID" -o runtime JevFish.app + +xcrun notarytool store-credentials jevfish-profile \ + --team-id XXXXXXXXXX --apple-id "you@example.com" --password "APP_SPECIFIC_PASSWORD" + +ditto -c -k --keepParent JevFish.app JevFish.app.zip # `zip -qr` FAILS notarization +xcrun notarytool submit JevFish.app.zip --keychain-profile jevfish-profile --wait +xcrun stapler staple JevFish.app +spctl -a -vvv -t install JevFish.app # expect: accepted, source=Notarized Developer ID +xcrun notarytool log --keychain-profile jevfish-profile log.json +``` + +Two CI traps: `notarytool` **exits 0 even on failure**, so the pipeline must parse output, and it writes informational output to stderr not stdout. Turnaround is typically 2 to 15 minutes (https://www.forasoft.com/blog/article/the-pain-of-publishing-electron-apps-on-macos-303), but the tail is real: 3.5 to 4.5 hours consistently in one thread (https://developer.apple.com/forums/thread/813586), "stuck In Progress for 2+ days" in another (https://developer.apple.com/forums/thread/819403), and 24h+ for first submissions held for in-depth analysis (https://developer.apple.com/forums/thread/814827). Tauri and `electron/notarize` both have open issues about `--wait` hanging for hours (https://github.com/orgs/tauri-apps/discussions/8630, https://github.com/electron/notarize/issues/179). Budget 90-minute CI timeouts. + +**Can you notarize a shell-script `.app` bundle? Technically yes, meaningfully no.** Scripts carry no signature of their own; only the bundle seal covers them, and the seal covers only what exists **at sign time**. JevFish's script downloads uv and installs roughly 1 GB **after** launch, so a ticket would certify an empty shell around unverified downloaded code. Any post-install edit to the script invalidates the bundle. Bundled helper scripts are also a known rejection cause (Apple Developer Forums thread 127403). + +**Does hardened runtime break shelling out to a downloaded uv?** The distinction matters. Library validation constrains what loads **into your process**: "if library validation is enabled on an executable, the trusted execution system only allows the process to load code signed by Apple or with the same Team ID" (https://developer.apple.com/forums/thread/706437). A separate `fork/exec` of `uv` is its own process, so that part is fine. What bites is a 1 GB scientific venv full of third-party `.so` files being loaded into a signed process, which needs `com.apple.security.cs.disable-library-validation`, and Apple's own advice is to leave library validation on because disabling it makes Gatekeeper harder to pass. Separately, files fetched by curl inside a script generally do not get quarantined (curl does not set the xattr the way a browser does), which is why the current wrapper works at all. That is a loophole, not a guarantee. + +**Cheaper alternatives, honestly:** + +- **Ad-hoc or self-signed: worthless.** An ad-hoc signature works only on the machine that built it and "fails silently when copied to another computer" (https://gist.github.com/rsms/929c9c2fec231f0cf843a1a746a416f5). A self-signed CA cert is worse than useless because almost all the value of code signing requires traceability to a CA. +- **DMG over ZIP: do this now.** ZIP is the worst container. It cannot be code-signed at all, every extracted file inherits quarantine, and it triggers **App Translocation**, where the app runs from a read-only `/private/var/folders/.../AppTranslocation/` path. The JevFish launcher already fights this: `JevFish.app/Contents/MacOS/JevFish` contains the comment "A downloaded copy can run from a temporary path (App Translocation). Ask Spotlight." and falls back to `mdfind -name jevfish-folder-marker`. A DMG can be signed, does not translocate, makes the Gatekeeper dialog's default button **Open** rather than Move to Trash, and dragging to `/Applications` drops quarantine. Stapling only works on `.dmg`, `.pkg` and `.app`, never on a `.zip`. +- **Homebrew cask: this door closed on 1 September 2026.** Homebrew is removing `--no-quarantine` and will "end support for all casks that fail Gatekeeper checks on September 1st, 2026" (https://github.com/Homebrew/brew/issues/20755). Today is 18 September 2026, so the official-cask route for an un-notarized app is already past its deadline. A private tap with a `postflight` `xattr -dr` still works but is unsupported and teaches users to defeat Gatekeeper. + +Signing route cost: **USD 99/yr**, roughly 10 to 20 hours for a first signed-and-notarized DMG, plus 10 to 25 hours more if the bundle has to become a real self-contained app for the seal to mean anything. + +### 2.6 Tauri v2 or Electron around a local Python server + +Who actually does this: + +| Project | Stars | Shape | +|---|---|---| +| open-webui/open-webui | 152,442 | Python backend, no desktop shell. Docker first, then `pip install open-webui` and `open-webui serve`. Pins Python 3.11 explicitly | +| Mintplex-Labs/anything-llm | 66,164 | Node backend, separate Electron desktop app plus Docker | +| janhq/jan | 44,517 | llama.cpp backend, **Tauri** wrapper, auto-updater (`latest.json`: 313,061 downloads) | +| danny-avila/LibreChat | 44,264 | `docker compose up`, localhost:3080 | +| khoj-ai/khoj | 37,399, AGPL-3.0 | FastAPI backend, `pip install khoj` or docker compose, `--full` also installs desktop and Obsidian clients | +| pinokiocomputer/pinokio | 8,106 | Electron whose entire purpose is installing and babysitting other people's local servers | + +The pattern across all of them: **nobody ships an unsigned script-in-a-bundle.** They ship Docker plus pip, or a real signed desktop app. + +Tauri v2 has a first-class sidecar mechanism (https://v2.tauri.app/develop/sidecar/): + +```json +{ "bundle": { "externalBin": ["binaries/my-sidecar"] } } +``` + +with a target-triple suffix per binary (`my-sidecar-aarch64-apple-darwin`; find yours with `rustc --print host-tuple`), invoked via `Command.sidecar('binaries/my-sidecar')` in JS or `app.shell().sidecar("my-sidecar")` in Rust, and gated by a capability grant. The canonical FastAPI reference is `dieharders/example-tauri-v2-python-server-sidecar` (only **126 stars**), whose README flags the killer caveat: "we cannot use process.kill() for one-file Python executables since Tauri only knows the pid of the PyInstaller bootloader process and not its' child process". You inherit a hand-rolled shutdown protocol. + +Measured shell sizes (N=1, https://www.gethopp.app/blog/tauri-vs-electron): Tauri bundle **8.6 MiB** versus Electron **244 MiB**; memory across 6 windows 172 MB versus 409 MB; build time 81 s versus 16 s. But the shell size is irrelevant here, because the payload is the frozen Python: realistically **350 to 700 MB per architecture** at today's dependency tree, and you own every problem from section 2.4 plus a Rust toolchain plus the same USD 99. Estimated **60 to 120 hours**. Tauri also uses the platform WebView (WKWebView on macOS), so the existing Vue bundle needs a fresh cross-browser QA pass. + +### 2.7 Docker one-liner + +Open WebUI's actual line, verbatim: + +``` +docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main +``` + +The JevFish analogue, given two keys and a port: + +``` +docker run -d -p 8000:8000 \ + -e TYPESAFE_API_KEY=... -e GEMINI_API_KEY=... \ + -v jevfish:/app/data --name jevfish --restart always \ + ghcr.io/markiewee/jevfish:latest +``` + +LibreChat (44,264) and Vane/Perplexica (36,867) both lead with `docker compose up -d` after editing `.env`. The repo already has a root `Dockerfile` and `docker-compose.yml` from upstream, plus a `.github/workflows/docker-image.yml`, so this is mostly plumbing a JevFish-specific image. + +Friction, which is easy to underrate because it looks like one line: **Docker Desktop is a prerequisite install of roughly 6 GB** (about 1.5 GB for Docker.app plus the Linux VM image), 4 GB RAM minimum and 8 GB recommended (https://docs.docker.com/desktop/troubleshoot-and-support/faqs/macfaqs/). And the licence tripwire: free for personal use, education, non-commercial open source, and small business under **250 employees AND under USD 10 million annual revenue**; either threshold alone triggers payment, at roughly Pro USD 9, Team 15, Business 24 per user per month (https://docs.docker.com/subscription/desktop-license/). Every enterprise evaluator either already has a licence or cannot legally follow the README. + +Cost to us: 4 to 8 hours, **USD 0** (GHCR is free for public images), and it doubles as the deploy artifact for the hosted demo. Ship it as the power-user and Linux path, never as the headline. + +### 2.8 Hosted demo as the try-before-download path + +| Platform | Free reality in 2026 | Key server-side? | Cost at low traffic | Cold start | +|---|---|---|---|---| +| **HF Spaces** | CPU Basic is 2 vCPU / 16 GB / 50 GB non-persistent at USD 0/hr. But Gradio and Docker Spaces "require a paid plan to create: PRO for personal accounts". Static Spaces stay free for everyone. Free `cpu-basic` Spaces sleep after **48 h** idle, not configurable. Outbound restricted to ports 80, 443, 8080 | **Yes**, proper Secrets (value unreadable after set, not copied on duplication) versus public Variables, both as env vars. Secrets scanner flags hard-coded keys | **USD 0** on CPU Basic, else **USD 9/mo** PRO. CPU Upgrade (8 vCPU / 32 GB) USD 0.03/hr, about USD 22/mo running | roughly 2 min for a paused Space to start booting, plus app startup | +| **Streamlit Community Cloud** | 0.078 to 2 CPU cores, 690 MB to 2.7 GB RAM, up to 50 GB storage. Sleeps after **12 h** without traffic. Deployer needs admin on the repo. US-only. Unlimited public apps, 1 private | Yes, `st.secrets` from a TOML blob | **USD 0** | wake-on-visit prompt plus container boot | +| **Vercel** | Hosts Flask and FastAPI natively (WSGI and ASGI are both first class); entrypoint must be `app.py`, `index.py`, `server.py`, `main.py`, `wsgi.py` or `asgi.py` exposing a top-level `app`, or set `[tool.vercel] entrypoint`. Python 3.12 default. Bundle limit **500 MB uncompressed** (raised from 250 MB on 24 Feb 2026), 5 GB on Fluid large beta. Timeout 300 s default, 800 s on Pro with Fluid. **No automatic tree-shaking for Python** | Yes, project env vars | USD 0 on Hobby | per-invocation cold start | +| **Fly.io** | **The free tier is gone** (ended for new orgs 7 Oct 2024; new signups get 2 VM-hours or 7 days). `shared-cpu-1x`: 256 MB USD 2.02/mo, 512 MB 3.32, 1 GB 5.92, 2 GB 11.11. Egress USD 0.02/GB. Volumes USD 0.15/GB/mo even stopped. New apps default to `auto_stop_machines = "stop"`, `min_machines_running = 0` | Yes, `fly secrets set` | roughly **USD 3 to 6/mo** at 1 GB with scale-to-zero | no published number; community reports 5-min idle stop then cold boot | +| **GitHub Pages static replay** | Free, unlimited, no sleep | N/A (no keys, no backend) | **USD 0** | none, it is static | + +The Vercel blocker for JevFish as-is: a 1.1 GB dependency tree against a 500 MB uncompressed limit, with no Python tree-shaking. Cut the tree to 66 MB (section 2.1) and Vercel becomes viable for a thin demo API. Flask is directly supported, so the entrypoint work is small. + +The cheapest credible option, and what upstream already does, is the **static replay** described in 1.6: export one completed run to JSON, point the existing Vue app at it, publish to GitHub Pages. USD 0, no keys at risk, no Section 13 exposure, no sleep, and it can be linked from a "See a finished run" button above the fold. + +If an interactive demo is wanted later, copy CAMEL-AI's `camel-agents` Space and make the visitor paste their own keys. That removes both the inference bill and the key-exposure risk. + +### 2.9 The keyless demo already exists and nobody knows + +This is the single largest unexploited adoption asset in the repo. `config.py` supports `JEVFISH_FAKE_JUDGE=1` and `JEVFISH_FAKE_LLM=1`. I ran the full five-stage pipeline with no API keys, no `camel-oasis`, in the 117 MB slim venv: + +``` +$ JEVFISH_FAKE_JUDGE=1 JEVFISH_FAKE_LLM=1 python -m jevfish.cli demo \ + --seed examples/lazybee-cleaning.md --platform lite --rounds 3 --public 12 --stakeholders 3 +project p_9f7e9085bf +graph: {'chunks': 1, 'failed_chunks': 0, 'nodes': 8, 'edges': 7, 'types': {'Place': 4, 'Organization': 2, 'Person': 2}} +prepare: {'talking_points': 8, 'variants': 1, 'stakeholders': 3, 'public': 12} +run: {'run_id': 'r_0a66d40ea4', 'partial': None, 'requests': 67} + base As described: 7.1 of 15 (90% 4.6 to 9.6), first poll 6.8 + jev: {'model': 'fake', 'fake': True, 'requests': 67, 'input_tokens': 37880, 'est_cost_usd': 0.00159096} + llm: {'calls': 10, 'prompt_tokens': 3918, 'completion_tokens': 500, 'failures': 0} + +## Prediction +The simulated crowd leans towards: {"base": {"n": 15, "mean_outcome": 0.475, "expected_yes": 7.118, +"low": 4.612, "high": 9.624, "likely_yes": 7, "stance_mean": 2.459}} +``` + +Roughly ten seconds, zero keys, zero signup, zero cost, and a real calibrated output with a 90% range. That is the "it works" moment and it should be the first command in the README, ahead of any key setup. Four example seeds already ship in `jevfish/examples/` (`hotel-rate-ladder.md`, `hotel-rate-ladder-v2.md`, `lazybee-cleaning.md`, `pureloft-suasana-kl.md`), so if one is bundled into the package the whole thing is a single copy-paste with no local files needed. + +### 2.10 Verified proof that the recommended install path works + +I applied the three fixes from 2.2 to a copy of the tree and rebuilt: + +| Step | Result | +|---|---| +| Move `web/dist` to `src/jevfish/web/dist` and change `api.py:20` to `Path(__file__).resolve().parent / "web" / "dist"` | wheel goes from 34 files / 168,620 B to **40 files / 502,428 B uncompressed (174,808 B compressed)** and now contains `jevfish/web/dist/index.html` (1,102 B), `assets/index-BX2Ou-8v.js` (301,083 B), `assets/index-BHsORouT.css` (31,320 B) | +| Install that wheel into a venv with **no `camel-oasis`** | 117 MB venv, imports cleanly (so the OASIS import is already lazy, no code restructuring needed) | +| `create_app()` then `GET /` | **200, `text/html`, 1,102 bytes**, the real Vue shell | +| `GET /assets/index-BX2Ou-8v.js` | **200, 301,083 bytes** | + +Before the fix, the same test gave `WEB_DIST = .../lib/python3.12/web/dist`, `index.html present: False`, and a 150-byte fallback response. So the one-line install works after roughly a two-line change plus the `platformdirs` change for `.env` and `data/`. + +Cold install timings measured with `--no-cache` on this machine: + +| Tree | Time | Size | +|---|---|---| +| Slim (7 direct deps, no `camel-oasis`) | **4.35 s** | 68 MB | +| `camel-oasis==0.2.5` alone (today's default) | **27.44 s** | 978 MB | + +--- + +## 3. GitHub repo presentation mechanics + +### 3.0 What the fork measures today + +| Field | Current value | +|---|---| +| Stars / forks / watchers | 0 / 0 / 0 | +| `fork` | **true**, parent `666ghj/MiroFish` | +| Description | `A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物` (upstream's) | +| Homepage | **`https://mirofish.ai`** (upstream's site) | +| Topics | **0** of a permitted 20 | +| Releases | **0**, although tag `v0.1.2` exists | +| `has_pages` | false | +| Root README | 9,902 bytes, 208 lines | +| First fenced code block | **line 112** | +| Badges | **11**, of which the Stars, Watchers and Forks badges report `666ghj/MiroFish`'s numbers and the Trendshift badge is upstream repo id 16144 | +| Brand references in README | **37** for `666ghj|mirofish.ai|MiroFish` versus **4** for `JevFish` | +| Community health files | none (no CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, ISSUE_TEMPLATE, PULL_REQUEST_TEMPLATE) | +| `.github/workflows` | `docker-image.yml` (1,557 B), `jevfish-web.yml` (606 B), `update-star-history.yml` (**18,211 B, charting upstream's stars**) | +| `og:image` | auto-generated `opengraph.githubassets.com/...`, no custom social preview | +| `og:description` | upstream's Chinese-and-English tagline, so every shared link unfurls as MiroFish | + +Upstream by contrast has a custom social preview at `repository-images.githubusercontent.com/1104332987/...`. + +Two mechanical consequences of the `fork: true` flag, both verified: + +- `gh api "search/repositories?q=mirofish-jev"` returns **0**. With `+fork:true` it returns **1**. GitHub docs: "By default, forks are not shown in search results" (https://docs.github.com/en/search-github/searching-on-github/searching-in-forks). Topics pages are built from the same index. +- Code search only indexes forks with more stars than the parent, which at 73,886 is never. + +**Leaving the fork network** is self-service (Settings, Danger Zone, "Leave fork network") and requires the fork to be public, under 1 GB, and free of child forks (https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/detaching-a-fork). The fork is public, 17,291 KB and has 0 child forks, so all three conditions hold. It is permanent and does not retain "issues, pull requests, wikis, stars, watchers, comments, child forks, or other metadata", all of which are currently zero, so the cost is nil. Git commit metadata is preserved, which keeps the AGPL provenance intact. + +### 3.1 README structure: the actual evidence + +**Prana et al., "Categorizing the Content of GitHub README Files"**, Empirical Software Engineering 24(3), 2019. https://arxiv.org/abs/1802.06997 and https://link.springer.com/article/10.1007/s10664-018-9660-3. Manual annotation of **4,226 sections across 393 randomly sampled repositories**, plus an 8-category classifier at F1 0.746. + +| Category | Sections | % of sections | Files containing it | % of files | +|---|---|---|---|---| +| What | 707 | 16.7% | 381 | **97.0%** | +| How | 2,467 | **58.4%** | 348 | 88.5% | +| References | 858 | 20.3% | 239 | 60.8% | +| Who | 322 | 7.6% | 208 | 52.9% | +| Contribution | 122 | 2.9% | 109 | 27.8% | +| Why | 116 | 2.7% | 101 | **25.7%** | +| When (status) | 180 | 4.3% | 84 | **21.4%** | +| Other | 58 | 1.4% | 27 | 6.9% | + +The median README has **7 sections**, with the middle 50% between 5 and 12. Long is not the norm. Only 25.7% explain why the project exists and only 21.4% state status, so those are the two cheapest differentiators. The paper's practitioner survey (n=20) ranked usage and installation instructions first, license second, known bugs third. + +**Venigalla and Chimalakonda, "An Empirical Study On Correlation between Readme Content and Project Popularity"**, arXiv:2206.10772 (https://arxiv.org/abs/2206.10772), 1,950 READMEs across 10 languages: "readme files in majority of the popular projects are well organised using lists and images", they "comprise links to external sources", and "repositories with readme files containing contribution guidelines and references were observed to be associated with higher popularity." Popularity is a composite of stars, forks, watchers and PR count. Follow-on in Software: Practice and Experience 2025, https://onlinelibrary.wiley.com/doi/10.1002/spe.3390 + +**GitHub Open Source Survey 2017** (https://opensourcesurvey.org/2017/), 5,500 respondents from 3,800+ repositories: "Incomplete or outdated documentation is a pervasive problem, observed by 93% of respondents"; "60% of contributors say they rarely or never contribute to documentation"; and the one that bears directly on AGPL, "**64% say an open source license is very important in deciding whether to use a project, and 67% say it is very important in deciding whether to contribute**". Two thirds of evaluators will look for the licence, so AGPL-3.0 belongs stated plainly near the top rather than left to the sidebar. + +**Badges: the one study with a regression behind it.** Trockman, Zhou, Kästner, Vasilescu, "Adding Sparkle to Social Coding: An Empirical Study of Repository Badges in the npm Ecosystem", ICSE 2018, https://cmustrudel.github.io/papers/icse18badges.pdf. 294,941 npm packages plus a maintainer survey and regression-discontinuity time series on 1,762 packages. + +| Badge | Count | Share of 294,941 | +|---|---|---| +| Travis CI (build status) | 92,789 | **31.5%** | +| David DM | 23,601 | 8.0% | +| Coveralls | 17,603 | 6.0% | +| npm Downloads | 15,552 | 5.3% | +| CodeClimate | 6,652 | 2.3% | +| GitHub Stars | 630 | **0.2%** | + +- Badge adoption correlates with "a sizeable positive discontinuity in download counts at badge adoption (**33% increase on average**)", then "a small negative slope after the intervention". The boost decays; quality-assurance badges decay slower (8.8%). +- **H8 is supported**: a negative binomial model "suggests a nonlinear relationship in popular packages, with a predicted inflection point at **5 badges**, which supports H8: Packages with many badges tend to have fewer downloads." +- **H5**: "The adoption of a link-related badge does not correlate with either popularity or code quality." Discord, X and Instagram badges are link badges. + +So badges work only as assessment signals (CI, coverage, version), and more than about five is associated with worse outcomes. JevFish currently has 11, mostly link and vanity badges, three of which report another repo's numbers. + +**Measured across 46 high-star adjacent repos** (3,846 to 191,838 stars, selected for adjacency: local-first AI apps, Python tooling, agent frameworks, simulation, CLI tools): + +| Metric | n | min | p25 | median | mean | p75 | max | +|---|---|---|---|---|---|---|---| +| First fenced code block (line) | 39 | **15** | 39 | **60** | 86.4 | 115 | 261 | +| First install command (line) | 35 | 16 | 51 | **90** | 105.8 | 122 | 262 | +| First image or video (line) | 44 | 1 | 3 | **3** | 5.4 | 5 | 35 | +| Total lines | 46 | 1 | 151 | 327 | 412.6 | 473 | 2,505 | +| Badges in first 45 lines | 36 | 1 | 3 | **5** | 4.4 | 6 | 9 | +| Headings (h1 to h3) | 45 | 2 | 10 | 17 | 26.0 | 30 | 137 | +| Topics | 46 | 0 | 6 | 11 | - | 15 | **20** | + +Two convergences: the measured median badge count (5) lands exactly on Trockman's modelled inflection point, and the hero image sits at **line 3 in the median repo** (44 of 46 have media). Ten of 46 carry zero badges, including ollama (181,191), streamlit, lazygit, vllm and stable-diffusion-webui. + +JevFish's first fenced code block at **line 112** is worse than the p75 of this sample (115 is close, but the sample p25 is 39 and ollama is 15). + +**Recommended section order**, synthesised from the Prana ranking, the sample medians and the exemplars in 1.2: + +1. Logo or wordmark, name (lines 1 to 8) +2. One sentence of what it is, plus **3 assessment badges maximum** +3. **Hero media by line 3 to 10** +4. **The Why in two or three lines** (only 25.7% of READMEs do this) +5. **One runnable command by line 15 to 30** +6. Status and maturity, plus the AGPL statement (only 21.4% state status; 64% of evaluators care about licence) +7. Highlights as a short bullet list +8. Fuller usage, config, docs link +9. Fork provenance and attribution, contributing, licence + +Target 7 to 12 sections, under 200 lines. + +### 3.2 Hero GIF or video: hosting, limits and real sizes + +| Route | Per-file limit | Docs | +|---|---|---| +| Committed to the repo | Git **warns at 50 MiB**, **hard blocks at 100 MiB**; repos "ideally less than 1 GB" | https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-large-files-on-github | +| Drag-drop attachment (issue, PR, discussion, web editor) | "**10MB for images and gifs**"; "**10MB for videos** ... on a **free** GitHub plan"; "**100MB for videos** ... on a **paid** GitHub plan"; "25MB for all other files" | https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files | +| Release asset | "Each file included in a release must be **under 2 GiB**"; "Up to **1000** release assets"; "**no limit on the total size of a release, nor bandwidth usage**" | https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases | +| Git LFS | **10 GiB storage and 10 GiB bandwidth per month** on Free and Pro | https://docs.github.com/en/billing/concepts/product-billing/git-lfs | + +Supported attachment types: "PNG (`.png`), GIF (`.gif`), JPEG (`.jpg`, `.jpeg`), SVG (`.svg`), Video (`.mp4`, `.mov`, `.webm`)", with "we recommend using H.264 for greatest compatibility". Attachment URLs moved from `user-images.githubusercontent.com` to `github.com/user-attachments/assets/{uuid}` on 9 May 2023 (https://github.blog/changelog/2023-05-09-more-secure-private-attachments/); legacy URLs still resolve. + +The asymmetry that matters: **a 10.8 MB GIF cannot be drag-dropped (10 MB cap) but can be committed (100 MiB cap)**. AnythingLLM sidesteps both by putting its 30.4 MB hero GIF in a **release asset** (`releases/download/v1.11.2/AnythingLLM720p.gif`), where there is no size or bandwidth limit. + +**Does GitHub render `