About Services Tools Blog Contact us

Badge App Generator from a Description

A web page turns a short description into an app for an electronic badge, using a local model or Anthropic Claude, and can fix an app from a pasted error message.

  • Agentic Workflows
  • Cross-sector
  • Tool
  • Product
  • Hybrid
  • 2026

The problem

Writing a small app for a conference badge needs a code editor, a cable tool and a long technical manual that most visitors do not have. A first attempt often failed on the badge with an error that nobody wanted to track down by hand.

What it does

The page holds standing instructions that explain the badge's buttons, drawing, movement and lights. The visitor names the app and describes it. Ollama, running locally, writes the app, or Anthropic Claude is used through the site's own server so the private access key never sits in the browser. A pasted error message can be sent back for another attempt.

Outcomes

  • A plain-language description gives a downloadable app.
  • The visitor can choose Ollama or Anthropic Claude without the private key being exposed.
  • A pasted error gets a repair attempt.
  • The last session is restored in the browser.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Badge app

Brief

Streamed from the model on this machine. The badge API prompt goes with the brief.

lantern_pulse.py restored
import app

class LanternPulse(app.App):
    def setup(self):
        self.level = 0
        self.up = True

    def frame(self):
        if self.up:
            self.level += 1
        else:
            self.level -= 1
        if self.level in (0, 8):
            self.up = not self.up
        self.lights(self.level)

    def on_centre(self):
        self.setup()

Last session kept in this browser. Generate replaces it.

Lantern Pulse is the restored session

Repair a device error

Pasted from the device
Traceback (most recent call last):
  File "hex_bounce.py", line 2, in module
ImportError: no module named 'imu'

The second pass may change only the failing line.

Second pass
Import error is waiting
hex_bounce.py
import app
import imu
 
class HexBounce(app.App):
def setup(self):
self.x = 120
self.y = 90
self.dx = 4
self.dy = 3
 
def frame(self):
self.x += self.dx
self.y += self.dy
if self.edge(self.x, self.y):
self.dx = -self.dx
self.dy = -self.dy
self.clear()
self.hex()
self.dot(self.x, self.y)
n = self.nearest(self.x, self.y)
self.lights(n)
 
def on_centre(self):
self.setup()

Hex screen

Preview Hex Bounce
A B Centre resets C

No file pushed this session. Generate on the editor first.

How it works

  1. Name the app and describe it in a few sentences.
  2. Send the description and the badge instructions to Ollama or, through the site's server, to Anthropic Claude.
  3. Show the reply as it is written and pick out the single app file.
  4. Offer the file as a download.
  5. Paste an error from the badge to request a second attempt that changes only the failing line.
  6. Keep the last session in the browser.

Pipeline

flowchart LR
  A[Brief] --> B[Badge API prompt]
  B --> C[Ollama]
  B --> D[Anthropic Claude]
  C --> E[App file]
  D --> E
  F[Pasted error] --> E