Skip to content
المشاريع

حول

Operating system for single function smart frames

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

503 نجمة23 التفرعات +4 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+٤
خلال 7 أيام
+٣٨
خلال 15 يومًا
+٤٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

FrameOS

FrameOS is an operating system for single function smart frames: a kitchen calendar, a photo frame, a meeting room display, a dashboard. It runs on a Raspberry Pi, or as firmware on an ESP32-S3, drives e-ink, LCD and HDMI displays, and renders its scenes on the device itself. It's designed for both screens that update 60 seconds per frame, and for screens that update 60 frames per second.

Getting started

Start from the hardware you have:

  • A Seeed reTerminal, a Waveshare PhotoPainter or another ESP32-S3 display. Plug it in and flash it from Chrome or Edge at flash.frameos.net: pick the board, your WiFi and the scenes to start with. No account, no backend, nothing to install. Add more scenes later from the Scene store on the frame. Your device's page in the device database names its preset and anything special about it. See the ESP32 guide.
  • A Raspberry Pi and a display. Flash the generic SD image from the latest release, join the FrameOS-XXXX hotspot from your phone, and manage the frame from the admin page it serves itself. See a standalone frame and the Raspberry Pi guide.
  • Several frames, or scenes of your own. Manage them from the self-hosted backend (a Docker container or a Home Assistant add-on) or from FrameOS Cloud. Both flash ESP32 boards and build Pi SD images from the browser, and a frame moves between standalone, a backend and the cloud without reflashing.
  • A board too small to render, like the ESP32-C3 in a TRMNL or the Pico W in a Pimoroni Inky Frame. These run as thin clients: the backend draws each picture for them, and for an ESP32-C3 FrameOS Cloud can too, on a paid plan.
  • No hardware yet. playground.frameos.net runs the frame's runtime in your browser, and a virtual frame shows scenes on any tablet or browser.

What each one needs puts the platforms side by side. Then deploy a scene from the scene store or the samples, or build your own in the scene editor. For a professional look, 3D print a case around your frame.

Supported platforms

Supported are all the most common e-ink displays out there, on a Raspberry Pi or an ESP32-S3. Boards without the memory to render, the ESP32-C3 and the Pico W, run as thin clients.

  • Pimoroni e-ink frames
  • Waveshare e-ink
  • Seeed Studio reTerminal e-paper displays
  • Framebuffer HDMI output
  • Web server kiosk mode

See the full list here!

Seeed Studio reTerminal

FrameOS supports Seeed Studio's reTerminal ePaper displays out of the box. Each one has a hardware preset: pick it, flash the frame from the browser, and scenes render on the device itself.

The Seeed Studio buying guide covers the whole lineup.

Waveshare

Nearly a hundred Waveshare e-Paper panels have native drivers, on a Raspberry Pi or wired to an ESP32-S3. Waveshare's ready-made frames work out of the box:

And panels to build into a frame of your own:

The Waveshare buying guide lists what's tested on real hardware and what to know before buying.

Pimoroni

Pimoroni's boards plug straight onto a Raspberry Pi's header, no wiring:

Bluetooth

FrameOS is not a Bluetooth-qualified product, and neither the project nor FrameOS Cloud is listed with the Bluetooth SIG. The Bluetooth support in the ESP32 firmware (keyboards and mice) is off unless you turn it on. If you sell or distribute hardware with FrameOS and Bluetooth turned on, you are the product's maker: qualifying it with the Bluetooth SIG, and the radio approvals of the market you sell in (FCC, CE / RED, ...), are yours to do. The word "Bluetooth" is used here only to say what the feature does; the Bluetooth word mark and logos belong to Bluetooth SIG, Inc., and FrameOS uses no logo and claims no qualification.

The firmware's Bluetooth stack is Apache NimBLE (Apache License 2.0), with Espressif's Bluetooth controller libraries as ESP-IDF ships them (licensed by Espressif for use on Espressif chips).

FrameOS backend

The FrameOS backend is where you set up your frames. You can run it continuously on a server, or locally on your computer when needed. A Raspberry Pi or an ESP32-S3 renders its own scenes and keeps running while the backend is offline; you'll just miss out on log aggregation. Thin clients (an ESP32-C3, a Pico W) and virtual frames are the exception: the backend draws their pictures, so it has to stay up for them.

Read more in the documentation.

Scripts and AI agents. The backend serves a Model Context Protocol server at POST /api/mcp and accepts personal API tokens (fb_api_…) wherever a login is, so Claude Code or any MCP client can list frames, install and edit scenes, read logs and screenshots, and push settings. Mint a token under Settings → API tokens and MCP; docs/mcp.md has the details.

Compiled scenes are deprecated. FrameOS ships as released binaries and a deploy never compiles anything. A scene still on the legacy compiled path (Nim code nodes or Nim app sources) does not run on that binary: convert it to an interpreted scene at scenes.frameos.net/nim-converter (or in the editor, or with the CLI in cloud/packages/scene-convert; see docs/nim-to-js-conversion.md). Until then such a scene still forces the old whole-frame source build on every deploy — docs/legacy-source-builds.md — which stays until it is deleted: not before December 2026, and possibly much later or never (the gate is in docs/convergence-todo.md, item 1).

Quick install

The easiest way to install the FrameOS backend on a Mac or Debian/Ubuntu Linux is to run the following installation script:

bash <(curl -fsSL https://frameos.net/install.sh)

Running via Docker manually

# running the latest release
SECRET_KEY=$(openssl rand -base64 32)
mkdir -p db
docker run -d -p 8989:8989 \
    -v ./db:/app/db \
    --name frameos \
    --restart always \
    -e SECRET_KEY="$SECRET_KEY" \
    frameos/frameos

# SD card image generation works in the default container without Docker privileges.
# Deploys install released binaries and never compile, so the plain container above
# is all a normal install needs. The variant below additionally hands the backend the
# Docker socket for the deprecated per-frame source build (docs/legacy-source-builds.md).
SECRET_KEY=$(openssl rand -base64 32)
mkdir -p db
mkdir -p /tmp/frameos-cross
docker run -d -p 8989:8989 \
    -v ./db:/app/db \
    -v /tmp/frameos-cross:/tmp/frameos-cross \
    -v /var/run/docker.sock:/var/run/docker.sock \
    --privileged \
    --name frameos \
    --restart always \
    -e SECRET_KEY="$SECRET_KEY" \
    -e TMPDIR=/tmp/frameos-cross \
    frameos/frameos

# update daily to the latest release
docker run -d \
    --name watchtower \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower \
    --interval 86400 \
    frameos

# one time update
docker run \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower \
    --run-once \
    frameos

# running a local dev build via docker
SECRET_KEY=$(openssl rand -base64 32)
docker build -t frameos .
docker run -d -p 8989:8989 \
    -v ./db:/app/db \
    -v /tmp/frameos-cross:/tmp/frameos-cross \
    -v /var/run/docker.sock:/var/run/docker.sock \
    --privileged \
    --name frameos \
    --restart always \
    -e SECRET_KEY="$SECRET_KEY" \
    -e TMPDIR=/tmp/frameos-cross \
    frameos

Home Assistant

Run the backend as the Home Assistant add-on or point a standalone one at Home Assistant under Settings → Home Assistant: every frame becomes a device with its live image, status and scene sensors (the scene's settings as attributes), a scene selector, a display switch and refresh / next / previous / restart / reboot buttons, and frame events reach the event bus as frameos_event. Automations show a scene with parameters through one MQTT command. docs/home-assistant.md has the entities, the MQTT topics and the command format for automations.

HTTPS for frames

Frames talk to the backend on port 8989 (logs, assets, scene state). To serve that port over TLS without a reverse proxy, hand the container a certificate and key with FRAMEOS_SSL_CERTFILE / FRAMEOS_SSL_KEYFILE (for example a /certs mount). A configured certificate that cannot be read stops the container with the reason in the log. New frames are then prefilled with an https:// server address; existing frames need their Server scheme set to https in frame settings and a deploy. Frames verify the certificate against the public CA bundle (Let's Encrypt works, a self-signed one does not), so the frames must reach the backend by the name on the certificate. The Home Assistant add-on has the same switch as its ssl / certfile / keyfile options.

docker run -d -p 8989:8989 \
    -v ./db:/app/db \
    -v /etc/letsencrypt/live/frames.example.com:/certs:ro \
    -e FRAMEOS_SSL_CERTFILE=/certs/fullchain.pem \
    -e FRAMEOS_SSL_KEYFILE=/certs/privkey.pem \
    -e SECRET_KEY="$SECRET_KEY" \
    frameos/frameos

Database

The backend stores everything in SQLite (./db/frameos.db in the volume above) and needs nothing else. SQLite is the only supported database — DATABASE_URL exists because the backend uses SQLAlchemy, but no other engine is tested or shipped with a driver.

Cross-toolchain build container images

Cross-compilation uses prebuilt toolchain containers from Docker Hub at frameos/frameos-cross-toolchain when possible, which avoids rebuilding the toolchain image for every target.

The workflow .github/workflows/frameos-cross-toolchain.yml builds and publishes these images.

The image name is resolved as:

  • {repo}:{base}_{version}-{platform}-{tag}
  • base is the Linux distro (debian, ubuntu, ...)
  • version is the distro version (for example bookworm or 26.04)
  • platform is the docker platform with / replaced by _ (for example linux_amd64, linux_arm64, linux_arm_v7)
  • tag defaults to latest

You can override the default behavior with environment variables:

  • FRAMEOS_CROSS_TOOLCHAIN_IMAGE: full Docker image override (can be a Python format template using slug, base, platform, and tag)
  • FRAMEOS_CROSS_TOOLCHAIN_IMAGE_REPO: image repository (default frameos/frameos-cross-toolchain)
  • FRAMEOS_CROSS_TOOLCHAIN_IMAGE_TAG: image tag used by the default resolver (default latest)
  • FRAMEOS_CROSS_TOOLCHAIN_FORCE_LOCAL_BUILD=1: force rebuilding the toolchain image locally, even if a remote tag exists
  • FRAMEOS_CROSS_TOOLCHAIN_SKIP_PULL=1: skip pulling remote images and only use local/locally built images

Example for local iteration on a new toolchain image:

export FRAMEOS_CROSS_TOOLCHAIN_IMAGE=frameos/frameos-cross-toolchain:debian_trixie-linux_arm_v7-my-wip
export FRAMEOS_CROSS_TOOLCHAIN_FORCE_LOCAL_BUILD=1

Buildroot image cache

Buildroot SD image generation supports a cached Buildroot image with dependency packages preinstalled and the Buildroot tarball preloaded at /frameos-buildroot.

You can control the cached image with:

  • FRAMEOS_BUILDROOT_IMAGE: optional full image name override (supports {slug}, {base}, {version}, and {tag} placeholders)
  • FRAMEOS_BUILDROOT_IMAGE_REPO: image repository (default frameos/frameos-buildroot)
  • FRAMEOS_BUILDROOT_IMAGE_TAG: image tag (default latest)
  • FRAMEOS_BUILDROOT_FORCE_LOCAL_BUILD=1: force rebuilding the Buildroot image locally
  • FRAMEOS_BUILDROOT_SKIP_PULL=1: skip pulling cached images from the registry
  • FRAMEOS_BUILDROOT_DOCKER_IMAGE: base image used when building frameos-buildroot (default debian:bookworm)
  • FRAMEOS_BUILDROOT_IMAGES_DIGESTS_PATH: path to the digest manifest (default buildroot-images.json in repo root)
  • FRAMEOS_BUILDROOT_FRAMEOS_PARTITION_SIZE: /srv/frameos ext4 partition size (default 1G)
  • FRAMEOS_BUILDROOT_ASSETS_PARTITION_SIZE: /srv/assets FAT32 partition size (default 512M)

Buildroot-specific output cache keys include the resolved cache image, so changing image configuration invalidates stale output directories automatically.

Generated SD images use separate partitions for boot, root, FrameOS runtime data, and assets:

  • p1: FAT32 boot partition
  • p2: ext4 root filesystem
  • p3: ext4 /srv/frameos
  • p4: FAT32 /srv/assets

On first boot, Buildroot images expand themselves to fit the target SD card before /srv/frameos and /srv/assets are mounted. The root partition stays at the image size, p3 grows to 2 GiB on cards 4 GiB and larger, and p4 is recreated to fill the remaining space. On cards smaller than 4 GiB, p3 stays at 1 GiB and p4 still takes the rest.

Example:

export FRAMEOS_BUILDROOT_IMAGE_REPO=frameos/frameos-buildroot
export FRAMEOS_BUILDROOT_IMAGE_TAG=latest
export FRAMEOS_BUILDROOT_FORCE_LOCAL_BUILD=1

The corresponding GitHub workflow is .github/workflows/frameos-buildroot.yml and triggers on pushes to main when backend/tools/buildroot.Dockerfile changes. It writes buildroot-images.json with digest data used by runtime image resolution.

Development with Flox

If you use Flox, this repo now ships a checked-in environment. Running flox activate bootstraps the core toolchains and installs the repo-local development dependencies for Python, pnpm, and Nim.

flox activate
pnpm dev

The activation hook creates a local .venv, installs backend/requirements.txt, runs pnpm install --frozen-lockfile for the workspace, and installs the Nim dependencies for frameos/ and frameos/remote/.

If you want Redis managed by Flox as well, start it with:

flox services start redis

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…