Shobhit Sharma
Posted on:December 15, 2023 at 08:11 PM3 min read

Ownline: A Serverless Fediverse Application

In today’s interconnected digital landscape, reliance on centralized social media platforms introduces arbitrary censorship, advertising trackers, and sudden policy shifts. The decentralized fediverse offers an alternative, but self-hosting traditional monolithic instances (like Mastodon or Misskey) requires heavy PostgreSQL databases, background Redis workers, and persistent servers running 24/7.

Ownline was born from a simple architectural question: Can we run a personal Fediverse identity entirely on serverless infrastructure?

[!NOTE] Key Takeaways

  • Serverless ActivityPub: Eliminates the overhead of maintaining 24/7 VPS instances, running lightweight federation via cloud functions and edge storage.
  • Total Data Sovereignty: All posts, follower graphs, and media remain in your personal object storage and database under your full control.
  • Zero Idle Cost: Runs on pay-per-request infrastructure (AWS Lambda, Cloudflare Workers, or Fly.io machines) with zero monthly idle costs.

Architecture

Traditional Fediverse instances must constantly ingest high-volume federation streams from thousands of foreign servers. For a personal single-user or small-group identity, this is massive overkill.

Ownline separates the inbox, outbox, and webfinger endpoints into lightweight serverless handlers backed by object storage:

Diagram

Serverless Flexibility

Ownline’s serverless design allows users to deploy their personal fediverse account on multiple providers:

  • Cloud Functions: Deployable to AWS Lambda, Google Cloud Functions, or Cloudflare Workers.
  • Edge Storage: Backed by serverless SQLite (Turso / Cloudflare D1) or low-cost document stores.
  • Media Hosting: Offloads avatars, headers, and media attachments to S3-compatible object stores (like Cloudflare R2 or Backblaze B2) with zero egress fees.

Unrestricted Account Management

Unlike conventional centralized platforms—or even heavily moderated third-party Mastodon instances—Ownline places account governance completely in your hands:

  • No Arbitrary Moderation: Your personal instance is not subject to sudden domain blocks or admin disagreements on shared instances.
  • Custom Domain Identity: Your handle is tied directly to your domain (e.g. @shobhit@sharmashobh.it), preserving your social graph permanently across host migrations.
  • ActivityPub Protocol Compliance: Fully compatible with existing Fediverse clients (Ivory, Mona, Elk) and interoperable with Mastodon, Pixelfed, and Lemmy.

Data Ownership & Privacy

In an era of commercial data harvesting, Ownline ensures that your public posts, followers, and private notes remain exclusively yours. If you choose to migrate or archive your data, you export standard JSON and SQLite files with zero vendor lock-in.

Conclusion

Decentralization shouldn’t require running complex distributed server infrastructure just to publish short notes under your own name. By pairing the ActivityPub protocol with modern serverless primitives, Ownline proves that personal data ownership on the web can be both lightweight and practically free.

Share:

Open to Collaboration

Hey there! If you've got a new project brewing in your head, or just want to share something cool, or even just drop a casual hi, please feel free to hit me up! It's always great to connect with folks who stop by, so don't be shy!