Skip to content

About

WittyComics: the comics, manga and webtoon reader module for WittyMediaServer

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

WittyComics

A reader for comics, manga and webtoons. You need it to read comics in WittyMediaServer.

It's a module of WittyMediaServer (wittymediaserver.com), on module API 5, built on WittyInk. The same reader also runs in the WittyReader app.

A comic open in the reader

Pepper&Carrot, David Revoy, CC BY 4.0.

A shelf of comics

A shelf of comics in WittyMediaServer. Pepper&Carrot, David Revoy, CC BY 4.0, and public-domain strips.

What it does

  • Page, Spread or Scroll: one page, two side by side with the cover alone so pairs line up as printed, or one vertical strip for webtoons.
  • Either direction: left to right, or right to left for manga. Arrows, taps, swipes and the slider all follow it.
  • Fit height or width: a whole page on screen, or tall pages read top to bottom.
  • Easy to turn: tap the outer thirds, swipe, or use the arrows, Space, Page Up, Page Down, Home and End. Tap the middle for the bars.
  • Smooth: the next three pages are fetched ahead.
  • Remembered per book: layout, direction and fit, and it reopens on the same page.

The settings are in one Reading panel behind the gear button.

The Reader page, and how the server opens comic archives, stay with the server. No comics come with it.

How to use it is in Help inside WittyMediaServer: see Books, PDFs and comics.

How to get it

An admin adds it from the module store inside WittyMediaServer: Settings → Modules, then Browse the store, then Add beside WittyComics. The range this version fits is in module.json: WittyMediaServer 0.8.0-alpha through 0.8.x, module API 5. The server takes API 5 modules only, so older servers can't use this version. How modules work on the server is in its docs/MODULES.md.

Adding it brings WittyInk, which it's built on.

What it needs

WittyInk, and React 18 or newer, which the app provides.

Platforms

It's one browser bundle for every system the server runs on, and it runs on whichever device opens the server. It has been seen working in a desktop browser, against a test server on Linux. It also runs in the WittyReader app. Safari, real phones and real TVs have not been tried.

Building and testing

You need Node.js 22, as CI uses, and Go for the manifest check. In a worktree, first run WittyMediaServer's scripts/dev-modules.mjs (or the copy its --root option keeps in the folder above the repositories). It writes only links that git ignores, so the checkout builds against the repositories beside it.

npm install
npm run build:bundle

That makes one script and one stylesheet, as a server installs them, with WittyModule's builder (kit/web/build-bundle.mjs in a WittyModule checkout beside this one, or wherever WITTYMODULE names). To check the manifest:

go run github.com/wittywilla/wittymodule/cmd/wittymodule check .

npm test checks sdui.json, and that register hands over a reader for exactly the formats integration.json claims. CI checks the manifest and builds the bundle.

To use it in another app, give it a ReaderHost whose comic field lists the pages, and set reading to rtl or webtoon to choose the first layout: see Embedding and the rest of wiki/.

How the app finds it

Module API 5: integration.json claims the cbz format with the readers hook (web.readers), and the bundle's register(host) hands over the reader for it. The web app opens a book with whichever module in use claims its format, after loading WittyInk, which every reader is built on. The app has no list of readers of its own.

In every app: its server-driven UI

It carries its own sdui.json: its theme scope, and Settings, Comics (each profile's own): the layout, direction and fit a comic opens with the first time. Its library and book pages come with WittyInk, which every reader shares.

Stays in the reader's own code: the reading surface: pages, spreads and the vertical strip.

The file is checked with wittymodule check and described in WittyMediaServer's docs/SDUI-MODULES.md.

Working on a Mac? Start with WittyMediaServer's MAC-START-HERE.md: what to install, what to clone, and every Mac task in order: this module's is item 7.1 (wittywilla/WittyMediaServer#571).

Licence

GNU Affero General Public License v3.0 (or later): see LICENSE and NOTICE. If you redistribute it or build on it, please keep the NOTICE attribution.

WittyComics is part of the WittyMediaServer project: server repository, wittymediaserver.com.

Releasing

A version tag builds the bundle for the browser, signs the checksum list, and publishes a release that servers can install.

Versions move in small steps as work lands. go run github.com/wittywilla/wittymodule/cmd/wittymodule@v0.5.4 bump . raises it everywhere it is written (add -part minor for a bigger step). A bump isn't a release: nothing is tagged or published until you tag it. CI fails when code changed since the last tag and the version didn't, because tags never move.

To release:

  1. Check that version in module.json is the one to publish, with the bump committed.
  2. Tag that commit and push the tag: git tag vX.Y.Z, then git push origin vX.Y.Z. A tag with a suffix, such as v1.2.0-beta, is published as a prerelease.
  3. Watch the Actions tab. The signing step uses the WMS_SIGNING_KEY secret of the release environment, and nothing is published without it.

To take a version back, run the withdraw workflow from the Actions tab. It adds the version to a signed list on the release tagged withdrawals, which servers read.

Licensed under AGPL-3.0-or-later: see LICENSE and NOTICE.

Legal

WittyComics is an independent open-source project. It isn't associated with, sponsored by or endorsed by any publisher, rights holder, service or other media software project. No comics come with it, and it doesn't check the ones you open: you're responsible for having the rights to them. Any third-party names here only describe what it works with, and belong to their owners. It's provided “as is”, with no warranty; see LICENSE. Local law applies to how you use it. This isn't legal advice.

About

WittyComics: the comics, manga and webtoon reader module for WittyMediaServer

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages