# BDServer

> Self-hosted, open-source Python server for blogs and article sites: Markdown posts, JSON metadata, plugins, analytics and ActivityPub federation.

- **Category:** [Blogging](https://selfhost.directory/blogging)
- **Licence:** AGPL-3.0-or-later
- **Source model:** Open source
- **Author:** Blender Dumbass ( J.Y. Amihud )
- **Platforms:** Build from Source
- **Tags:** Analytics, RSS, Markdown, Cms, Mastodon, Blog, Blogging, Activitypub, Federation, Tor, Python, Fediverse

## What is BDServer?

BDServer is server software for running your own blog or similar article-based website. Everything is written in Python, needs no compiling, and stores posts, comments and metadata such as titles and thumbnails in plain JSON files, with Markdown used for all articles and comments. Articles can be edited straight from the website UI or published from a file through the console, and behaviour can be extended with the project's own plugin system. It speaks the Fediverse: an ActivityPub implementation, metadata for Mastodon verification, PeerTube and Matrix oriented handling, RSS output, and cross-site federation between other BDServer instances for comments and plugins. It also computes visitor analytics (views, browsers, operating systems, referral sources, trending tags). Setup is by cloning the repository and driving it with python3 run.py: --set configures port, title, domain, CSS, favicon and tabs, --account creates your own login, and the PROJECT environment variable lets one machine host several unrelated sites. The author warns explicitly that the code is not security-hardened and should not be used in any serious way.

## Should you self-host BDServer?

BDServer scores **47/100** on selfhost.directory ([how scoring works](https://selfhost.directory/scoring)) and ranks **#16 of 24** in [Blogging](https://selfhost.directory/blogging).

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. It is AGPL-3.0-or-later-licensed.

Its closest alternative on selfhost.directory is [Typecho](https://selfhost.directory/project/typecho) (66/100, 12 459 stars). It scores higher overall, so compare the two before you pick. [See BDServer vs Typecho side by side.](https://selfhost.directory/compare/bdserver-vs-typecho)

## Features

- Account ranks and moderation
- ActivityPub / Fediverse support
- Article categories (tabs)
- Built-in site analytics
- Comment sanitisation
- Cookie banning
- Cross-site federation
- Custom theming via CSS and icons
- In-browser article editor
- JSON data storage
- Markdown publishing
- Multiple sites on one machine
- Plugin System
- RSS Feeds
- Tor onion metadata

## How to install BDServer

### Install BDServer with Build from Source

```
git clone https://codeberg.org/blenderdumbass/BDServer
```
```
cd BDServer
```
```
python3 run.py
```
Setup a port ( say 8080 ):
```
python3 run.py --set --port 8080
```
And run it:
```
python3 run.py --run
```
Then you can go to http://localhost:8080 from your browser to see the server work.

Note: Everything is stored under ~/.local/share/BDServer. The author warns the code is not security-audited.

## BDServer alternatives

- [Bludit](https://selfhost.directory/project/bludit): Bludit is a self-hosted, open-source flat-file CMS storing content in JSON — no database needed. Markdown/WYSIWYG editors, themes, plugins, SEO, RSS, GDPR-compliant. (compare: https://selfhost.directory/compare/bdserver-vs-bludit)
- [PieFed](https://selfhost.directory/project/piefed): PieFed is an open-source, self-hosted fediverse forum and link aggregator in Python/Flask with topics, polls, community wikis and first-rate moderation tools. (compare: https://selfhost.directory/compare/bdserver-vs-piefed)
- [Mastodon](https://selfhost.directory/project/mastodon): Open-source self-hosted microblogging server that federates over ActivityPub, with chronological timelines, media posts, moderation tools and an OAuth2 REST API. (compare: https://selfhost.directory/compare/bdserver-vs-mastodon)
- [PeerTube](https://selfhost.directory/project/peertube): Open-source, ActivityPub-federated video platform for self-hosted instances: WebRTC P2P streaming, live broadcasts, playlists and moderation tools. (compare: https://selfhost.directory/compare/bdserver-vs-peertube)
- [mbin](https://selfhost.directory/project/mbin): Self-hosted fediverse platform for content aggregation, voting, discussions and microblogging. Replaces Reddit with ActivityPub federation to Mastodon, Lemmy, PeerTube. (compare: https://selfhost.directory/compare/bdserver-vs-mbin)
- [GoToSocial](https://selfhost.directory/project/gotosocial): Self-hosted, open-source ActivityPub social server in Go: chronological timelines, Mastodon-API clients, SQLite or Postgres, Markdown posts, granular privacy. (compare: https://selfhost.directory/compare/bdserver-vs-gotosocial)
- [tunan-blog](https://selfhost.directory/project/tunan-blog): A self-hosted blog platform built with Go and Next.js that includes an admin dashboard, Markdown writing, multilingual posts, and integrated Remark42 comments. (compare: https://selfhost.directory/compare/bdserver-vs-tunan-blog)
- [Postmarks](https://selfhost.directory/project/postmarks): Postmarks is a self-hosted, open-source bookmarking site connecting to the Fediverse via ActivityPub to interact with Mastodon and other platforms. (compare: https://selfhost.directory/compare/bdserver-vs-postmarks)

## More in Blogging

- [blog](https://selfhost.directory/project/blog): A lightweight, single-user PHP blog with Facebook-style feed, dark mode, and SQLite/MySQL/PostgreSQL support. Self-hosted via Docker or manual Apache/PHP installation.
- [Bludit](https://selfhost.directory/project/bludit): Bludit is a self-hosted, open-source flat-file CMS storing content in JSON — no database needed. Markdown/WYSIWYG editors, themes, plugins, SEO, RSS, GDPR-compliant.
- [BroadcastChannel](https://selfhost.directory/project/broadcastchannel): Self-hosted, open-source Astro site that mirrors a public Telegram channel as a microblog with RSS, sitemap, reactions, comments and zero browser-side JS.
- [btw](https://selfhost.directory/project/btw): A self-hosted, open-source personal website builder for blogs and notes, pitched as a Medium alternative, run with Docker Compose and PostgreSQL.
- [Chyrp Lite](https://selfhost.directory/project/chyrp-lite): Chyrp Lite is a self-hosted, open-source PHP blogging engine with responsive admin, six themes, Markdown, Feathers, and Modules for webmentions.
- [Citadel](https://selfhost.directory/project/citadel): Citadel is a fully open-source, self-hosted groupware suite that combines email, calendaring, contacts, forums, wikis, blogs, and instant messaging into a single, rooms-based platform. It is designed for both small organizations and large-scale public access systems.
- [ClassicPress](https://selfhost.directory/project/classicpress): Self-hosted, open-source CMS forked from WordPress that keeps the classic TinyMCE editor, drops the Gutenberg block editor, and ships a core half the size.
- [cms](https://selfhost.directory/project/cms): A self-hosted flat-file content management system built on Laravel, installed with Composer or Laravel Sail, with live preview, blueprints and headless APIs.
- [Contao](https://selfhost.directory/project/contao): Self-hosted open-source CMS on Symfony for accessible websites, with multi-site support, fine-grained permissions and news, calendar and newsletter modules.
- [Decap CMS](https://selfhost.directory/project/decap-cms): Self-hosted, open-source CMS for static site projects: a /admin app that reads and writes content in your own Git repo, with editorial workflow and live preview.
- [Dotclear](https://selfhost.directory/project/dotclear): Dotclear is a self-hosted, open-source blog publishing platform focused on simplicity, multilingual support, and extensibility. It supports multiple users, static pages, media management, and a rich plugin/theme ecosystem.
- [FlatPress](https://selfhost.directory/project/flatpress): FlatPress is a self-hosted, open-source flat-file blogging engine in PHP requiring no database, with plugins, themes, comments, and 20+ languages.

## Links

- [Homepage](https://codeberg.org/blenderdumbass/bdserver)
- [Wiki: Setting The Server Up](https://codeberg.org/blenderdumbass/BDServer/wiki/Setting-The-Server-Up)
- [Wiki: Plugins](https://codeberg.org/blenderdumbass/BDServer/wiki/Plugins)

---
Source: https://selfhost.directory/project/bdserver