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

Wires React, Next.js or Remix frontends to Trigger.dev runs in realtime. It covers live run progress, token streams, browser task triggering and scoped frontend tokens.

  • Score 89
  • 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/cli-v3/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 client and frontend side of Trigger.dev. It shows how to subscribe to runs in realtime with runs.subscribeToRun and the useRealtimeRun hook from @trigger.dev/react-hooks. It also covers consuming metadata and AI or text streams in React with useRealtimeStream, and triggering tasks from the browser with useTaskTrigger and useRealtimeTaskTrigger.

The skill explains how to mint scoped frontend credentials with auth.createPublicToken and auth.createTriggerPublicToken. It lists common mistakes, such as using a read token to trigger tasks and rendering large payloads. The full reference ships inside the installed @trigger.dev/sdk package. It is intended for developers building a frontend or backend-for-frontend that shows live run status, token streams, trigger buttons or wait-token approval UIs.

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

What it can do

  • runs.subscribeToRunSubscribes to a run in realtime from the SDK.
  • useRealtimeRunReact hook that tracks live run state without polling.
  • useRealtimeStreamReact hook that consumes metadata and AI or text streams.
  • useTaskTriggerTriggers a task from the browser.
  • useRealtimeTaskTriggerTriggers a task from the browser and tracks it in realtime.
  • auth.createPublicTokenMints a scoped read token for frontend subscriptions.
  • auth.createTriggerPublicTokenMints a single-use token that allows triggering a named task from the browser.

What you need

  • @trigger.dev/sdk installed in the project
  • A React-based frontend such as React, Next.js or Remix
  • Trigger.dev access for minting tokens

Try asking

  • Show a live progress bar for a Trigger.dev run in my React app
  • Add a button that triggers my Trigger.dev task from the browser
  • Stream AI text output from a run into a Next.js component

Good to know

  • Public access tokens from createPublicToken cannot trigger tasks.
  • Realtime and trigger hooks cannot run in server components.
  • This skill covers the consumer side only, not writing backend tasks.

Security check

A

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

Checked automatically: packages/cli-v3/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.md4 KB

Alternatives to trigger-realtime-and-frontend

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

trigger-realtime-and-frontend: common questions

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

Yes. The skill says to mint a single-use Trigger Token with auth.createTriggerPublicToken and pass it to useTaskTrigger. A read token from createPublicToken cannot trigger tasks.

How do I show live run status in React?

Use the useRealtimeRun hook from @trigger.dev/react-hooks with an access token. The skill says this avoids polling with useRun.

Where do I find the full reference for this skill?

The skill points to node_modules/@trigger.dev/sdk/skills and docs/realtime inside the installed SDK, so the docs match the project's SDK version.

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 89 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: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

trigger-realtime-and-frontend Install

Add to stack

Loading.