The tiers were retired and replaced on GitHub Sponsors: $20/$100/$500 were
far above what comparable repos charge, as the first sponsor enquiry showed.
Freelancer is now $10, Agency $25, and the top spot is a $50 Featured tier.
A Mac user couldn't install LibreCrawl and only found Windows tutorials.
Spell out the steps per OS (python.org installer, Download ZIP, Terminal on
Mac), and correct what was outdated after the start-script fixes: the script
installs into its own .venv, needs Python 3.11+ (not 3.8), and does not
install Python on Windows. The manual Python steps use a venv, since
Homebrew and recent Linux Python refuse a system-wide pip install.
It was stored as 100644, so ./start-librecrawl.sh failed with "permission
denied" on Linux. CI didn't notice because the wait helper ran chmod +x on
the script itself; it no longer does, so CI now catches a missing bit.
Beginners on a new Mac don't have Homebrew; they install Python from
python.org. Install that .pkg, put its Python first on PATH as the
installer's shell-profile step does, and check the script uses it.
Windows encodes redirected stdout in cp1252, so the first log line with an
emoji (the SECRET_KEY warning) raised UnicodeEncodeError and main.py exited
before the server started. Hit by the Windows CI job; also affects anyone
logging to a file or running it as a service. A console window is fine,
which is why it went unnoticed. Reconfigure stdout/stderr to UTF-8.
- It detected the py launcher (set PYTHON=py) but never used it, and called
bare pip and playwright, which only work if "Add Python to PATH" was
ticked. Use the detected interpreter, a .venv like the .sh, and
python -m pip / python -m playwright.
- Require Python 3.11+, matching the Docker image.
- Install requirements on every start, so new dependencies arrive.
- Docker: check Compose and that the daemon is running, and stop with a
message if docker compose up fails, instead of printing "LibreCrawl is
running!" regardless.
- Pause on errors so a double-clicked window stays open to read them.
`command -v docker compose` succeeds whenever docker exists, since bash
doesn't fail on the missing "compose" name, so the script took the Docker
path without the Compose plugin and failed at `docker compose up`. Check
`docker compose version` instead, and say clearly when Docker is installed
but not running.
- Remove the Linux Docker job: it rebuilt the image, with all three
Playwright browsers, on every run and took 6+ minutes alone.
- Ubuntu container: install libatomic1, which desktop Ubuntu ships but the
container image doesn't; Playwright's driver failed without it.
- Windows: hide docker.exe by renaming it. Filtering PATH missed the
runner's Docker, so the job stopped before running the .bat.
- Linux with Docker: the route the README recommends, building the image.
- Ubuntu 24.04 container without Docker: Debian/Ubuntu Python also refuses
global pip installs.
- macOS: as before, now via a shared wait helper.
- Windows: start-librecrawl.bat with Docker hidden from PATH, because
Windows runners only run Windows containers. Docker on Windows is not
covered.
Expected to fail on Windows: the .bat calls bare pip and playwright and
never uses the py launcher it detects.
Homebrew Python, and Python on recent Debian/Ubuntu and Arch, refuse global
pip installs ("externally-managed-environment"), so the script's Python path
stopped at "Failed to install dependencies!". Confirmed on the macOS CI
runner (run 42697249567, Homebrew Python 3.15.2). A Mac user reported the
same dead end.
- Install into a .venv created by the script instead of system-wide.
- Run Playwright as python -m playwright: the bare command isn't on PATH
when pip installs into a user or venv directory.
- Require Python 3.11+, matching the Docker image; Apple's bundled 3.9 now
gets a clear message instead of a later failure.
- Install requirements on every start: checking only for Flask meant
dependencies added in an update were never installed.
- .venv/ in .gitignore.
Runs the fixture test suite on Python 3.11 (the Docker image's version) and
runs start-librecrawl.sh on an Apple Silicon macOS runner with Homebrew
Python, waiting for the server to answer. macOS runners have no Docker, so
the script takes the Python path that Mac users without Docker get.
Expected to fail on macOS for now: Homebrew Python refuses global pip
installs (PEP 668), which is what a user reported. The fix follows in a
separate commit so the failure is on record first.
Site-wide crawl analysis that runs once when a crawl finishes, linear in
URLs + links:
- Indexability column (Indexable / Non-Indexable + reason), reading the
X-Robots-Tag header as well as the robots meta tag
- Duplicate title, meta description and H1 across indexable pages;
multiple title / meta description / H1 tags per page
- Redirect chains, loops and redirects to broken URLs, followed or not
- Unique inlinks/outlinks and Link Score (internal PageRank, 0-100)
- Per-page broken internal/external links and links to redirects
- Canonicals pointing at non-indexable URLs, canonical chains, multiple and
conflicting canonicals (HTML tags and Link headers)
- Sitemap audit: orphan pages, non-indexable URLs in the sitemap, indexable
pages missing from it
Crawl comparison tab and /api/crawls/compare (JSON or CSV): new/removed
URLs, status, indexability, title, meta, H1, canonical and word-count
changes, and issues that appeared or were resolved.
Hardening found by fuzzing: a malformed href, Location or sitemap <loc> no
longer loses a page or the rest of the sitemap; UTF-8 headers decode
correctly; a corrupt DB value can no longer empty a loaded crawl. Resumed
crawls no longer save end-of-crawl issues twice, and linked_from is saved
complete.
Standard mode (the Docker default) verifies accounts by email, but Docker
doesn't pass SMTP settings through and .env.example ships placeholder
credentials, so on most self-hosted installs no verification email was ever
sent. The owner's own account stayed unverified on the guest tier, and login
said "Please wait for admin approval" on a server with no admin and no
admin UI.
- email_service: is_email_configured(), treating the .env.example
placeholders as not configured.
- auth_db: claim_first_admin() makes the first account a verified admin when
the instance has no admin (the local/skip-auth synthetic admins don't
count), under a write lock so concurrent registrations can't both win.
Used only when email is not configured, so servers that verify by email
are unaffected.
- register: without email, the first account becomes admin; later ones are
told the server operator has to approve them.
- login: an unverified account on a server without email and without an
admin claims admin, which un-sticks installs that registered before this.
The unverified messages now say what to actually do.
- manage.py: users / approve / set-tier, so operators don't need SQL.
- main: load .env before importing src modules; email_service read its SMTP
settings at import time, before .env was loaded.
- README: Docker starts in standard mode (it said local mode); document
account management.
- tests: first-admin, later accounts, approve, stuck account, SMTP servers
unaffected, and a concurrent-registration race.
- Click-to-sort headers and per-user hidden columns for the
Overview/Internal/External tables, persisted via /api/ui/preferences
- Restyle the Columns control as a compact, aligned dropdown that
floats over the table and closes on outside click / Escape
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Custom extraction: rules set under Settings > Extraction pull values
out of every crawled page with a CSS selector or an XPath expression
(text, inner HTML, outer HTML or an attribute). Results show in a new
Custom Extraction tab, in the URL details, and in exports as one
extract_<name> column per rule. They persist in SQLite. Invalid
selectors are refused on save, naming the rule. Adds lxml for XPath.
List mode: a Spider | List toggle above the URL box. List mode checks
exactly the pasted or uploaded URLs, on any number of sites, records
links without following them, skips sitemap discovery and outbound
link probing, and reports robots.txt-disallowed URLs as blocked rows.
Resume keeps the whole remaining list.
Also: robots.txt is fetched once per host instead of once per worker,
and a failed start now shows its reason instead of "undefined".
Adds test_list_mode_fetches_only_the_list and test_custom_extraction.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rate limiter was only called in the JavaScript crawl loop. The
plain HTTP worker never acquired it, so the delay setting had no
effect and sites were hit as fast as concurrency allowed. The worker
now waits before each page fetch, outside the response timer.
Adds test_crawl_delay_is_honoured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since ce5616c, external links and off-site images get HEAD-checked
rows marked link_check_only even with external crawling off. The
off-domain check now flags only off-site pages that were crawled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Link bookkeeping was quadratic. Every link scanned all crawl results
for its target status, every link scanned a growing list of source
pages, and every UI poll rechecked all links while holding the lock
the crawl workers need.
Statuses now come from an incremental URL index that touches each
result and each link once, and source pages are an ordered set.
At 5,000 pages the link manager takes 11.6s instead of 91s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Saving built the whole crawl as one JSON string, which overflows the
browser's ~512 MB string limit (RangeError: Invalid string length) on
crawls of ~30k pages with millions of links. Save now writes the file
a row at a time, and Load parses it a row at a time. Old indented save
files still load.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Their pricing page now lists $279 / £199 / €245 per user per year, with
bulk bands below that from five seats up. The old figure was also across
librecrawl.com, which has been corrected separately.
The authorize request sent prompt=select_account, which Zoho doesn't
support (its only valid value is "consent"). Zoho showed a generic error
page instead of the sign-in screen. Drop the parameter.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Setting ZOHO_OAUTH_ENABLED with a client ID and secret adds a "Login
with Zoho" button to the login page. Zoho users are matched by a new
users.zoho_id column. An existing account with the same email is linked
to Zoho. Otherwise a new verified account is created, unless
ZOHO_ALLOW_SIGNUP is off, which is the default when registration is
disabled.
Also configurable: redirect URI, data-center accounts server, scopes,
allowed email domains and the tier for new accounts. All are documented
in .env.example and passed through in docker-compose.yml.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
External links that were only HEAD-checked (Crawl External off) now get
a link_check_only flag, saved with the crawl. The Overview leaves those
rows out, since those sites were not crawled; the External tab still
lists them. Off-site images and crawled pages are not flagged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
With Crawl External off, external <a> targets are now HEAD-checked like
images and get a synthesized row (status, type, size), so the External
tab and Links-tab statuses fill in without fetching the other site.
HEAD refusals (403/405/501) are confirmed with a streamed GET. Image
and external checks share one helper across both crawl paths.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Off-domain images were skipped unless Crawl External was on, so sites
serving every image from a CDN (Wix, Shopify, Squarespace) got no image
statuses or Images-tab rows. Embedded images are page assets: check them
wherever they're hosted. Crawl External still gates off-domain pages.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
extract_images used img.get('alt', ''), so an image with no alt attribute
and one correctly marked decorative with alt="" both became the empty
string. The detector then tested truthiness, and correct markup counted
as a defect.
Images now carry has_alt alongside alt, and only a missing attribute is
flagged. The warning also says how many decorative images were found, so
the count is explainable rather than just smaller.
The Links tab had the same conflation, showing "(no alt text)" for both;
it now distinguishes "(decorative)" from "(no alt attribute)".
Crawls saved before has_alt existed carry no flag. Those are left
unflagged rather than guessed at, since the old data cannot tell the two
cases apart. Re-crawl for accurate numbers.
Thanks to musclemintco for the diagnosis, which was exactly right.
Duplicate-content detection compared every page with every other page using
SequenceMatcher and emitted two issues per matching pair. On a 1,127-URL site
with ~900 templated suburb pages that meant 4+ minutes of CPU, 703,902 issues,
and a 90-second SQLite insert that locked the database for every other
request (status polls, settings) — the UI sat in "finishing up" until the
crawl was force-stopped.
- issue_detector: one issue per page (count + closest five), identical
title/description/H1 grouped first, candidate pairs from a prefix filter on
title tokens, word-level Dice similarity, only 200 HTML pages considered,
and a 120s time budget so the pass can never hang a crawl.
900 templated pages: 1.4s / 900 issues (was ~4min / 703k).
- auth_db/crawl_db: 30s busy timeout and WAL mode so reads no longer fail
with "database is locked" while the crawler saves a batch.
Exports: "Excel (XLSX)" was offered in Settings but never implemented (it
silently produced CSV), XML only applied to the URLs file (links/issues fell
back to CSV), and the export button read the format from the server copy of
the settings, which silently lags the browser copy when the background sync
fails — e.g. while the database was locked by the bug above.
- main: XLSX (openpyxl) and XML for URLs, links and issues on both the
streaming and legacy export endpoints; shared row helpers.
- app.js/settings.js: export with the settings the browser is showing;
surface a failed server sync instead of swallowing it; decode base64
binary exports.
- tests: fixture tests for one-issue-per-page duplicate detection (crawl +
1,500-page scale check) and for every format × every data type on both
export endpoints.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
#93: with JS rendering on, response_time was measured around the whole
render, which includes the js_wait_time sleep. At the 3s default every
page cleared the 3000ms threshold and got flagged "Slow Response Time".
Reported on a site scoring 97-99 on PSI with all 54 pages flagged.
render_page now reports the browser's own request timing (responseEnd,
falling back to the measured navigation) as response_time, and the full
render separately as render_time. On librecrawl.com with a 3s wait that
is 957ms vs 4287ms, and nothing is flagged. render_time is stored, shown
in the URL details modal, and added to crawled_urls via migration.
#94: "URLs Discovered" ignored the rows synthesized from image HEAD
checks, since those are never queued. The counter sat at the HTML page
count while crawled climbed past it. Image rows are now marked
discovered when their row is created.
Fixture tests cover both.
- Workshop button in the app header
- README and the plugins README point at it for finding/sharing plugins
The workshop is back up at workshop.librecrawl.com. On the marketing site
the /workshop redirect now goes there instead of to GitHub, and the nav
links point straight at the subdomain.
requests defaults to 10 connections per host, but crawl workers and the
image HEAD checks (5 threads of their own) draw from the same pool, so
urllib3 kept discarding live connections and reopening them:
WARNING:urllib3.connectionpool: Connection pool is full, discarding
connection: developer.mozilla.org
Mount an adapter sized to concurrency + IMAGE_CHECK_WORKERS + 5, and
resize it when concurrency changes in settings. An MDN crawl went from a
steady stream of these warnings to none.
Incremental polling sliced server arrays by the client's row count, so
updates to already-sent rows (linked_from, link statuses, image HEAD
results) never reached the UI, and the issue cursor desynced whenever an
exclusion pattern dropped one. Replaced with an event log (seq + epoch);
clients apply appends/updates by key.
- Relative links on redirected pages resolved against the requested URL,
minting internal 404s from the target site's links; chains now recorded
- Image HEAD checks ignored crawl_external
- Image rows counted against max_urls (25-URL react.dev crawl = 1 page)
- _save_batch_to_db cleared its queues after writing, dropping rows
appended mid-write (400-page Wikipedia crawl lost 3,693 links)
- Fetches in flight at max_urls hit the DB uncounted
- Sitemap discovery blocked start_crawl; now backgrounded, completion
waits on it
- start_crawl read session_id before creation, disabling persistence
- Link/issue cells used innerHTML on crawled page content
- Virtual scroller measures real row heights, rAF-throttled, spacers
track data length
Adds tests/: fixture tests (no network) + real-site harness.
Follow-up to #48:
- Issues export used nonexistent keys (issue_type/severity/description);
now matches the real issue dicts and legacy format (type/category/issue/details)
- Crawls loaded from a saved file exist only in browser state, which the
streaming endpoint can't see — exportData() now falls back to the legacy
POST /api/export_data path for those instead of downloading a 404 body
- target_status None renders as 'Not crawled' instead of blank (0 stays 0)
- Export field names from the query string are restricted to identifier-like
strings since they become XML tag names and CSV headers
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Race condition: the cleanup thread calls stop_crawl() after a crawl has already been marked "completed", changing its status back to "stopped".
Added a status check before overwriting — if the crawl is already
"completed", leave it alone.
Follow-up to #87: full image downloads are now behind a 'Crawl Images'
checkbox (default off) instead of being in the default include_extensions.
When off, the Images tab is populated from the broken-image HEAD checks
that already run (status, content-type, size from Content-Length) at no
extra request cost. Also guards the issue detector against flagging
non-HTML results for missing titles/meta descriptions.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
sqlite3.connect() fails with 'unable to open database file' on fresh
installs where data/ directory does not exist. This happens with both
Docker (bind mount creates ./data as root, container user can't write)
and bare Python (no data/ directory at all).
Fix ensures data/ exists before any database operation:
- main.py: add os.makedirs before init_db() call
- start-librecrawl.sh: mkdir -p data at script start
- start-librecrawl.bat: mkdir data at script start
Fixes#65
app.secret_key was hardcoded to a value committed in the public repo, so
every stock deployment shared the same Flask session-signing key — anyone
could forge a signed session cookie (including tier=admin) for any instance.
Now read SECRET_KEY from the environment, falling back to a per-process
secrets.token_hex(32) random key (with a startup warning) when unset. The
fallback is intentionally ephemeral rather than a static default, so no
public key is ever used — worst case is sessions not surviving a restart,
not forgeable admin cookies. Documents SECRET_KEY in .env.example and README.
Combines the secure fallback approach from #71 with the documentation from
#41; applied directly since #71 carried whole-file line-ending churn and
#41 kept an insecure static fallback.
Co-authored-by: getuslocal <getuslocal@users.noreply.github.com>
Co-authored-by: Mobilpadde <Mobilpadde@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Wire LOCAL_MODE via os.getenv so it can be set through .env / docker-compose,
matching how DISABLE_GUEST/REGISTRATION_DISABLED already work. The
REGISTRATION_DISABLED half of #40 already landed via #53, leaving this single
line; applied directly since #40 was a fork branch that conflicted after #53.
Safe now that LOCAL_MODE defaults to false (e48141d).
Co-authored-by: Mobilpadde <Mobilpadde@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
LOCAL_MODE disables all authentication and grants every visitor admin
tier. Both the documented setup path (cp .env.example .env) and the
docker-compose default shipped LOCAL_MODE=true, so a stock deployment
exposed an unauthenticated admin server. Flip both defaults to false and
add explicit warnings. This also makes it safe to wire LOCAL_MODE as an
env var (PR #40).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The Resume button was shown for completed crawls, but resuming a completed crawl always fails. Only render the button for statuses
that can actually be resumed: paused, failed, running, and stopped.
Only "paused" and "running" statuses were allowed in the resume logic. Stopped and failed crawls returned a misleading "Cannot resume crawl with status: stopped" error despite being resumable.
Added "stopped" and "failed" to the list of resumable statuses.
Only the CLI arguments (--disable-register, --disable-guest) were checked. The environment variable path was missing, so setting
REGISTRATION_DISABLED=true or DISABLE_GUEST=true had no effect.
Added os.getenv() fallback for both flags, accepting "true", "1", or "yes".