>> DOCUMENTATION

Everything you need to know about RetroPaste

> GETTING STARTED

RetroPaste is a terminal-themed pastebin with AI-powered code analysis and collaborative editing features.

Quick Start:

  1. Paste your code on the home page
  2. Select language and visibility settings
  3. Set expiration time (optional)
  4. Click [CREATE PASTE]
  5. Share the generated URL

> FEATURES

🤖 AI Code Analysis

Automatic code analysis that detects:

  • Security vulnerabilities
  • Performance issues
  • Code quality suggestions
  • Best practice recommendations

👥 Collaborative Editing

Three permission modes for collaboration:

  • View Only: Read-only access
  • Edit: Manual save editing
  • Edit Together: Real-time collaborative editing with auto-save

💬 Live Chat Assistant

AI-powered chat to help you understand code:

  • Ask questions about the code
  • Get explanations and suggestions
  • Find bugs and security issues
  • Learn best practices

🎨 Syntax Highlighting

Support for 100+ programming languages with Monaco Editor

🔒 Privacy Options

  • Public: Listed and searchable
  • Unlisted: Only accessible via link
  • Private: Requires authentication

⏰ Auto-Expiration

Set custom expiration times or view limits for your pastes

> API USAGE

Create pastes programmatically using our API:

curl -X POST https://retropaste.vercel.app/api/paste/create \
  -H "Content-Type: application/json" \
  -d '{
    "content": "console.log('Hello World');",
    "language": "javascript",
    "visibility": "public",
    "expiresIn": "24h"
  }'

Response:

{
  "success": true,
  "shortId": "abc123",
  "url": "https://retropaste.vercel.app/abc123",
  "expiresAt": "2024-01-02T00:00:00.000Z"
}

> KEYBOARD SHORTCUTS

Ctrl/Cmd + S

Save paste

Ctrl/Cmd + K

Open chat

Ctrl/Cmd + /

Toggle comments

Ctrl/Cmd + F

Find in code

> FAQ

Q: How long are pastes stored?

A: Pastes are stored based on your expiration settings. Default is 24 hours, but you can set custom durations or make them permanent.

Q: Is my code private?

A: Yes! Use "Private" or "Unlisted" visibility. Private pastes require authentication, while unlisted pastes are only accessible via direct link.

Q: Can I edit a paste after creating it?

A: Yes! Change the permission mode to "Edit" or "Edit Together" to enable editing.

Q: What languages are supported?

A: We support 100+ programming languages including JavaScript, Python, Java, C++, Go, Rust, and many more.

Q: Is the AI analysis accurate?

A: The AI provides helpful suggestions but should not replace manual code review. Always verify recommendations before implementing them.