Quick start
th0ughts is a self-hosted microblog for one author. To publish your first post, connect to your Linux server over SSH and run the installer.
curl -fsSL https://sametcn99.github.io/th0ughts/install.sh | bashThe installer asks for a database, port and installation directory. Read the installer
Themes
The same feed in the built-in themes. Each theme is one HTML file with its own layout and CSS.
Installation
Install on a Linux VPS
Connect to your server over SSH and run the command in an interactive terminal. Choose English or Turkish to get started.
Quick start- Choose a database. SQLite stores the feed in one local database. The wizard can also provision redb, LMDB, PostgreSQL, MySQL, MariaDB, MongoDB and two JSON layouts.
- Pick a host port, binding address, a new installation directory and a unique Compose project name. Loopback is the default for an HTTPS proxy or SSH tunnel.
- Review and confirm. On Ubuntu and Debian the wizard can install missing tools with your permission. On other distributions, install Git, curl, OpenSSL and Docker with the Compose plugin first.
- After the health check, open /login through HTTPS or the displayed SSH tunnel. Read the generated master key from .env, choose an owner password and set the public URL on the timeline.
Gallery
Handbook
Publishing
Read the timeline without JavaScript. Open /login directly to publish Markdown, upload media, pin a post or edit an English or Turkish translation.
Sign in at /login and write directly in the timeline. Use Post options to add media, tags or an article title. Longer posts open in full from their timeline preview. Save draft keeps it private. Publish makes the original visible to readers.
Use the other language tab to add a translation and publish it separately. Share the post's date link for a permanent URL. Readers see the original if their translation is still a draft.
README · GitHubSingle-file themes
Start with one HTML file. Arrange slots, add CSS and expose appearance options. Preview on your timeline and roll back a saved version.
Save the example below as violet.html. In Settings → Appearance, upload the file, open Preview, and switch between sample content and the real timeline. Save when you are ready to publish.
Use the same theme ID to replace a version. Restore previous theme version rolls it back. To contribute a theme, add the same file to the repository’s themes directory.
<meta name="theme" content="violet" title="Violet">
<style>.entry { border-color: #7666a1; }</style>Full referenceCLI, API and agents
Use scoped tokens with REST or the CLI. Agents can read Markdown and discover tools through WebMCP, MCP over HTTP or stdio.
Read the public timeline at /feed.md or /api/v1/posts. Get the API specification from /api/v1/openapi.json. To publish remotely, create a token with posts:write and store it in a private file.
An MCP client can connect to /mcp over HTTP or launch th0ughts mcp over stdio. Browser agents discover the available tools on the page when the browser supports WebMCP.
curl -H "Accept: text/markdown" "http://localhost:8080/?lang=en"Full referenceBackups and recovery
Export a portable archive from Settings → Storage. Keep a separate backup of the master key and persistent volumes for a full recovery.
After verifying your identity, download a ZIP from Settings → Storage. The archive includes private drafts, translations, attachments and custom themes. Store it somewhere private.
To move between drivers, initialize an empty instance with the target database, choose its media storage, then restore the archive. To preserve credentials and sessions too, keep an infrastructure backup of the database, master key, volumes and S3 objects.
Full referenceOwner access
Use a password, a passkey or an authenticator. Revoke individual access tokens from the timeline.
Set your public HTTPS origin in Settings → Site before registering a passkey. Settings → Security also lets you enable authenticator codes. Store the one-time recovery codes offline.
In Access tokens, grant only the scopes the integration needs, set an expiry and copy the issued value into a private file. Revoke it from the same section when access is no longer needed.
Full referencePerformance
Compare nine storage drivers and inspect the 10,000-reader, sustained load and mobile results for SQLite, PostgreSQL, redb and LMDB.
The reference workload seeds 10,000 posts and 200 images. Each deployment gets two CPU cores and 2 GiB of memory. The client warms up for two minutes and measures 15 minutes at 50 reads per second, with a write every five seconds.
SQLite and PostgreSQL each completed 45,000 measured reads and 180 writes. Timeline p95 was 0.95 ms for SQLite and 1.18 ms for PostgreSQL on loopback. The linked report includes cold search, cache hits and memory samples.
Full reference







