Diff Suggestion

Two-line before/after suggestion with a rose strike-through original and an emerald accepted revision.

rate limited users get a 429 response

rate-limited users get a 429 response with a Retry-After header

New here? Read the installation guide.

Import & use
import { Ai45 } from "@/components/beste/piece/ai45";

<Ai45
  before="rate limited users get a 429 response"
  after="rate-limited users get a 429 response with a Retry-After header"
/>

More AI pieces

View all AI

Suggestion Pills

Wrapping row of pill suggestions that seed the prompt input with common intents.

System prompt

You are a concise copywriter. Reply in 2 sentences max and avoid em dashes.

System Prompt

Dashed-border card with a violet scroll icon, uppercase label, and an edit button for the system instructions.

Weekly summary
  • Onboarding ships to GA on Tuesday
  • Pricing experiment lifts conversion by 14%
  • Two critical bugs filed, one already patched
Synthesized from 3 documents

AI Summary

Summary card with a violet sparkle header, bullet list of key points, and a source attribution below.

ts
const slug = (s: string) =>
  s.toLowerCase().replace(/\s+/g, '-');

Generated Code

AI code output card with a language tag, copy and regenerate actions, and a monospace block below.

Implementing rate limits with Redis
0.92

Use INCR with an EXPIRE TTL to build a fixed-window limiter that resets every minute.

docs/guides/rate-limits.md

KB Search Result

Knowledge base hit card with a document title, snippet, source path, and an emerald similarity score badge.

support-reply.prompt
You are a helpful assistant. The user asked: {{question}}. Answer in {{tone}} tone.

Prompt Template

Monospace prompt card with inline handlebars-style variables highlighted in violet against plain body text.