Framework Source Code Index
Local Repos (200MB total, read-only reference)
| Framework |
Path |
TS Files |
Use For |
| Anthropic JS SDK |
repos/anthropic-sdk-js |
177 |
Claude API calls, streaming, tool use patterns |
| Anthropic Python SDK |
repos/anthropic-sdk |
624 py |
Cross-reference Python SDK patterns |
| Expo (router + secure-store) |
repos/expo |
401 |
expo-router, expo-secure-store, React Native |
| Fastify |
repos/fastify |
35 |
Server framework, plugin system, validation |
| Next.js |
repos/nextjs |
1,588 |
App router, server components, caching, API routes |
| OWASP Cheat Sheets |
repos/owasp |
— |
Security review bible (markdown, not code) |
| React |
repos/react |
6 |
Core hooks, reconciler internals |
| Supabase JS |
repos/supabase-js |
270 |
Client SDK, auth, RLS, realtime patterns |
| Tailwind CSS |
repos/tailwindcss |
300 |
Utility class system, config |
| TypeScript |
repos/typescript |
245 |
Compiler internals, type system |
| Zod |
repos/zod |
389 |
Validation, schema patterns, error handling |
Web Fetch Fallback (use for files outside local sparse checkout)
For supabase server patterns, edge functions, or any specific file not in local repos:
# Supabase edge functions are now LOCAL:
# repos/supabase/examples/edge-functions/
# repos/supabase/apps/docs/ (full Supabase docs)
# Next.js specific files
web_fetch("https://raw.githubusercontent.com/vercel/next.js/canary/packages/next/src/...")
# React specific source
web_fetch("https://raw.githubusercontent.com/facebook/react/main/packages/react/src/...")
# Expo packages not in local clone
web_fetch("https://raw.githubusercontent.com/expo/expo/main/packages/expo-notifications/src/...")
Forge ALWAYS has access to any framework's source — local clone for fast access, web_fetch as complete fallback.
How to Search Local Repos
# Find how a specific function works
grep -r "functionName" repos/nextjs/packages/next/src/ --include="*.ts" -l
# Find security patterns
grep -r "sanitize\|escape\|validate\|csrf\|xss" repos/supabase-js/src/ --include="*.ts" -l
# OWASP cheat sheet for a specific topic
ls repos/owasp/cheatsheets/ | grep -i "auth\|sql\|xss"
cat repos/owasp/cheatsheets/Authentication_Cheat_Sheet.md
OWASP Cheat Sheets Available
ls repos/owasp/cheatsheets/ | head -30
Key ones: Authentication, SQL_Injection, XSS_Filter_Evasion, CSRF_Prevention, Input_Validation, Secrets_Management, Session_Management, Authorization_Testing
Changelog
- 2026-03-20: Supabase monorepo restored (79GB free on disk). Full edge-functions + auth-helpers + docs. Total: 754MB.
1---2name: framework-source-code3description: Index of cloned framework repos and how to use them for review validation.4---56# Framework Source Code Index78## Local Repos (200MB total, read-only reference)910| Framework | Path | TS Files | Use For |11|-----------|------|----------|---------|12| Anthropic JS SDK | repos/anthropic-sdk-js | 177 | Claude API calls, streaming, tool use patterns |13| Anthropic Python SDK | repos/anthropic-sdk | 624 py | Cross-reference Python SDK patterns |14| Expo (router + secure-store) | repos/expo | 401 | expo-router, expo-secure-store, React Native |15| Fastify | repos/fastify | 35 | Server framework, plugin system, validation |16| Next.js | repos/nextjs | 1,588 | App router, server components, caching, API routes |17| OWASP Cheat Sheets | repos/owasp | — | Security review bible (markdown, not code) |18| React | repos/react | 6 | Core hooks, reconciler internals |19| Supabase JS | repos/supabase-js | 270 | Client SDK, auth, RLS, realtime patterns |20| Tailwind CSS | repos/tailwindcss | 300 | Utility class system, config |21| TypeScript | repos/typescript | 245 | Compiler internals, type system |22| Zod | repos/zod | 389 | Validation, schema patterns, error handling |2324## Web Fetch Fallback (use for files outside local sparse checkout)2526For supabase server patterns, edge functions, or any specific file not in local repos:2728```29# Supabase edge functions are now LOCAL:30# repos/supabase/examples/edge-functions/31# repos/supabase/apps/docs/ (full Supabase docs)3233# Next.js specific files34web_fetch("https://raw.githubusercontent.com/vercel/next.js/canary/packages/next/src/...")3536# React specific source37web_fetch("https://raw.githubusercontent.com/facebook/react/main/packages/react/src/...")3839# Expo packages not in local clone40web_fetch("https://raw.githubusercontent.com/expo/expo/main/packages/expo-notifications/src/...")41```4243Forge ALWAYS has access to any framework's source — local clone for fast access, web_fetch as complete fallback.4445## How to Search Local Repos4647```bash48# Find how a specific function works49grep -r "functionName" repos/nextjs/packages/next/src/ --include="*.ts" -l5051# Find security patterns52grep -r "sanitize\|escape\|validate\|csrf\|xss" repos/supabase-js/src/ --include="*.ts" -l5354# OWASP cheat sheet for a specific topic55ls repos/owasp/cheatsheets/ | grep -i "auth\|sql\|xss"56cat repos/owasp/cheatsheets/Authentication_Cheat_Sheet.md57```5859## OWASP Cheat Sheets Available60```bash61ls repos/owasp/cheatsheets/ | head -3062```63Key ones: Authentication, SQL_Injection, XSS_Filter_Evasion, CSRF_Prevention, Input_Validation, Secrets_Management, Session_Management, Authorization_Testing6465## Changelog66- 2026-03-20: Supabase monorepo restored (79GB free on disk). Full edge-functions + auth-helpers + docs. Total: 754MB.