Before importing years of bookmarks, save one page you care about and open the copy Linkwarden preserves. Can you read the useful part without returning to the original? That small check tells you more than a long queue of saved addresses. The official Compose stack gives you the application, database and search service; this guide connects that setup with the capture choices and backups that make the archive worth maintaining.

Why Self-Host Your Bookmarks?

Start by naming what the current bookmark system fails to keep. If you only need addresses on another browser, check its export and sync options before adding a server. If you need a saved version of a page as well, test that preservation job directly. Linkwarden's appeal is easier to judge against a missing capability than against a general wish to own more infrastructure.

Compare self-hosting with the hosted service you would actually use. Check its current price and export terms, then keep a note of your own hosting costs and maintenance hours per month during the trial. Do not give a database, search engine and archive worker a zero-hour budget because the software is available to run yourself.

Privacy is another concern. A hosted bookmark service necessarily processes the URLs and metadata you save. Self-hosting moves that database and archive storage onto infrastructure you control, but it does not make activity invisible: the Linkwarden host, DNS/network providers, and sites fetched for preservation can still observe parts of the workflow. Protect logs, accounts, backups, and outbound traffic accordingly.

A URL alone cannot help much after its page disappears. Self-hosting with archiving lets you keep a captured copy alongside the reference, subject to how well the page can be preserved. It fits the homelab habit of owning the recovery plan too: decide what to retain and back up the captures, so a dead original does not also mean a lost guide.

What Is Linkwarden and How Does It Compare?

Linkwarden is an open-source bookmark manager and web archiver built around a web application, PostgreSQL, and optional Meilisearch-powered advanced search. It can automatically preserve a page as a screenshot, PDF, readable text, and Monolith HTML, with formats configurable in archive preferences. Preserved files are stored under the configured local STORAGE_FOLDER by default, or in configured S3-compatible object storage—not automatically inside PostgreSQL. Preservation is best-effort: authentication walls, anti-bot systems, dynamic applications, and external media can still produce incomplete captures.

Collections, tags, search and browser-bookmark HTML imports give you familiar ways to build the library. Multi-user access can serve a family or small team, with public sharing available where wanted; there is also dark mode, a REST API[1] and a mobile-friendly interface. Before importing years of bookmarks, test a small migration in and out so you know how you would leave later.

The important comparison is workload rather than a permanent feature ranking. Linkwarden emphasizes multi-format preservation and collaboration; read-later tools may emphasize extraction and reading, while minimalist bookmark managers may use fewer services. Check each project’s current documentation before choosing, then test import/export and preservation against the kinds of pages you actually save.

Getting Linkwarden Up and Running

Linkwarden maintains an official self-hosting setup[2] and Compose file. On a host with Docker Compose and curl installed, download those instead of copying a stack from an article, because the dependencies and required variables can change:

mkdir linkwarden && cd linkwarden
curl -O https://raw.githubusercontent.com/linkwarden/linkwarden/refs/heads/main/docker-compose.yml
curl -L https://raw.githubusercontent.com/linkwarden/linkwarden/refs/heads/main/.env.sample -o .env

Edit .env and give each secret a different strong value. The setup instructions[2] require distinct secret phrases and say to quote values that contain special characters:

NEXTAUTH_URL=http://localhost:3000/api/v1/auth
NEXTAUTH_SECRET=replace_with_a_long_random_secret
MEILI_MASTER_KEY=replace_with_a_different_random_secret
POSTGRES_PASSWORD=replace_with_a_database_password

Before starting, replace localhost:3000 in NEXTAUTH_URL with the origin your browser will actually use. For LAN access, that can be your LAN hostname and port; for a reverse-proxied deployment, use an HTTPS origin such as https://links.example.com/api/v1/auth. Keep the required /api/v1/auth suffix. The current environment-variable reference[3] calls out that suffix explicitly.

Start the unmodified stack:

docker compose up -d
docker compose ps

The maintained Compose file currently includes PostgreSQL 16 and Meilisearch alongside Linkwarden, with pgdata, data and meili_data directories on the host. Check those mounts while the deployment is still small; they are part of the recovery plan, not disposable files beside the application.

Open the LAN origin configured in NEXTAUTH_URL, without the /api/v1/auth suffix, and create the initial account. Keep port 3000 restricted to your trusted network. To close self-service registration, set NEXT_PUBLIC_DISABLE_REGISTRATION=true in .env after creating the intended accounts and apply it with docker compose up -d, as the environment reference[3] directs. Configure a reverse proxy, TLS and the intended access policy before external use. The latest image label is a reason to read the release notes before an upgrade, not permission to skip the backup.

First Steps: Configuring Preservation

Open Settings → Preferences → Archive Settings and choose which formats your account should generate, with overrides for individual tags. Current Linkwarden can preserve multiple formats for the same link: screenshot, PDF, readable text, and Monolith HTML. You do not have to choose a single “SingleFile versus Readability” engine.

Pick formats around what you want to recover. Readable text serves the reading view, highlights and full-text index; PDF gives a printable version; screenshots retain appearance; and Monolith HTML aims for a self-contained page. Try each useful format on representative pages, particularly dynamic or authenticated ones, before trusting the capture.

By default, local files live under STORAGE_FOLDER (normally the mounted data directory). S3-compatible storage is optional and is enabled only when the required SPACES_* variables are configured. For stronger browser isolation, Linkwarden also documents a separate user-content domain for serving untrusted preserved HTML. Plan archive storage through the documented local-folder or object-storage settings.

Add the test link and wait for the worker before judging the result. Open each enabled preserved format and check the passage, image or layout you wanted to keep. A file appearing in data/archives tells you it exists; opening it tells you whether it contains the material you needed. Keep an imperfect capture out of the trusted-reference pile until you have another usable format or copy. Then make sure the archive files and their database records are both included in recovery.

Saving Bookmarks and Using the Browser Extension

You can add a bookmark from the web UI by clicking New Link, supplying the required address and collection, and optionally adding tags, a name, or a description. But the real convenience comes from the browser extension. Install it from the Chrome Web Store or Firefox Add-ons, then point it to your instance’s URL in the extension settings. Log in with your account.

When you are on a page you want to keep, use the extension to send it to your self-hosted instance without leaving the tab. Follow Linkwarden’s current browser-extension setup[4] for the supported browsers and instance-address login flow; popup fields and behavior can change with extension versions.

For existing bookmarks, open Settings → Account → Import & Export, click Import Links, choose From Bookmarks HTML file, and try a small file first. Linkwarden accepts the standard HTML export used by major browsers. Imports do not deduplicate, even when the duplicate-prevention preference is enabled, so avoid repeating the same trial file in the full import. Review the resulting titles, tags, collections and preserved formats, then decide whether to queue the larger backlog. That test is much easier to inspect before thousands of captures are waiting.

Linkwarden’s organisational backbone is Collections, essentially folders. You can nest collections to create a hierarchy—for example, “Homelab” might contain “Networking”, “Docker”, and “Storage”. A bookmark lives in exactly one collection at a time, though you can move it around later.

Tags are more flexible: they’re free-form labels that let you attach multiple keywords to any bookmark. Use them for cross-cutting themes like “security”, “reference”, or “to-read”. Search covers bookmark metadata, and the standard Compose stack includes Meilisearch for advanced operators and full-text search across preserved readable content. If you deliberately remove Meilisearch for a lighter deployment, you retain metadata search but lose those advanced and full-text capabilities. Linkwarden documents that trade-off in its lighter-setup guide[5].

Choose a few tags that answer questions you will actually ask: “to-read” for unfinished reading, “reference” for a guide you expect to reopen, or a project name for related material. Review links whose preservation is incomplete before assuming the archive is ready. Remove duplicates when they obscure a useful search, without treating tidiness as a substitute for checking the captures.

Maintaining Long-Term Integrity: Backups and Updates

Self-hosting puts you in charge of durability. Your deployment has several durable parts: PostgreSQL metadata, the mounted data directory containing local archives and uploads, and the Meilisearch index. If you configure S3-compatible storage, include that bucket in the recovery plan too. Back up the Compose file and .env securely without publishing its secrets. The account’s Export Data download is metadata only; it does not include preserved screenshots, PDFs or page snapshots, so it cannot replace this instance backup.

For the database, use pg_dump on a schedule matched to how much recent data you can afford to lose. A nightly dump is one starting point, provided you test a restore and protect the dump. If your containerised database includes pg_dump, you can run:

docker compose exec -T postgres pg_dump -U postgres postgres > backup.sql

Keep a protected copy of the dump and archive files outside the server that holds the live deployment. Record the application/database versions, Compose file and .env with it. A second folder on the same failing disk would be an impressively tidy way to lose both copies.

Plan a consistent set of database records and files. Keep Linkwarden’s application and background workers stopped while taking the database dump and copying local archives; leave PostgreSQL running for pg_dump. Include the object-storage contents if you use them. Do not treat a casual copy of the live pgdata directory as equivalent to a PostgreSQL backup; use a documented database method. For Meilisearch, use its documented snapshot mechanism[6], save the snapshot outside the server, and record the running Meilisearch version with it. A snapshot restores that version; it is not a format for migrating to a newer Meilisearch release. Finally, restore the database and matching archive files on an isolated instance and check the saved pages there. The recovery plan is useful when those parts work together, with no promised completion time borrowed from another library.

Keep the application updated. The Linkwarden project moves quickly, adding features and fixing bugs. Watch the GitHub releases, and when a new version drops, pull the latest image and recreate the container:

docker compose pull
docker compose up -d

Always check the release notes for breaking changes, especially around environment variables, database migrations, and required dependency versions. Take a current backup before upgrading and verify the application and preservation worker afterward.

Disk space grows with screenshots, PDFs, Monolith HTML, and imported files. The result varies too much by page to estimate from bookmark count alone. Monitor data/archives (or your object-storage bucket) and disable preservation formats you do not need under Settings → Preferences → Archive Settings. In its resource-tuning guide[5], Linkwarden calls PDF and Monolith the most expensive formats and readable text the cheapest; that is guidance about preservation work, not a per-bookmark storage-price guarantee.

After the small import and restore check, return to the page you saved at the start. Open its preserved version from the restored instance and find the detail you meant to keep. If it is there, you have a useful baseline for expanding the library. If it is missing, fix the capture or recovery path while the problem still fits on one page.