Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
monbooru
command
Command monbooru is the binary: it reads the config, resolves the profile (server, desktop or portable), opens the galleries, starts the HTTP server and the desktop integration around it, and handles the subcommands and the restart-in-place the tray and the Settings page ask for.
|
Command monbooru is the binary: it reads the config, resolves the profile (server, desktop or portable), opens the galleries, starts the HTTP server and the desktop integration around it, and handles the subcommands and the restart-in-place the tray and the Settings page ask for. |
|
internal
|
|
|
api
Package api implements the /api/v1/ REST handlers for monbooru.
|
Package api implements the /api/v1/ REST handlers for monbooru. |
|
config
Package config is the TOML file, the environment overrides that layer on top of it, the defaults underneath, the validation between them, and the atomic save back.
|
Package config is the TOML file, the environment overrides that layer on top of it, the defaults underneath, the validation between them, and the atomic save back. |
|
counts
Package counts owns the whole-library tallies more than one caller divides by, and caches them per gallery.
|
Package counts owns the whole-library tallies more than one caller divides by, and caches them per gallery. |
|
db
Package db owns the SQLite handles and the schema.
|
Package db owns the SQLite handles and the schema. |
|
desktop
Package desktop resolves the per-OS locations and the one-time startup behaviour the -desktop profile needs.
|
Package desktop resolves the per-OS locations and the one-time startup behaviour the -desktop profile needs. |
|
fsx
Package fsx holds the filesystem primitives more than one package needs and none of them owns: it sits below every domain package so a caller as low as internal/config can reach it without inverting the import order.
|
Package fsx holds the filesystem primitives more than one package needs and none of them owns: it sits below every domain package so a caller as low as internal/config can reach it without inverting the import order. |
|
gallery
Package gallery owns the files under a gallery root: ingest, thumbnails, hashing, placement and the path containment every other package files through.
|
Package gallery owns the files under a gallery root: ingest, thumbnails, hashing, placement and the path containment every other package files through. |
|
galleryio
Package galleryio moves a whole gallery in or out: export, import, merge, and transfer between two live galleries, in each format the app ships.
|
Package galleryio moves a whole gallery in or out: export, import, merge, and transfer between two live galleries, in each format the app ships. |
|
galleryio/compatibility
Package compatibility translates foreign gallery exports (zipped Hydrus exports, ...) into the same in-memory shape the monbooru-native light import consumes.
|
Package compatibility translates foreign gallery exports (zipped Hydrus exports, ...) into the same in-memory shape the monbooru-native light import consumes. |
|
jobs
Package jobs is the one background job at a time: the state machine, its progress and cancellation, and the chunking loop the long runs walk their work in.
|
Package jobs is the one background job at a time: the state machine, its progress and cancellation, and the chunking loop the long runs walk their work in. |
|
library
Package library owns one open gallery: its paths, its database, the services and caches that hang off them, and the background work that keeps them fresh.
|
Package library owns one open gallery: its paths, its database, the services and caches that hang off them, and the background work that keeps them fresh. |
|
logx
Package logx is a thin level gate over the stdlib log package.
|
Package logx is a thin level gate over the stdlib log package. |
|
lookup
Package lookup holds the scheduled hash lookup's retry ladder, the "due" predicate, and the per-image attempt history.
|
Package lookup holds the scheduled hash lookup's retry ladder, the "due" predicate, and the per-image attempt history. |
|
markup
Package markup renders the bracket vocabulary that annotation bodies, operator notes and artist commentary carry: a few inline marks plus links to a tag search, to another image, or off-site.
|
Package markup renders the bracket vocabulary that annotation bodies, operator notes and artist commentary carry: a few inline marks plus links to a tag search, to another image, or off-site. |
|
metadata
Package metadata reads what a file says about itself: Stable Diffusion parameters from A1111 and Forge, ComfyUI workflows in both the API and the workflow shape, EXIF, and ComicInfo out of an archive.
|
Package metadata reads what a file says about itself: Stable Diffusion parameters from A1111 and Forge, ComfyUI workflows in both the API and the workflow shape, EXIF, and ComicInfo out of an archive. |
|
models
Package models is the vocabulary the other packages share: the row structs, the column list and scanner every image read goes through, and the job and origin constants more than one package names.
|
Package models is the vocabulary the other packages share: the row structs, the column list and scanner every image read goes through, and the job and origin constants more than one package names. |
|
monloader
Package monloader is monbooru's outbound half of the pair: the HTTP client that talks to the operator's monloader instance and nothing else.
|
Package monloader is monbooru's outbound half of the pair: the HTTP client that talks to the operator's monloader instance and nothing else. |
|
plugins
Package plugins supervises the child processes monbooru launches for operator-installed plugins.
|
Package plugins supervises the child processes monbooru launches for operator-installed plugins. |
|
procx
Package procx holds the child-process primitives more than one package needs and none of them owns.
|
Package procx holds the child-process primitives more than one package needs and none of them owns. |
|
relations
Package relations manages the operator-declared graph between images: duplicate groups, alternate groups, directed version chains, directed derivative trees, and the "not related" rejection set.
|
Package relations manages the operator-declared graph between images: duplicate groups, alternate groups, directed version chains, directed derivative trees, and the "not related" rejection set. |
|
search
Package search implements the Monbooru query language parser and SQL executor.
|
Package search implements the Monbooru query language parser and SQL executor. |
|
searchkw
Package searchkw declares the search query language's filter-keyword vocabulary as a leaf data package.
|
Package searchkw declares the search query language's filter-keyword vocabulary as a leaf data package. |
|
tags
Package tags owns the tag catalog and every image's membership in it: the tags themselves, their categories, aliases, implications and the image_tags rows that apply them.
|
Package tags owns the tag catalog and every image's membership in it: the tags themselves, their categories, aliases, implications and the image_tags rows that apply them. |
|
upgrade
Package upgrade holds the "this source serves a file we do not have" predicate in its two spellings - one over a loaded origin, one over an image_sources row - so the detail page's upgrade action, the replace handler's gate, and the `upgrade:` filter cannot disagree about what counts as a candidate.
|
Package upgrade holds the "this source serves a file we do not have" predicate in its two spellings - one over a loaded origin, one over an image_sources row - so the detail page's upgrade action, the replace handler's gate, and the `upgrade:` filter cannot disagree about what counts as a candidate. |
|
web
Package web is the HTTP transport: the mux, the handlers, the templates they render and the session, CSRF and rating-cookie plumbing around them.
|
Package web is the HTTP transport: the mux, the handlers, the templates they render and the session, CSRF and rating-cookie plumbing around them. |
Click to show internal directories.
Click to hide internal directories.





