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.
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-frontendRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install trigger-realtime-and-frontend in Claude Code
git clone --depth 1 https://github.com/triggerdotdev/trigger.dev /tmp/trigger.dev && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/trigger.dev/packages/cli-v3/skills/trigger-realtime-and-frontend ~/.gemini/antigravity-cli/skills/trigger-realtime-and-frontendAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install trigger-realtime-and-frontend in Antigravity CLI
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
ANo 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 →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
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.
