Skip to content

Make JevFish installable in one line and findable at all - #4

Merged
markiewee merged 2 commits into
mainfrom
feat/installable-and-findable
Sep 18, 2026
Merged

markiewee merged 2 commits into
mainfrom
feat/installable-and-findable

Conversation

@markiewee

Copy link
Copy Markdown
Owner

Packaging and presentation. No change to how a run executes.

Two measured defects

1. The wheel shipped no UI. uv build --wheel gave 34 files with no web/dist, because PACKAGE_ROOT was Path(__file__).resolve().parents[2]: the repo root from a checkout, and a nonsense path inside site-packages once installed. Verified consequences: an installed copy served / as a 404, the bundled example seed was missing so "Fill in the example" broke, and the key file and data directory resolved somewhere unwritable.

2. The install was 1.1 GB and 97 percent was never used. camel-oasis pulled sentence-transformers, which pulled torch at 553 MB, plus scipy 83, transformers 59, pandas 49, sympy 42, sklearn 34 and numpy 26. JevFish does no local inference; it makes HTTP calls to Jev and to an OpenAI-compatible endpoint. The code was already ready for this: make_platform and the PDF reader both already imported lazily, so only the dependency declaration forced the download.

What is in it

  • assets.py, the only module that knows where files 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.
  • Optional extras. camel-ai and camel-oasis become [oasis], PDF support becomes [pdf]. mcp is dropped, having been declared with zero imports anywhere. pymupdf becomes pypdf, which also removes a copyleft obligation: PyMuPDF is itself AGPL-3.0 or a paid Artifex licence, so it burdened jevfish/ independently of MiroFish. pypdf is BSD-3-Clause.
  • A README that is about JevFish. The old one opened with MiroFish's logo, Trendshift badge, Discord badge and vision statement, mentioned MiroFish 30 times against JevFish 10, and put its first runnable command at line 112 (median across 46 comparable repos is 60; ollama's is 15). The new one: first command at line 11, 4 MiroFish mentions against 28, 3 badges. It leads with the keyless demo, which already worked and was invisible, then the install, then what the tool will not do, placed above the screenshots deliberately.
  • AGPL obligations we were not meeting: NOTICE (section 4), a dated modification notice (5(a)), a licence section in prose (5(b)), and THIRD_PARTY.md. Deletes update-star-history.yml and its data, 36 KB of scheduled job charting upstream's star count on our own repo.
  • Graceful extras errors. Asking for the reddit platform without the extra now prints the install command and points at --platform lite, instead of a bare ModuleNotFoundError.

Measured, clean venv each time

Before After
core install 1,100 MB 27 MB
with all extras 1,100 MB 993 MB
wheel contents 34 files, no UI 49 files, carries web_dist and examples
GET / 404 200
GET /api/health 200 200
JS bundle not served 200, 301,083 bytes
default data_dir inside the package ~/Library/Application Support/jevfish
torch present yes, 553 MB no

The full five-stage pipeline runs from the installed copy.

Repo identity

Renamed markiewee/mirofish-jev to markiewee/jevfish via gh, with its own description, its own homepage (was mirofish.ai) and 10 topics where there were none.

Still outstanding and it needs one click: the repo is fork=true, and GitHub excludes forks from repository search and from topic pages. Searching mirofish-jev returned 0 results; with fork:true it returned 1. Natural experiment in the same ecosystem, both figures checked against the API: nikmcfly/MiroFish-Offline, detached with 10 topics, has 2,522 stars, while EleutheroiEdge/mirofish-offline, a fork with 0 topics and a byte-identical description, has 0. Leaving the fork network is self-service in Settings, Danger Zone, and safe here (0 stars, 0 forks, 0 open issues), but there is no REST endpoint for it and it sits next to Delete, so a human should do it.

Testing

175 pass with extras; 158 pass and 4 skip on a core install, so the suite is honest either way. New test_assets.py and test_optional_extras.py. The PDF test now builds a 561-byte PDF by hand, because pypdf reads but cannot author and pulling in a writer would undo the point.

One test was retargeted after it revealed the extras refusal actually fires in _import_oasis rather than make_platform, since oasis_platform imports oasis lazily. The test now matches where the error really surfaces, verified against a real 27 MB install.

🤖 Generated with Claude Code

markiewee and others added 2 commits September 18, 2026 17:04
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) <noreply@anthropic.com>
The repo presented itself as MiroFish. The old root README opened with
MiroFish's logo, its Trendshift badge, its Discord and star badges and its
vision statement, mentioned MiroFish 30 times against JevFish 10, and put
its first runnable command at line 112. Against 46 comparable repos the
median first command sits at line 60 and ollama's at 15.

New README: first command at line 11, 4 MiroFish mentions against 28
JevFish, 3 badges. It leads with the keyless demo, which already worked and
was invisible, then the install, then what the tool will NOT do, placed
above the screenshots on purpose: that the number is not a real-world rate,
that with no resolved outcomes it reports no trustworthy interval and says
so, and that it checks whether it is quoting your own prompt.

MiroFish's READMEs move to docs/UPSTREAM-README.md and -ZH.md, which is also
where the licence notice now points.

AGPL obligations we were not meeting, all now met:
  section 4     NOTICE file with the copyright and warranty disclaimer
  section 5(a)  the modification notice is now dated (17 September 2026)
  section 5(b)  a licence section in prose, not just a LICENSE file
  section 6(d)  release bodies will carry the source pointer
Plus THIRD_PARTY.md listing every component and its licence, and recording
why PyMuPDF was dropped (itself AGPL, so it carried an obligation unrelated
to MiroFish) and why mcp was dropped (declared, never imported).

Also deletes .github/workflows/update-star-history.yml and its data, 36 KB
of scheduled job charting 666ghj/MiroFish's star count. We were advertising
someone else's numbers on our own repo.

Repo metadata set via gh: renamed markiewee/mirofish-jev to
markiewee/jevfish, own description, own homepage, and 10 topics where there
were none. Still fork=true, which is a one-click web-UI action with no API.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@markiewee
markiewee merged commit 92037f6 into main Sep 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant