Building blocks in black, white, gray and amber scattered flat on a lavender table, seen from above, with sunlight casting a dotted sun behind a cloud and a temperature line across the table

Plugins, Framework and Recipes

Build plugins with HTML and Liquid or describe it to the optional built-in agent. Then style it with Framework and publish for others.

Private plugins

Three ways to build a plugin

A private plugin is a screen you build for your own TRMNL. All three ways make the same kind of plugin, on the same design framework.

Keep a plugin to yourself or publish it for everyone. Our servers fetch its data for you, or the Alias plugin has the device load an image straight from your own server.

  • By hand

    Write it in HTML and Liquid

    • The markup editor previews your screen as you type, colors your Liquid and warns about mistakes.
    • Work on your own computer with trmnlp and the TRMNL CLI, and keep the code in GitHub with GitHub Sync.
    • Serverless plugins run your code on TRMNL, with no server of your own.
    • Plugin logs show when a fetch or a render fails, and why.
    Private plugins guide
  • Visually

    Lay it out on a canvas

    • The Visual Editor lays out a screen on a canvas, without writing HTML.
    • Lay out each size of the screen, from the full screen to a quadrant.
    • It opens from the markup editor, so the code is one click away.
    See the Visual IDE
  • By describing it

    Tell the agent what you want

    • The built-in agent drafts the plugin from plain words, in the plugin editor.
    • It is optional, and you can change what it makes by hand or on the canvas.
    • It runs on credits. Some are free when you sign up and each month with TRMNL+, and you can buy more.
    • Or use your own OpenRouter or Anthropic key, and no credits.
    AI Agent guide

This is what the first way looks like: HTML with Liquid tags, filled with your data each time the screen is drawn.

Liquid
{% if events.size > 0 %}
  {% for event in events %}
    <div class="item">
      <div class="content">
        <span class="title title--small">{{ event.title }}</span>
        <span class="description">{{ event.description }}</span>
        <span class="label">{{ event.start_time }}</span>
      </div>
    </div>
  {% endfor %}
{% else %}
  <span class="title title--small">No events scheduled.</span>
{% endif %}

TRMNL is not an AI product. The agent is optional, and building by hand is welcome.

MCP

Connect your own AI tools

TRMNL runs an MCP server, so an AI agent you already use can work on your TRMNL account: its devices, playlists and plugins.

Access
Sign in with your TRMNL account to decide what the agent may do and which devices and plugins it can reach. You can change or take back that access at any time under Account.
Agents
Claude, ChatGPT, Cursor and other agents that speak MCP. Some require a paid plan with developer mode.
What it can do
Read and change devices, playlists, plugins and their markup, render screenshots and push data, within the access you grant.
Agent skills
Our agent skills teach coding agents to build TRMNL plugins with the design framework.
Files for agents
llms-full.txt holds all of the framework's docs in one file. auth.md tells an agent how to sign in.
Your own app
Building an app for TRMNL users? Connect with TRMNL gives it a sign-in and API keys that reach only what it needs.

Ready to build?

Our Developer Docs have tutorials, sample code and best practices.

All developer resources