Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

trigger-realtime-and-frontend

Skill by triggerdotdev

Trigger.dev skill for the frontend side of runs and streams. It helps developers show live run progress, token streams, trigger buttons, and approval UIs in React, Next.js, or Remix.

  • Score 88
  • 17k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install trigger-realtime-and-frontend

Built from the published package, never by AI.

git clone --depth 1 https://github.com/triggerdotdev/trigger.dev /tmp/trigger.dev && mkdir -p ~/.claude/skills && cp -r /tmp/trigger.dev/packages/trigger-sdk/skills/trigger-realtime-and-frontend ~/.claude/skills/trigger-realtime-and-frontend

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install trigger-realtime-and-frontend in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill covers the consumer side of Trigger.dev. It explains how code running in a React, Next.js, or Remix frontend, or in a backend-for-frontend, can subscribe to live run updates with useRealtimeRun, read metadata and AI or text streams with useRealtimeStream, and trigger tasks from the browser. It also covers sending input into a running task and completing wait tokens.

The flow is to mint a scoped token on the backend with auth.createPublicToken or auth.createTriggerPublicToken, pass it to the frontend, and subscribe with a hook from @trigger.dev/react-hooks. The skill is for developers building live progress views, status badges, token streams, trigger buttons, or approval UIs. Writing the backend task itself is covered by a separate skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • useRealtimeRunSubscribes a React component to live updates for a run.
  • runs.subscribeToRunStreams run updates from the backend using async iterators until the run finishes.
  • useRealtimeStreamConsumes a defined or keyed AI or text stream from a run in React.
  • useTaskTriggerTriggers a task from the browser using a Trigger Token.
  • useRealtimeTaskTriggerTriggers a task from the browser and subscribes to the resulting run in one hook.
  • useInputStreamSendSends input back into a running task from the frontend.
  • useWaitTokenCompletes a wait token from React, for example an approval step.
  • auth.createPublicTokenMints a scoped public access token for reading runs on the backend.
  • auth.createTriggerPublicTokenMints a single-use token that lets the browser trigger a specific task.

What you need

  • @trigger.dev/sdk installed on the backend
  • @trigger.dev/react-hooks installed in the frontend
  • A React frontend such as React, Next.js, or Remix
  • SDK 4.1.0 or later for the recommended useRealtimeStream hook

Try asking

  • Show live progress for my Trigger.dev run in a React status badge.
  • Stream the AI output of a Trigger.dev run into my Next.js page.
  • Add a button that triggers my Trigger.dev task from the browser safely.

Good to know

  • A Public Access Token cannot trigger tasks. Use a Trigger Token for browser triggers.
  • Public Access Tokens and Trigger Tokens both default to a 15 minute expiry.
  • useRealtimeStream defaults to a 60 second timeout unless set otherwise.
  • Realtime hooks must run in client components and cannot run in server components.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/trigger-sdk/skills/trigger-realtime-and-frontend/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB

Alternatives to trigger-realtime-and-frontend

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

trigger-realtime-and-frontend: common questions

Can I trigger a Trigger.dev task from the browser?

Yes, with a single-use Trigger Token from auth.createTriggerPublicToken passed to useTaskTrigger. The read-only Public Access Token cannot trigger tasks.

Which hook should I use for live run status?

The source recommends useRealtimeRun, which subscribes to updates without polling. It says useRun is SWR-based polling and is not recommended for live state.

Does this skill write the backend task?

No. It covers the consumer side only. Defining streams and setting metadata belong to the trigger-authoring-tasks skill.

How do I install trigger-realtime-and-frontend?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is trigger-realtime-and-frontend free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is trigger-realtime-and-frontend safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to trigger-realtime-and-frontend?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

trigger-realtime-and-frontend Install

Add to stack

Loading.