Skip to main content

Developer overview

Castmill is open source and built to be extended. Choose your starting point by what you want to build.

Repository layout​

Castmill is a Yarn workspace monorepo:

PackageLanguageContents
packages/castmillElixir, PhoenixServer: API, WebSockets, admin tool, background jobs, built-in addons and widgets
packages/dashboardTypeScript, SolidJSDashboard web application
packages/ui-commonTypeScript, SolidJSComponents shared by the dashboard and addons
packages/playerTypeScriptRendering engine: playlists, layers, widgets and transitions
packages/cacheTypeScriptOffline cache for media and data used by players
packages/deviceTypeScript, SolidJSDevice runtime: registration, scheduling, automations, maintenance, on-screen menu
packages/widgedJSON, TypeScriptWidget definitions and tooling
packages/platforms/*VariousPlayers for browsers, Android, webOS and Electron, and the legacy adapter
packages/websiteDocusaurusThis documentation

Choosing an approach​

  • To show new data on screens, start with a feed and an existing widget. If no widget fits, write a widget that reads the feed.
  • To show data from a third-party service that has an API, write a widget with a data integration so that the server fetches the data and caches it for all screens.
  • To automate work that users do in the dashboard, use the MCP server with an AI agent, or an addon for fixed workflows.
  • To add a new screen or section to the dashboard, write an addon.
  • To support new hardware, implement the device's Machine interface; see Player library.

License​

The Castmill server, dashboard and players are licensed under the GNU Affero General Public License v3.0 or later. If you offer a modified Castmill as a network service, you must make your changes available to its users.