owncast

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 43 Imported by: 0

README

Owncast Logo

Take control over your content and stream it yourself.


License


Explore the docs »
View Demo · FAQ · Report Bug · Report Security Issue

Table of Contents

About The Project

Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server for running your own live streams similar in style to the large mainstream options. It offers complete ownership over your content, interface, moderation and audience. Visit the demo for an example.


Getting Started

The goal is to have a single service that you can run and it works out of the box. Visit the Quickstart to get up and running.

Use with your existing broadcasting software

In general, Owncast is compatible with any software that uses RTMP to broadcast to a remote server. RTMP is what all the major live streaming services use, so if you’re currently using one of those it’s likely that you can point your existing software at your Owncast instance instead.

OBS, Streamlabs, Restream and many others have been used with Owncast. Read more about compatibility with existing software.

Building from Source

Owncast consists of two projects.

  1. The Owncast backend is written in Go.
  2. The frontend is written in React.

Read more about running from source.

Important note about source code and the develop branch

The develop branch is always the most up-to-date state of development and this may not be what you always want. If you want to run the latest released stable version, check out the tag related to that release. For example, if you'd only like the source prior to the v0.1.0 development cycle you can check out the v0.0.13 tag.

Note: Currently Owncast does not natively support Windows servers. However, Windows Users can use Windows Subsystem for Linux (WSL2) to install Owncast. For details visit this document.

Backend

The Owncast backend is a service written in Go.

  1. Ensure you have prerequisites installed.
  2. Install the Go toolchain (1.24 or above).
  3. Clone the repo. git clone https://github.com/owncast/owncast
  4. go run main.go will run from the source.
  5. Visit http://yourserver:8080 to access the web interface or http://yourserver:8080/admin to access the admin.
  6. Point your broadcasting software at your new server and start streaming.

Frontend

The frontend is the web interface that includes the player, chat, embed components, and other UI.

  1. This project lives in the web directory.
  2. Run npm install to install the Javascript dependencies.
  3. Run npm run dev

Contributing

Owncast is a growing open source project that is giving freedom, flexibility and fun to live streamers. And while we have a small team of kind, talented and thoughtful volunteers, we have gaps in our skillset that we’d love to fill so we can get even better at building tools that make a difference for people.

We abide by our Code of Conduct and feel strongly about open, appreciative, and empathetic people joining us. We’ve been very lucky to have this so far, so maybe you can help us with your skills and passion, too!

If you're new to the project, maybe you'd be interested in looking at Good First Issue.

There is a larger, more detailed, and more up-to-date guide for helping contribute to Owncast on our website.

Donors

The Owncast project is possible thanks to the people who make a donation to support us and our work. Thank you to all our donors who help keep Owncast running by donating on OpenCollective. You can support this project by becoming a backer/sponsor.

Security

Report suspected security vulnerabilities privately to security@owncast.online. This is the security-reporting address. The personal contact information in the Support section is for general contact, not vulnerability reports.

See the repository security policy for scope, disclosure, and credit details.

License

Distributed under the MIT License. See LICENSE for more information.

Support

  • Browser testing via
  • Project chat provided by
  • CDN services by
  • UI testing with Chromatic
  • Infrastructure and hosting by

Contact

Project chat: Join us on Rocket.Chat if you want to contribute, follow along, or if you have questions.

Gabe Kangas - @gabek@social.gabekangas.com - email gabek@real-ity.com

Project Link: https://github.com/owncast/owncast

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package metrics owns the Owncast metrics service: hardware, playback, chat and viewer metrics collection plus Prometheus exposition.
Package metrics owns the Owncast metrics service: hardware, playback, chat and viewer metrics collection plus Prometheus exposition.
notifications
persistence
legacymigrations
Package legacymigrations holds the hand-rolled, version-numbered schema migrations used before Owncast moved to goose.
Package legacymigrations holds the hand-rolled, version-numbered schema migrations used before Owncast moved to goose.
migrations
Package migrations is the single entry point for evolving the Owncast database schema.
Package migrations is the single entry point for evolving the Owncast database schema.
services
activitypub
Package activitypub is the composition root for the federation subsystem.
Package activitypub is the composition root for the federation subsystem.
activitypub/apmodels
Package apmodels owns the ActivityPub data-model builders and helpers: actor/service profiles, notes, activities, webfinger responses, IRI construction.
Package apmodels owns the ActivityPub data-model builders and helpers: actor/service profiles, notes, activities, webfinger responses, IRI construction.
activitypub/controllers
Package controllers hosts the HTTP request handlers for the ActivityPub federation surface: actor, inbox, outbox, followers, nodeinfo, webfinger and host-meta endpoints.
Package controllers hosts the HTTP request handlers for the ActivityPub federation surface: actor, inbox, outbox, followers, nodeinfo, webfinger and host-meta endpoints.
activitypub/crypto
Package crypto holds the ActivityPub signing/verification surface: keypair lookup, request signing, response signing, and signed-request construction.
Package crypto holds the ActivityPub signing/verification surface: keypair lookup, request signing, response signing, and signed-request construction.
activitypub/inbox
Package inbox is the inbound side of the ActivityPub federation subsystem: parses verified inbound activities, dispatches them to per-type handlers (Follow, Like, Announce, Undo, Create, Update), and records accepted activities.
Package inbox is the inbound side of the ActivityPub federation subsystem: parses verified inbound activities, dispatches them to per-type handlers (Follow, Like, Announce, Undo, Create, Update), and records accepted activities.
activitypub/jobs
Package jobs hosts the background validators and periodic tasks for the ActivityPub subsystem.
Package jobs hosts the background validators and periodic tasks for the ActivityPub subsystem.
activitypub/outbox
Package outbox is the federated-message producer for the ActivityPub subsystem: builds Create activities, addresses them to followers, and hands unsigned payloads to the durable outbound delivery queue.
Package outbox is the federated-message producer for the ActivityPub subsystem: builds Create activities, addresses them to followers, and hands unsigned payloads to the durable outbound delivery queue.
activitypub/persistence
Package persistence is the storage layer for the ActivityPub subsystem: federated outbox posts, accepted inbound activities, and the followers fixture loader.
Package persistence is the storage layer for the ActivityPub subsystem: federated outbox posts, accepted inbound activities, and the followers fixture loader.
activitypub/resolvers
Package resolvers translates raw ActivityPub payloads and IRIs into our internal actor model: fetching, signing, resolving callbacks, and constructing follow/unfollow request representations.
Package resolvers translates raw ActivityPub payloads and IRIs into our internal actor model: fetching, signing, resolving callbacks, and constructing follow/unfollow request representations.
activitypub/workerpool
Package workerpool is the durable outbound delivery queue for ActivityPub.
Package workerpool is the durable outbound delivery queue for ActivityPub.
cache
Package cache is a registry of named TTL-keyed caches.
Package cache is a registry of named TTL-keyed caches.
chat
Package chat is the chat subsystem service: a websocket server that accepts client connections, broadcasts inbound messages, fans out system + action messages, and forwards chat events to webhooks.
Package chat is the chat subsystem service: a websocket server that accepts client connections, broadcasts inbound messages, fans out system + action messages, and forwards chat events to webhooks.
datastore
Package datastore is the database root for the rest of the application.
Package datastore is the database root for the rest of the application.
dispatcher
Package dispatcher is a tiny in-process publish/subscribe + filter mediator.
Package dispatcher is a tiny in-process publish/subscribe + filter mediator.
plugins/engines
Package engines holds the shared language interpreter engines (QuickJS for JS, CPython for Python) compiled to WebAssembly.
Package engines holds the shared language interpreter engines (QuickJS for JS, CPython for Python) compiled to WebAssembly.
plugins/kv
Package kv is a namespaced key/value store.
Package kv is a namespaced key/value store.
rtmp
Package rtmp is the inbound RTMP ingest service.
Package rtmp is the inbound RTMP ingest service.
stream
Package stream is the live-streaming lifecycle service: stream connect / disconnect handling, viewer stats, status reporting, storage provider setup, and the offline content state.
Package stream is the live-streaming lifecycle service: stream connect / disconnect handling, viewer stats, status reporting, storage provider setup, and the offline content state.
webhooks
Package webhooks dispatches Owncast events (chat messages, stream status changes, fediverse engagement, …) to user-configured HTTP destinations via a bounded worker pool.
Package webhooks dispatches Owncast events (chat messages, stream status changes, fediverse engagement, …) to user-configured HTTP destinations via a bounded worker pool.
webserver
handlers/generated
Package generated provides primitives to interact with the openapi HTTP API.
Package generated provides primitives to interact with the openapi HTTP API.
Package yp is the Owncast directory listing service.
Package yp is the Owncast directory listing service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL