Cloudfalre Wildebeest is an ActivityPub and Mastodon-compatible server. "We are of course assuming that you have a Cloudflare account"
 
 
 
 
 
Go to file
Pete Bacon Darwin 036db19ede Fix UI tests by ensuring test DB is seeded 2023-01-06 16:02:26 +00:00
.github/workflows fix backend tests 2023-01-06 11:22:46 +00:00
.wrangler/state/d1 Import wildebeest code 2023-01-04 09:51:17 +00:00
backend refactor remote statuses and detect duplicated objects on create 2023-01-06 15:18:46 +00:00
config Import wildebeest code 2023-01-04 09:51:17 +00:00
frontend Fix UI tests by ensuring test DB is seeded 2023-01-06 16:02:26 +00:00
functions refactor remote statuses and detect duplicated objects on create 2023-01-06 15:18:46 +00:00
migrations Import wildebeest code 2023-01-04 09:51:17 +00:00
tf reuse the deploy API tokens for Cloudflare Images 2023-01-06 13:34:25 +00:00
.eslintignore Import wildebeest code 2023-01-04 09:51:17 +00:00
.eslintrc.cjs Merge pull request #12 from cloudflare/be-lint-prefer-const 2023-01-04 16:44:56 +00:00
.gitignore Update wrangler dependency 2023-01-06 15:29:37 +00:00
.node-version Import wildebeest code 2023-01-04 09:51:17 +00:00
.prettierignore Import wildebeest code 2023-01-04 09:51:17 +00:00
.prettierrc.json Import wildebeest code 2023-01-04 09:51:17 +00:00
CONTRIBUTING.md Import wildebeest code 2023-01-04 09:51:17 +00:00
LICENSE Import wildebeest code 2023-01-04 09:51:17 +00:00
README.md Installation tutorial 2023-01-06 14:09:50 +00:00
cfsetup.yaml Import wildebeest code 2023-01-04 09:51:17 +00:00
jest.config.js Import wildebeest code 2023-01-04 09:51:17 +00:00
package.json Fix UI tests by ensuring test DB is seeded 2023-01-06 16:02:26 +00:00
tsconfig.json Import wildebeest code 2023-01-04 09:51:17 +00:00
wrangler.toml Import wildebeest code 2023-01-04 09:51:17 +00:00
yarn.lock Update wrangler dependency 2023-01-06 15:29:37 +00:00

README.md

Wildebeest

Wildebeest is an ActivityPub and Mastodon-compatible server whose goal is to allow anyone to operate their Fediverse server and identity on their domain without needing to keep infrastructure, with minimal setup and maintenance, and running in minutes.

Wildebeest runs on top of Workers and Cloudflare's Supercloud, uses Workers and Pages, the D1 database to store metadata and configurations, Zero Trust Access to handle authentication and Images for media handling.

Currently, Wildebeest supports the following features:

  • Authentication and automatic profile creation.
  • Message signing & notification.
  • Inbox and Outbox notes (text, mentions and images), follow, announce (reblog), accept (friend), like.
  • Server to server federation.
  • Web client for content exploration (read-only).
  • Compatibility with other Mastodon client apps (Mobile iOS/Android and Web).

Cloudflare will continue to evolve this open-source project with additional features over time and listen to the community feedback to steer our priorities. Pull requests and issues are welcome too.

Requirements

Wildebeest is a full-stack app running on top of Cloudflare Pages using a Functions Worker. We are of course assuming that you have a Cloudflare account (click here if you don't) and have at least one zone using Cloudflare. If you don't have a zone, you can use Cloudflare Registrar to register new a new domain or transfer an existing one.

Some features, like data persistence, access controls, media storage, are handled by other Cloudflare products:

Most of out products offer a generous free plan that allows our users to try them for personal or hobby projects that arent business-critical. However you need to activate one of the Images plans.

Images plan

To activate Images, please login into your account, select Images on the left menu, and then select the plan that best fits your needs.

images subscription

API token

Before we begin, you also need to create an API token in your Cloudflare account. To do that, login into your account, and press the Create Token button under My Profile (top right corner) / API Tokens.

create token

Now press Create Custom Token and add the following permissions:

  • D1, account level, edit permission.
  • Cloudflare Pages, account level, edit permission.
  • Access: Apps and policies, account level, edit permission.
  • Access: Organizations, Identity Providers and Groups, account level, read permission.
  • Workers KV Storage, account level, edit permission.
  • DNS, zone level, edit permission.
  • Cloudflare Images, account level, edit permission.

token permissions

You can limit the token to the specific zone where you will using Wildebeest if you want. Don't set a TTL.

Now Continue to Summary, review your settings, and Create Token. Take note of your token and store it in your password manager, you're going to need it later.

Zone and Account IDs

You also need to take note of your Zone and Account IDs. To find them, login into your account and select the zone (domain) where you plan to use Wildebeest. Then, on the Overview page you will the following information:

zone and account IDs

We're all set now, let's start the installation process.

Getting started

Wildebeest uses Deploy to Workers to automate the installation process.

Click here to start the installation.

Install Wildebeest

Please pay attention to all the steps involved in the installation process.

  • Authorize Workers to use your Github account.
  • Enter the Account ID and the API token that you created previously.
  • The script will then fork this repo into your personal Github account.
  • Enable Github Actions
  • Create two secrets (CF_ZONE_ID and CF_DEPLOY_DOMAIN) under the Github Actions settings. See section below for detailed intructions.

The installation script will now build and deploy your project to Cloudflare Pages and a Terraform script to configure the D1, KV, DNS and Access settings automatically for you.

deploy to workers

Github Actions secrets

In the installation script above, after you Enable Github Actions, you need to create two secrets under your forked repo Settings / Secrets / Actions. They are:

  • CF_ZONE_ID - Use the Zone ID that you got from the requirements above.
  • CF_DEPLOY_DOMAIN - The full FQDN domain where you want to deploy your Wildebeest server. Example: social.example.com

This step is critical. If you miss it, your deployment will fail.

github actions secrets

Finish installation

If you followed all the steps, you should see a successful Github Actions build.

github actions secrets

You can also confirm in the Cloudflare dashboard that the Pages project, DNS entry, KV namespace, D1 database and Access rule were all created and configured.

Almost there, only two last steps missing:

Configure the access rule

The installation process automatically created a Zero Trust Access application called wildebeest-your-github-user for you. Now you need to create a policy that defines how and who can have access to your Wildebeest instance.

Go to https://one.dash.cloudflare.com/access and select your account, then select Access / Applications and Edit the wildebeest-your-github-user application. Now edit the existing policy on the next screen.

access applications

Add an include rule to the policy with the list of Emails that you want to allow and then click Save policy

access policy

Configure your server

Open your browser and go to your newly deployed Wildebeest domain https://social.example.com/start-instance (replace social.example.com with your domain).

(needs screenshot)

Go to https://social.example.com/api/v1/instance (replace social.example.com with your domain) and double-check your configuration. It should show:

{
"description": "My personal Wildebeest instance (powered by Cloudflare)",
"email": "john@social.example.com",
"title": "my fediverse",
"registrations": false,
"version": "4.0.2",
"rules": [],
"uri": "social.example.com",
"short_description": "I can only show you the door, you're the one that has to walk through it"
}

That's it, you're ready to start using your Wildebeest Mastodon compatible instance.

Supported clients

Aditional Cloudflare services

Email Routing

Troubleshooting