Skip to content
Abdullah49645Public

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Propire

Direct it. Build it. Put it on screen.

Propire is an agentic production-design tool for creating functional interactive digital props for film and television from natural-language direction.

The problem

Production teams frequently need fictional interactive screens for individual scenes — terminals, scanners, medical displays, spacecraft controls, surveillance systems, and the like. Traditionally these require specialized design and development work, and become painful when a director asks for last-minute changes on set.

The solution

A director describes what the prop should look like and how it should behave, in plain English. Propire's agent translates that direction into a functional digital prop, renders it live for preview, verifies it against the director's stated requirements, and lets the director iterate conversationally — the agent revises the existing prop rather than starting over.

Features

  • Natural-language prop direction — describe a prop the way you'd describe it to a person, not a spec sheet.
  • AI-assisted prop generation — Gemini plans the prop's states, interactions, and requirements, then generates a working component.
  • Functional interactive digital props — every generated prop is a real, interactive React component, not a static mockup or image.
  • Reference-grounded generation — when a request implies real-world authenticity ("realistic ICU vital ranges", "authentic 1980s military terminal"), the agent researches it via Parallel's Search API before generating.
  • Deterministic verification — the agent checks the rendered prop's actual DOM state and interactions against the director's stated requirements, not an LLM's guess at what it looks like.
  • Self-healing — a failed requirement triggers an automatic patch, re-render, and re-verify cycle (up to two attempts) before reporting back.
  • Conversational iteration — send a follow-up note and the agent revises the existing prop, preserving what still applies.
  • Version history with rollback — every revision is kept; any earlier version can be restored as a new version without losing history.
  • Production-oriented interface — a director's console next to a live prop stage, styled like production hardware rather than a generic AI chat UI.

Architecture

flowchart TD
    A[Director's natural-language note] --> B[Plan: Gemini via Agent Development Kit]
    B --> C{Needs real-world grounding?}
    C -- yes --> D[Research: Parallel Search API]
    C -- no --> E[Generate: Gemini via ADK]
    D --> E
    E --> F[Render: sandboxed iframe]
    F --> G[Verify: deterministic DOM/state checks]
    G -- pass --> H[Present live prop + version]
    G -- fail --> I[Patch: Gemini via ADK]
    I --> F
    H --> J[Director sends a follow-up note]
    J --> B
Loading

Every prop is a self-contained React component that reflects its current state via a data-prop-state attribute and exposes its interactions via data-action attributes — a contract enforced through the generation prompt. That contract is what makes verification deterministic: the app clicks and inspects the actual rendered DOM inside a fully sandboxed (srcDoc, no allow-same-origin) iframe, rather than asking an LLM to judge a screenshot.

Props render as components inside this one app instead of being deployed as separate hosted micro-apps per request — there's no reliable public API for an external agent to trigger that kind of on-demand deployment, and rendering in-process is faster and more reliable for a live demo besides.

Technology stack

  • Next.js (App Router) + React + TypeScript
  • Tailwind CSS
  • Google Agent Development Kit (@google/adk) — LlmAgent + InMemoryRunner, authenticated via the Gemini Developer API (free tier, with optional key rotation) or Vertex AI
  • Parallel Search API (parallel-web) — real-world reference research at generation time
  • Zod — structured output validation for the planning step
  • Web Audio API + navigator.vibrate — minimal synthesized UI feedback (no audio files)

Getting started

git clone <this-repo-url>
cd propire
npm install
cp .env.example .env.local

Fill in .env.local:

GEMINI_API_KEY=          # from aistudio.google.com/apikey - free, no card
PARALLEL_API_KEY=        # from platform.parallel.ai
GEMINI_MODEL=gemini-flash-lite-latest

See the comments in .env.example for the optional GEMINI_API_KEYS rotation pool and the Vertex AI setup (GOOGLE_GENAI_USE_VERTEXAI, GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, GOOGLE_SERVICE_ACCOUNT_JSON) - Vertex is optional, not required for "Google Cloud Agent Builder" compliance, which comes from using @google/adk itself regardless of which auth backend it's pointed at.

npm run dev

Open http://localhost:3000, pick a quick-start prompt or write your own, and hit Direct Prop.

Deployment

Deploys as a normal Next.js app (e.g. Vercel). One non-default config: since @google/adk's main entry pulls in optional peer packages (A2A server, GCS, session DB) this app never touches, next.config.ts marks @google/adk as a serverExternalPackages entry so the bundler doesn't try to statically resolve them at build time. Set the same environment variables from .env.example in your deployment platform's dashboard.

Hackathon

Built for Agentic Cinema: The Blockbuster Hackathon (Google Cloud + Devpost). Partner track: Parallel.

  • Gemini + Google Cloud Agent Builder: the agent is built natively on the official Agent Development Kit (@google/adk), per the hackathon's own guidance to use ADK "instead of external wrapper libraries" - not a raw API wrapper.
  • Parallel: the Search API is called at runtime whenever a director's request implies real-world grounding, feeding results directly into prop generation rather than being a bolted-on, unused integration.
  • Relevance to media & entertainment: Propire targets a real production workflow - the fictional interactive screens (scanners, monitors, terminals, control panels) that shows constantly need for individual scenes, normally requiring dedicated design/development time per prop.

Demo

  1. A director submits a prop request (e.g. a biometric scanner with a SCAN interaction and an ACCESS DENIED state).
  2. The agent plans requirements, optionally researches real-world reference material, generates the prop, and renders it live.
  3. Verification runs automatically against the stated requirements; any failure triggers an automatic patch-and-reverify cycle.
  4. The director sends a follow-up note; the agent revises the existing prop rather than generating something new.

See docs/DEMO_SCRIPT.md for the full timed walkthrough.

Project structure

app/
  page.tsx              main workspace (director console + live prop stage)
  api/
    plan/                Gemini: understand + plan requirements
    research/             Parallel: real-world reference search
    code/                 Gemini: generate the prop component, persists the version
    patch/                 Gemini: self-heal a failed requirement
    rollback/               restore an earlier version as a new version
    verify-report/           persists a client-run verification report
lib/
  gemini.ts              ADK-based Gemini access (plan/generate/patch, key rotation)
  parallel.ts            Parallel Search API wrapper
  prompts.ts              system prompts + the sandbox code contract
  sandbox.ts               builds the sandboxed iframe HTML
  verify-client.ts          deterministic postMessage-based verification runner
  store.ts                  in-memory project/version store
  types.ts                   shared domain types
  feedback.ts                 synthesized sound/haptic feedback
components/               PropStage, StatusTicks, RequirementChecklist, VersionTimeline, PropireWordmark
docs/DEMO_SCRIPT.md       timed demo walkthrough

License

MIT — see LICENSE.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages