Skip to content

feat: Add playground mode for instant demo without login (#21)#23

Merged
DevanshuNEU merged 1 commit into
OpenCodeIntel:mainfrom
DevanshuNEU:feature/playground-demo
Dec 4, 2025
Merged

feat: Add playground mode for instant demo without login (#21)#23
DevanshuNEU merged 1 commit into
OpenCodeIntel:mainfrom
DevanshuNEU:feature/playground-demo

Conversation

@DevanshuNEU

Copy link
Copy Markdown
Collaborator

Summary

Adds a playground landing page that lets users try CodeIntel instantly without signup - removing the biggest friction point for new visitors.

Changes

Frontend

  • New Playground.tsx component as default landing page
  • Repo selector pills (Flask, FastAPI, Express)
  • Clickable example queries for quick testing
  • Rate limit indicator with signup CTA
  • Auto-redirect to dashboard for logged-in users

Backend

  • POST /api/playground/search - public search endpoint
  • GET /api/playground/repos - list available demo repos
  • IP-based rate limiting (10 searches/hour)
  • Redis caching for sub-200ms responses
  • Auto-loads demo repos on startup

Results

Metric Before After
Time to first search ~2 min (signup required) 0 sec
Cached response time N/A 122ms
Conversion path None Clear CTA after limit

Screenshots

Testing

  • Search works without auth
  • Rate limiting triggers after 5 searches
  • Signup CTA appears after limit
  • Logged-in users redirect to dashboard
  • Redis caching working

Closes #21

Allows users to try the product instantly without signup:

Frontend:
- New Playground component as landing page
- Pre-indexed repo selector (Flask, FastAPI, Express)
- Example query suggestions
- Rate limit indicator (5 free searches)
- Beautiful signup CTA after limit reached
- Redirects logged-in users to dashboard

Backend:
- New /api/playground/search endpoint (no auth)
- New /api/playground/repos endpoint
- IP-based rate limiting (10/hour)
- Redis caching for fast responses (~122ms cached)
- Auto-loads demo repos on startup

Results:
- Zero friction for new users
- 122ms search response (cached)
- 74% match accuracy
- Clear conversion path to signup
@vercel

vercel Bot commented Dec 4, 2025

Copy link
Copy Markdown

@DevanshuNEU is attempting to deploy a commit to the Dev's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Dec 4, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
opencodeintel Ready Ready Preview Comment Dec 4, 2025 9:22pm

@DevanshuNEU DevanshuNEU merged commit 41f34ad into OpenCodeIntel:main Dec 4, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add playground mode for instant demo without login

1 participant