RepositoryPHPUSUnited States
usetrmnl

usetrmnl/larapaper

A self-hosted, community-driven TRMNL server (BYOS) with Recipe support in PHP's Laravel framework

466stars
91forks
16issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: epaper

#1 Repository of the week

1
TINIX TRENDING·Topic: trmnl

#1 Repository of the week

1
TINIX TRENDING·Topic: trmnl-byos

#1 Repository of the week

LaraPaper (PHP/Laravel)

tests

LaraPaper is a self-hostable implementation of a TRMNL server (BYOS), built with Laravel. It allows you to manage TRMNL devices, generate screens using native plugins (Screens API, Markup), recipes (150+ from the OSS community catalog, 700+ from the TRMNL catalog, or your own), or the API, and can also act as a proxy for the native cloud service (Core). With over 250k downloads and 350+ stars, it’s the most popular community-driven BYOS.

Screenshot Screenshot

Key Features

  • 📡 Device Information – Display battery status, WiFi strength, firmware version, and more.
  • 🔍 Auto-Join – Automatically detects and adds devices from your local network.
  • 🖥️ Screen Generation – Supports Plugins (including Mashups), Recipes, API, Markup, or updates via Code.
  • 🔄 TRMNL API Proxy – Can act as a proxy for the native cloud service (requires TRMNL Developer Edition).
    • This enables a hybrid setup – for example, you can update your custom Train Monitor every 5 minutes in the morning, while displaying native TRMNL plugins throughout the day.
  • 🌙 Dark Mode – Switch between light and dark mode.
  • 🐳 Deployment – Dockerized setup for easier hosting (Dockerfile, docker-compose).
  • 💾 Flexible Database configuration – uses SQLite by default, also compatible with MySQL or PostgreSQL
  • 🛠️ Devcontainer support for easier development.

Devices

Support ❤️

This repo is maintained voluntarily by @bnussbau.

Support the development of this package by purchasing a TRMNL device through the referral link: https://trmnl.com/?ref=laravel-trmnl. At checkout, use the code laravel-trmnl to receive a $15 discount on your purchase.

or

"Buy Me A Coffee"

GitHub Sponsors

Hosting

Run everywhere, where Docker is supported: Raspberry Pi, VPS, NAS, Container Cloud Service (Cloud Run, ...). For production use, generate a new APP_KEY (php artisan key:generate --show) and set the environment variable APP_KEY=. For personal use, you can disable registration (see section Environment Variables).

Docker Compose

Docker Compose file located at: docker/prod/docker-compose.yml.

Backup Database
docker ps #find container id of larapaper container
docker cp {{CONTAINER_ID}}:/var/www/html/database/storage/database.sqlite database_backup.sqlite
Updating via Docker Compose
docker compose pull
docker compose down
docker compose up -d

VPS

If you’re using a VPS (e.g., Hetzner) and prefer an alternative to native Docker, you can install Dokploy and deploy LaraPaper using the integrated Template. It’s a quick way to get started without having to manually manage Docker setup.

PikaPods

You can vote for LaraPaper to be included as PikaPods Template here: feedback.pikapods.com

Umbrel

Umbrel is supported through a community store, see.

Other Hosting Options

Laravel Forge, or bare metal PHP server with Nginx or Apache is also supported.

Requirements

Local Development

see docs/DEVELOPMENT.md

Demo Plugins

Run the ExampleRecipesSeeder to seed the database with example plugins:

php artisan db:seed --class=ExampleRecipesSeeder
  • Zen Quotes
  • This Day in History
  • Weather
  • Train Departure Monitor
  • Home Assistant
  • Sunrise/Sunset

Usage

Environment Variables

Environment VariableDescriptionDefault
TRMNL_PROXY_BASE_URLBase URL of the native TRMNL servicehttps://trmnl.app
TRMNL_PROXY_REFRESH_MINUTESHow often should the server fetch new images from native service15
REGISTRATION_ENABLEDAllow user registration via Webinterface1
PASSKEYS_ENABLEDEnable Passkeys for login (requires HTTPS)0
SSL_MODESSL Mode, if not using a Reverse Proxy (docs)off
FORCE_HTTPSIf your server handles SSL termination, enforce HTTPS. Alternative: TRUSTED_PROXIES.0
TRUSTED_PROXIESIf your server handles SSL termination, allow mixed mode. e.g. "172.0.0.0/8" or *null
PHP_OPCACHE_ENABLEEnable PHP Opcache0
TRMNL_IMAGE_URL_TIMEOUTHow long TRMNL waits for a response on the display endpoint. (sec)30
APP_TIMEZONEDefault timezone, which will be used by the PHP date functions. UTC is recommended.UTC

Login

If your environment is local, you can access the server at http://localhost:4567 and login with user / password admin@example.com / admin@example.com, otherwise register. With environment variable REGISTRATION_ENABLED you can control, if registration is allowed.

➕ Add Your TRMNL Device

Auto-Join (Local Network)
  1. Switch on the “Permit Auto-Join” toggle in the header. For that to work only one user can be registered.
  2. New devices on your local network will be detected and added automatically when connecting to the server.

✅ This is the easiest way to connect your devices with minimal effort.

Manually
  1. Open the Devices page: 👉 http://localhost:4567/devices
  2. Click “Add New Device”.
  3. Retrieve your TRMNL MAC Address and API Key:
  • You can grab the TRMNL Mac Address and API Key from the TRMNL Dashboard
  • Alternatively, debug incoming requests to /api/setup to determine them

⚙️ Configure Server for Device

📌 Firmware Version 1.4.6 or Newer

  • Setup device
  • After entering Wifi credentials, choose "Custom Server"
  • Point to the URL of your server

Firmware Older Than 1.4.6

If your device firmware is older than 1.4.6, you need to flash a new firmware version to point it to your server.

See this YouTube guide: https://www.youtube.com/watch?v=3xehPW-PCOM

☁️ Activate fresh TRMNL Device with Cloud Proxy

  1. Setup the TRMNL as in the official docs with the cloud service (connect one of the plugins to later verify it works)
  2. Setup LaraPaper, create a user and login
  3. In LaraPaper in the header bar, activate the toggle "Permit Auto-Join"
  4. Press and hold the button on the back of your TRMNL for 5 seconds to reactivate the captive portal (or reflash).
  5. Go through the setup process again, in the screen where you provide the Wi-Fi credentials there is also option to set the Server URL. Use the local address of LaraPaper.
  6. The device should automatically appear in the device list; you can deactivate the "Permit Auto-Join" toggle again.
  7. In the devices list, activate the toggle "☁️ Proxy" for your device. (Make sure that the queue worker is active. In the docker image it should be running automatically.)
  8. As long as no LaraPaper plugin is scheduled, the device will show your cloud plugins.
Troubleshooting

Make sure that your device has a Developer license, you should be able to verify by calling the https://trmnl.app/api/display endpoint.

🖥️ Generate Screens

Markup via Web Interface

  1. Navigate to Plugins > Markup in the Web Interface.
  2. Enter your markup manually or select from the available templates.
  3. Save and apply the changes.

🎨 Blade View

php artisan trmnl:screen:generate

Generate via API

You can dynamically update screens by sending a POST request.

  • Send a POST request to /api/screen with the following payload

Authorization Bearer <TOKEN>

Body
{
    "markup": "<h1>Hello World</h1>"
}

Releated Work

🤝 Contribution

Contributions are welcome! See CONTRIBUTING.md for details.

License

MIT

Similar Projects

Discover other similar projects and AI models.

RepositoryRuby
usetrmnl/terminus

The flagship TRMNL BYOS application.

804
Dec 1, 2026
RepositoryGo
henrygd/beszel

Lightweight server monitoring with historical data, docker stats, and alerts.

27.8k
Dec 1, 2026
RepositoryVue
lissy93/dashy

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

27.1k
Dec 1, 2026
RepositoryRuby
usetrmnl/trmnlp

a local dev server for building TRMNL plugins

241
Nov 25, 2026
RepositoryC
usetrmnl/trmnl-display

Embedded ePaper friendly Linux client for displaying TRMNL screens

175
Sep 2, 2026
RepositoryTypeScript
usetrmnl/inker

BYOS server written in TypeScript / React / Prisma

150
Jul 30, 2026
RepositoryHTML
usetrmnl/trmnl-framework

TRMNL ePaper design system

121
Nov 23, 2026
RepositoryTypeScript
usetrmnl/byos_next

A BYOS Next.js implementation.

98
Jul 2, 2026
Repository
awesome-selfhosted/awesome-selfhosted

A list of Free Software network services and web applications which can be hosted on your own servers

342.8k
Dec 3, 2026