exp98 Cursor commited on
Commit
ce35fa9
·
1 Parent(s): d7bf755

Replace Node.js backend with Python/FastAPI + PatentsView integration

Browse files

- FastAPI server with 3 endpoints: /api/analyze, /api/search, /api/generate-claim
- Real patent search via PatentsView API (free, 45 req/min, all US granted patents)
- Falls back to Claude-simulated results when PatentsView key unavailable
- Claude API proxy for keyword extraction and claim drafting
- Serves frontend from same origin (no CORS issues)
- Remove old Node.js/Express/Gemini backend

Co-authored-by: Cursor <cursoragent@cursor.com>

8 files changed +218 -1013
Files changed (8)
.env.exampleDeleted-2
.gitignore+2-7
backend/.env.exampleAdded+6
backend/requirements.txtAdded+5
backend/server.pyAdded+205
package-lock.jsonDeleted-877
package.jsonDeleted-16
server.jsDeleted-111