Borrowing it
Nothing to install: this file belongs to dev-lou/PixelPilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dev-lou/PixelPilot/main/vscode/.github/instructions/uiux-realtime.instructions.mdgit clone --depth 1 https://github.com/dev-lou/PixelPilotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-realtime)<a href="https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-realtime"><img src="https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-realtime.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03517 | $0.03517 |
| Opus 5 | $0.01758 | $0.01758 |
| Sonnet 5 | $0.00703 | $0.00703 |
| Haiku 4.5 | $0.00352 | $0.00352 |
Grade A, and why
PixelPilot uiux-realtime.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 567 lines — stays where its author put it; the contents beside it link to each section on GitHub.
UI/UX Real-time Features 2026
WebSockets (Socket.io, Pusher, native WebSocket API), Server-Sent Events (EventSource), live dashboards, collaborative editing (CRDTs), and real-time chat.
1. REAL-TIME DATA ARCHITECTURE
WebSockets (Two-way Communication)
Best for: Chat, collaborative editing, real-time gaming.
Tools: Socket.io, Pusher, native WebSocket API.
Server-Sent Events (One-way Streaming)
Best for: Live dashboards, stock tickers, notification feeds.
Tools: EventSource API.
Free Tier Recommendations (2026)
- Pusher: 200k messages/day (Great for starters).
- Supabase Realtime: Included in free tier (Postgres-backed).
- Ably: Generous free tier with high reliability.
2. LIVE DASHBOARD (React + WebSocket)
import React, { useEffect, useState } from 'react';
import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, Tooltip } from 'recharts';
export function LiveChart() {
const [data, setData] = useState([]);
useEffect(() => {
// Native WebSocket Example
const ws = new WebSocket('wss://api.example.com/realtime');
ws.onmessage = (event) => {
const newData = JSON.parse(event.data);
setData(prev => [...prev.slice(-19), newData]); // Keep last 20 points
};
return () => ws.close();
}, []);
return (
<div className="kpi-card">
<h3 className="kpi-card__title">Live Traffic</h3>
<div style={{ height: 200, width: '100%' }}>
<ResponsiveContainer width="100%" height="100%">
<LineChart data={data}>
<Line type="monotone" dataKey="value" stroke="var(--accent)" strokeWidth={2} dot={false} isAnimationActive={false} />
<XAxis dataKey="time" hide />
<YAxis hide domain={['auto', 'auto']} />
<Tooltip />
</LineChart>
</ResponsiveContainer>
</div>
</div>
);
}
3. REAL-TIME CHAT (Minimal Socket.io Example)
import { io } from "socket.io-client";
const socket = io("https://chat-server.example.com");
// Sending a message
function sendMessage(msg) {
socket.emit("chat message", {
text: msg,
user: "User123",
timestamp: new Date().toISOString()
});
}
// Receiving a message
socket.on("chat message", (msg) => {
displayMessage(msg); // Update UI
swal.toast(`New message from ${msg.user}`, 'info');
});
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 567 lines · 3,517 tokens per session scan A ead9cbf90a25
PixelPilot uiux-realtime.instructions.md is an instructions file published in the GitHub repository dev-lou/PixelPilot (2 stars, last pushed 5mo ago), licensed MIT. It adds 3,517 tokens to every session, about $0.0176 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other instructions, from other repositories
plan-forge dapr.instructions.md
Dapr patterns for .NET — building blocks, component config, sidecar architecture, multi-tenant isolation, workflows, state management, secrets.
plan-forge auth.instructions.md
.NET authentication & authorization — JWT/OIDC, policy-based auth, multi-tenant isolation, API keys, testing.
plan-forge api-patterns.instructions.md
API patterns for .NET — REST conventions, ProblemDetails, pagination, versioning, error responses.
plan-forge graphql.instructions.md
GraphQL patterns for .NET — Hot Chocolate, code-first schema, DataLoaders, authorization, multi-tenant resolvers.
plan-forge messaging.instructions.md
Messaging patterns for .NET — Dapr Pub/Sub, MassTransit, NATS, RabbitMQ, CloudEvents.
plan-forge errorhandling.instructions.md
Error handling patterns — Exception hierarchy, ProblemDetails responses, error boundaries, global exception middleware.