Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/janhesters/react-router-saas-templateWrote 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/rules/janhesters/react-router-saas-template/jsx-and-tsx)<a href="https://agentmods.dev/rules/janhesters/react-router-saas-template/jsx-and-tsx"><img src="https://agentmods.dev/badge/rules/janhesters/react-router-saas-template/jsx-and-tsx/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/janhesters/react-router-saas-template/jsx-and-tsx"><img src="https://agentmods.dev/badge/rules/janhesters/react-router-saas-template/jsx-and-tsx.svg" alt="Reviewed on agentmods" width="80" 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.00790 | $0.00790 |
| Opus 5.5 | $0.00316 | $0.00316 |
| Sonnet 5.5 | $0.00158 | $0.00158 |
| Haiku 4.5 | $0.00079 | $0.00079 |
Grade A, and why
jsx-and-tsx 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 2mo 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 — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React guide
Act as a top-tier software engineer with extensive React ecosystem knowledge to build high-quality fullstack web applications.
Before Writing Code
- Observe the project's relevant existing code.
- Conform to existing code style, patterns, and conventions unless directed otherwise. Note: these instructions count as "directed otherwise" unless the user explicitly overrides them.
Principles
- Display/container component pattern
- Split your component into display components, which are pure functions that map props to JSX, and container components, which are (optional) stateful components that wrap one display component.
- Then compose them together in the parent or page/route component.
Constraints { Be concise. You're using React Router V7 (the successor to Remix). Use ShadCN/ui for components. If a component is missing, install it. Modularize by feature; one concern per file or component; prefer named exports. This project uses TailwindCSS V4, so you can use things like container queries and child selectors. }
NamingConstraints {
Use clear, descriptive, consistent naming.
Components should be postfixed with Component.
Props should be the component's name, postifxed with ComponentProps.
}
TypeConstraints { Use proper React TypeScript types: MouseEventHandler, ChangeEventHandler, ReactNode, React.Ref, ComponentProps<'element'>, etc. Never use generic () => void or (event: any) => void. When extending HTML elements or existing components, use ComponentProps to inherit their props: ComponentProps<'input'>, ComponentProps<'button'>, ComponentProps. This project uses Prisma. If a prop comes from a database entity, use the entities type for it, e.g.: - type UserMenuProps = Pick<UserAccount, 'id' | 'name' | 'email'> & { onLogout: MouseEventHandler; organizationName: Organization['name']; } When using server/database return types: Awaited<ReturnType>, wrap with NonNullable<> if guaranteed to exist. }
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.
- 2mo ago First seen · 76 lines · 790 tokens per session scan A 1ab0f3297fa1
jsx-and-tsx is a cursor rule published in the GitHub repository janhesters/react-router-saas-template (50 stars, last pushed 4d ago), licensed MIT. It adds 790 tokens to every session, about $0.0032 per session on Opus 5.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-08-30.
jsx-and-tsx compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| jsx-and-tsxjanhesters/react-router-saas-template | Cursor rule | 50 | 4d ago | MIT | A | 790 | Cursor |
| frontend-developmentCopilotKit/CopilotKit | Cursor rule | 39k | yesterday | MIT | A | 0 | Cursor |
| examples-and-demosCopilotKit/CopilotKit | Cursor rule | 39k | yesterday | MIT | A | 0 | Cursor |
| suggestions-developmentCopilotKit/CopilotKit | Cursor rule | 39k | yesterday | MIT | A | 13 | Cursor |
| agent-developmentCopilotKit/CopilotKit | Cursor rule | 39k | yesterday | MIT | A | 0 | Cursor |
| quick-referenceCopilotKit/CopilotKit | Cursor rule | 39k | yesterday | MIT | A | 0 | Cursor |
| cursorrulesCopilotKit/CopilotKit | Cursor rule | 39k | yesterday | MIT | A | 594 | Cursor |