Developer overview
Castmill is open source and built to be extended. Choose your starting point by what you want to build.
Create new kinds of content as JSON templates: menus, dashboards, tickers or anything driven by data.
APIs and webhooksPush data into feeds from other systems, receive webhooks and check server health.
MCP serverLet AI agents manage content and screens through the Model Context Protocol.
AddonsAdd pages to the dashboard and routes, hooks and webhooks to the server.
Player libraryEmbed the player in your own application or port it to a new device.
ContributingSet up the repository, run the tests and send a pull request.
Repository layout
Castmill is a Yarn workspace monorepo:
| Package | Language | Contents |
|---|---|---|
packages/castmill | Elixir, Phoenix | Server: API, WebSockets, admin tool, background jobs, built-in addons and widgets |
packages/dashboard | TypeScript, SolidJS | Dashboard web application |
packages/ui-common | TypeScript, SolidJS | Components shared by the dashboard and addons |
packages/player | TypeScript | Rendering engine: playlists, layers, widgets and transitions |
packages/cache | TypeScript | Offline cache for media and data used by players |
packages/device | TypeScript, SolidJS | Device runtime: registration, scheduling, automations, maintenance, on-screen menu |
packages/widged | JSON, TypeScript | Widget definitions and tooling |
packages/platforms/* | Various | Players for browsers, Android, webOS and Electron, and the legacy adapter |
packages/website | Docusaurus | This 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
Machineinterface; 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.