cURL Command

HTTP request rendered as a curl invocation with method, URL, headers, and body across continued lines.

curl-XPOSThttps://api.beste.co/v1/users
-H"Authorization: Bearer sk_live_..."
-H"Content-Type: application/json"
-d'{"name": "Ada Lovelace"}'

New here? Read the installation guide.

Import & use
import { Code11 } from "@/components/beste/piece/code11";

<Code11
  method="POST"
  url="https://api.beste.co/v1/users"
  headers={[
    {
      "name": "Authorization",
      "value": "Bearer sk_live_..."
    },
    {
      "name": "Content-Type",
      "value": "application/json"
    }
  ]}
  body="{\"name\": \"Ada Lovelace\"}"
/>

More Code pieces

View all Code
const user = await fetchUser("42");

Tokenized Line

Single-line snippet with keywords, strings, and function names colored by semantic token kind.

bun add @beste/ui

Shell Command

Single-line install or run command, prefixed with a dollar sign in monospace.

{
"name":"Beste",
"version":"1.0.0",
"active":true,
"count":42,
"owner":null
}

JSON Snippet

Pretty-printed JSON object with sky keys, emerald strings, and amber numerics.

const greeting = "Hello, Beste!";ts

Code Line

One-line code snippet with a monospace pill and a tiny language tag on the right.

SELECT id, name, email
FROM users
WHERE active = true
ORDER BY created_at DESC
LIMIT 10;

SQL Query

Multi-line SQL with violet keywords, emerald string literals, and amber numerics.

TypeError: Cannot read 'name' of undefined
greet(src/utils.ts:14:12)
handler(src/server.ts:42:8)
processRequest(src/api.ts:88:4)

Stack Trace

Error headline followed by a few stack frames with file paths and amber line and column numbers.

Markdown version