[!TIP]
➡️ View The Live Gallery 🌠

ArchiveBox-compatible plugin suite (hooks and config schemas).
This package contains standalone plugin hook scripts and config schemas. A hook
can be run directly as a CLI; runners such as abx-dl
and archivebox add orchestration,
environment setup, and cache projection around the same scripts.
Usage
Tools like abx-dl and ArchiveBox can discover plugins from this package
without symlinks or environment-variable tricks.
Plugin Contract
Directory layout
Each plugin lives under plugins/<name>/ and may include:
config.json config schema
- optional
config.json > screenshot points to a plugin-owned JSON recipe, such as "screenshot": "screenshot.json"
- optional generic catalog metadata in
config.json: category, display_order, hidden, and x-auto-run (set false for hooks that require explicit host selection)
- optional
snapshot_thumbnail_cards declarations in config.json identify ArchiveResult names whose existing card.html may represent a snapshot in list and grid views, with an explicit order
- optional presentation metadata includes
snapshot_output_group, snapshot_output_order, snapshot_display_name, archive_result_aliases, default_output_path, icon_hidden, card_hidden, card_interactive, output_extension_preference, presentation_module, and boolean snapshot_<role> declarations such as snapshot_list_icon, snapshot_primary_preview, and snapshot_title_source; hosts consume these declarations generically while plugin templates and presentation modules retain the rendering behavior
- ArchiveWeb.page replay optionally reads the sibling
chrome/navigation.json artifact to select the recorded final navigation for the requested URL. Missing, malformed, unrelated, or unrecorded navigation metadata preserves selection from the WACZ page index alone.
- ArchiveWeb.page defaults
ARCHIVEWEBPAGE_STRIP_COOKIES=true: the native recorder cookie policy omits request Cookie and its x-wabac-preset-cookie replay copy. A guarded pinned-extension correction removes Cookie from the actual serialized header dictionary. Policy is snapshot-local, including inherited child recorders; concurrent captures cannot change each other through global extension settings. Set it to false only to intentionally retain cookies. In ArchiveBox, choose this setting in the persona editor’s ArchiveWeb.page plugin settings; the stored Persona.config override is {"ARCHIVEWEBPAGE_STRIP_COOKIES": false}. Persona-owned plugin overrides remain live unless a crawl or snapshot explicitly overrides them. Standalone abx-dl accepts the same setting through its normal runtime config/environment; selecting a persona directory alone does not load ArchiveBox’s persona database settings. Live authentication and persona cookies are unchanged. This is not general secret sanitization: response Set-Cookie, Authorization, URLs, bodies and browser storage may still contain secrets. It does not clean existing archives.
- ArchiveWeb.page removes its temporary recorder collection only after the exact WACZ has finished downloading and reached the snapshot output path. Failed exports retain their recording; unrelated collections and persona state are untouched. This prevents every exported capture from remaining duplicated in the browser profile.
- ArchiveWeb.page's pinned 0.17.0 replay worker uses a hash-validated Storage proxy correction so archived pages can remove the legacy
Object.prototype.__proto__ accessor. Only served worker bytes change; installed extension and archive bytes remain intact. Updating that dependency requires reviewing the worker hash and the three exact prototype-lookup replacements in presentation.py, then passing native replay Storage tests.
- Chrome MHTML previews optionally use unambiguous saved font responses from the sibling
responses/index.jsonl when native MHTML omits them. Native MIME parts take precedence; missing/malformed metadata or different font bodies for one URL leave the native preview unchanged. Downloaded MHTML bytes are never rewritten.
- Chrome navigation retries a temporary HTTP 429/503 GET at most once, using
Retry-After (seconds or HTTP date), or a 60-second cooldown when that hint is absent or invalid. The existing CHROME_TIMEOUT still bounds the entire navigation: a cooldown that cannot fit is never shortened and the response is reported as failed. POST responses, access challenges, and other HTTP errors are not retried. Browser identity remains unchanged. chrome/navigation.json preserves the HTTP status, attempt count, and failure reason; completed HTTP error pages are not reported as successful navigation.
- Managed Chrome selects the IndexedDB
UseLevelDbForNewStores rollout stage. Chromium's SQLite key-path encoding turns one-element array key paths into strings after a browser restart, corrupting both object-store and index schemas. New origin databases use LevelDB; existing SQLite databases remain accessible. Disabling the rollout entirely would hide existing SQLite state in Chrome 157. This setting does not repair metadata already persisted incorrectly.
config.json > required_binaries binary dependency declarations (optional)
on_CrawlSetup__... crawl setup hook scripts (optional) - shared setup/process startup, emit no stdout JSONL records
on_Snapshot__... per-snapshot hooks - emit ArchiveResult and may also emit Snapshot / Tag
ArchiveBox templates that need sibling output manifests should bind
{% snapshot_results snapshot 'responses,wget' as captures %} after
{% load core_tags %}, then reuse captures across their loops. The host selects
only the named plugins' manifests or reuses already-prefetched results; it does
not load every result's fields and files for each loop. This works in live cards
and static exports.
Hooks run with:
- SNAP_DIR = base snapshot directory (default:
.)
- CRAWL_DIR = base crawl directory (default:
.)
- Snapshot hook output =
SNAP_DIR/<plugin>/...
- Crawl hook output =
CRAWL_DIR/<plugin>/...
- Other plugin outputs can be read via
../<other-plugin>/... from your own output dir
Snapshot hooks may receive CACHE_CANDIDATES, a JSON list of records with
url, snapdir (relative to DATA_DIR), and created_at. ArchiveBox provides
sealed captures from the same owner, persona and visibility, preferring exact
URLs and including nearby paths. Hints may be absent, stale or incomplete.
On a cache miss, Git captures acquire a fresh shallow repository, all branch tips, and recursive
submodules in TMP_DIR/git/<hash of SNAP_DIR>/repo before replacing the saved
checkout. A failed acquisition preserves previous output. A local OS lock is
inherited by Git processes so an interrupted hook cannot leave a live child whose
scratch is deleted by another attempt. The next attempt discards only its own
abandoned scratch; it does not repair saved Git locks or resume a transaction.
This temporarily needs space for one additional repository/checkout. Publication
preserves runner sidecars, removes obsolete repository files, and reports copy
failures as failures. The saved layout remains git/.
Metadata and modules
Plugins may depend on other plugins through required_plugins. Plugin code must
not import or require archivebox or abx-dl.
config.json key |
Contract |
commands |
Command name → [relative executable, ...arguments]; JSON input/output follows the command's contract. |
output_str_type |
"path" (default) or "text"; text results never identify output files. default_output_path identifies their saved artifact. |
default_output_path |
Saved filename relative to the plugin output directory. |
crawler_output_paths |
Exact plugin-relative .html/.htm files suitable for inexpensive crawler access; omitted means none. Hosts may allow identified crawlers to read only these stored bytes after normal authorization, without previews, rewrites, directory scans, or generated exports. This declaration does not grant access to private captures. |
archive_result_aliases |
List of historical ArchiveResult plugin names owned by this plugin. |
snapshot_output_group, snapshot_output_order, snapshot_display_name |
Card group (html, article_text, images, embedded_media, metadata, other), integer order, and label. |
snapshot_thumbnail_cards |
List of {archive_result_name, order} entries selecting existing card templates for list/grid previews. |
icon_hidden, card_hidden, card_interactive |
Hide icons, hide cards, or allow interactive cards respectively; booleans default to false. |
output_extension_preference |
Ordered lists of equivalent file extensions, e.g. [[".html", ".htm"], [".txt"]]. |
snapshot_<role> / snapshot_<role>_order |
Boolean participation and integer priority (default 0, lower first, then plugin name). Roles include list_icon, primary_preview, title_source, html_replay, live_preview, file_inventory. |
snapshot_live_preview_route |
Registered Django URL name accepting snapshot_id. |
replay_assets |
Format → relative asset paths; an export uses one provider's complete bundle. |
replay_document_patterns |
MIME type → snapshot-relative path globs handled by rewrite_replay_document. |
search_order, search_fallback, search_scan |
Integer priority (default 1000), fallback eligibility, filesystem-scan flag (both default false). |
presentation_module |
Importable module providing the presentation functions below. |
app_module |
Importable app.py providing optional native application functions below; import must not require Django setup. |
agent_tools |
{scope, binaries, environment?}; environment is module:function(endpoint, binaries) -> dict[str, str]. |
agent_skills |
Section name → relative Markdown file, selected by agent_tools.scope. |
Presentation metadata is validated when ArchiveBox loads the plugin catalog.
Presentation functions are optional: