Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions templates/assistant-ui/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Echo template rules for Next.js projects (App Router).
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + Next.js template rules

## Project shape
- This is a Next.js (App Router) project.
- Prefer React Server Components where appropriate; only add `"use client"` when needed.

## API routes
- API routes live under `app/api/**/route.ts`.
- Keep handlers small; factor reusable logic into `lib/`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- When documenting setup, update README and keep `.env.example` in sync.

## TypeScript + lint
- Keep types strict and avoid `any`.
- Prefer `zod` or existing validators in the template when validating inputs.

## Echo integration
- When wiring Echo endpoints, keep the `/api/echo/*` surface consistent with the template.
- Avoid breaking changes to request/response shapes.
27 changes: 27 additions & 0 deletions templates/authjs/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Echo template rules for Next.js projects (App Router).
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + Next.js template rules

## Project shape
- This is a Next.js (App Router) project.
- Prefer React Server Components where appropriate; only add `"use client"` when needed.

## API routes
- API routes live under `app/api/**/route.ts`.
- Keep handlers small; factor reusable logic into `lib/`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- When documenting setup, update README and keep `.env.example` in sync.

## TypeScript + lint
- Keep types strict and avoid `any`.
- Prefer `zod` or existing validators in the template when validating inputs.

## Echo integration
- When wiring Echo endpoints, keep the `/api/echo/*` surface consistent with the template.
- Avoid breaking changes to request/response shapes.
19 changes: 19 additions & 0 deletions templates/echo-cli/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
description: Echo template rules for Node.js CLI projects.
globs: "**/*.{ts,js,md,json}"
alwaysApply: true
---

# Echo CLI template rules

## Runtime
- This is a Node.js CLI.
- Prefer small pure functions and keep side-effects near the entrypoint.

## Config + secrets
- Never invent API keys. Read configuration from `.env.local` or other documented config files.
- Do not log secrets.

## UX
- CLI output should be concise and actionable.
- Always return non-zero exit codes on failure.
27 changes: 27 additions & 0 deletions templates/next-chat/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Echo template rules for Next.js projects (App Router).
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + Next.js template rules

## Project shape
- This is a Next.js (App Router) project.
- Prefer React Server Components where appropriate; only add `"use client"` when needed.

## API routes
- API routes live under `app/api/**/route.ts`.
- Keep handlers small; factor reusable logic into `lib/`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- When documenting setup, update README and keep `.env.example` in sync.

## TypeScript + lint
- Keep types strict and avoid `any`.
- Prefer `zod` or existing validators in the template when validating inputs.

## Echo integration
- When wiring Echo endpoints, keep the `/api/echo/*` surface consistent with the template.
- Avoid breaking changes to request/response shapes.
27 changes: 27 additions & 0 deletions templates/next-image/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Echo template rules for Next.js projects (App Router).
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + Next.js template rules

## Project shape
- This is a Next.js (App Router) project.
- Prefer React Server Components where appropriate; only add `"use client"` when needed.

## API routes
- API routes live under `app/api/**/route.ts`.
- Keep handlers small; factor reusable logic into `lib/`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- When documenting setup, update README and keep `.env.example` in sync.

## TypeScript + lint
- Keep types strict and avoid `any`.
- Prefer `zod` or existing validators in the template when validating inputs.

## Echo integration
- When wiring Echo endpoints, keep the `/api/echo/*` surface consistent with the template.
- Avoid breaking changes to request/response shapes.
27 changes: 27 additions & 0 deletions templates/next-video-template/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Echo template rules for Next.js projects (App Router).
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + Next.js template rules

## Project shape
- This is a Next.js (App Router) project.
- Prefer React Server Components where appropriate; only add `"use client"` when needed.

## API routes
- API routes live under `app/api/**/route.ts`.
- Keep handlers small; factor reusable logic into `lib/`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- When documenting setup, update README and keep `.env.example` in sync.

## TypeScript + lint
- Keep types strict and avoid `any`.
- Prefer `zod` or existing validators in the template when validating inputs.

## Echo integration
- When wiring Echo endpoints, keep the `/api/echo/*` surface consistent with the template.
- Avoid breaking changes to request/response shapes.
27 changes: 27 additions & 0 deletions templates/next/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Echo template rules for Next.js projects (App Router).
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + Next.js template rules

## Project shape
- This is a Next.js (App Router) project.
- Prefer React Server Components where appropriate; only add `"use client"` when needed.

## API routes
- API routes live under `app/api/**/route.ts`.
- Keep handlers small; factor reusable logic into `lib/`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- When documenting setup, update README and keep `.env.example` in sync.

## TypeScript + lint
- Keep types strict and avoid `any`.
- Prefer `zod` or existing validators in the template when validating inputs.

## Echo integration
- When wiring Echo endpoints, keep the `/api/echo/*` surface consistent with the template.
- Avoid breaking changes to request/response shapes.
27 changes: 27 additions & 0 deletions templates/nextjs-api-key-template/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
description: Echo template rules for Next.js projects (App Router).
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + Next.js template rules

## Project shape
- This is a Next.js (App Router) project.
- Prefer React Server Components where appropriate; only add `"use client"` when needed.

## API routes
- API routes live under `app/api/**/route.ts`.
- Keep handlers small; factor reusable logic into `lib/`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- When documenting setup, update README and keep `.env.example` in sync.

## TypeScript + lint
- Keep types strict and avoid `any`.
- Prefer `zod` or existing validators in the template when validating inputs.

## Echo integration
- When wiring Echo endpoints, keep the `/api/echo/*` surface consistent with the template.
- Avoid breaking changes to request/response shapes.
22 changes: 22 additions & 0 deletions templates/react-chat/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
description: Echo template rules for React (Vite) projects.
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + React template rules

## Project shape
- This is a React + Vite project.
- Prefer colocating UI components under `src/components`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- Keep `.env.example` up to date.

## TypeScript
- Avoid `any`; prefer explicit types.

## Echo integration
- If adding API calls, keep them in a small client module (e.g. `src/lib/echo.ts`).
- Handle network errors and show useful UI fallbacks.
22 changes: 22 additions & 0 deletions templates/react-image/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
description: Echo template rules for React (Vite) projects.
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + React template rules

## Project shape
- This is a React + Vite project.
- Prefer colocating UI components under `src/components`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- Keep `.env.example` up to date.

## TypeScript
- Avoid `any`; prefer explicit types.

## Echo integration
- If adding API calls, keep them in a small client module (e.g. `src/lib/echo.ts`).
- Handle network errors and show useful UI fallbacks.
22 changes: 22 additions & 0 deletions templates/react/.cursor/rules/echo_rules.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
description: Echo template rules for React (Vite) projects.
globs: "**/*.{ts,tsx,js,jsx,md,mdx,json}"
alwaysApply: true
---

# Echo + React template rules

## Project shape
- This is a React + Vite project.
- Prefer colocating UI components under `src/components`.

## Env configuration
- Never invent API keys. Use values from `.env.local` / `.env.example`.
- Keep `.env.example` up to date.

## TypeScript
- Avoid `any`; prefer explicit types.

## Echo integration
- If adding API calls, keep them in a small client module (e.g. `src/lib/echo.ts`).
- Handle network errors and show useful UI fallbacks.