Mert Koseoglu
1dbdb88717
perf: reduce Vercel costs — 12 optimizations across MCP endpoint, prompts.json, and infra
...
Addresses $6,478/month Vercel bill with 12 targeted fixes based on forensic
bill analysis and 7-expert review. See #1085 for full analysis.
MCP endpoint (src/pages/api/mcp.ts):
- Fix GetPromptRequestSchema P0 full table scan (findMany→findFirst)
- Remove all JSON pretty-printing (13 occurrences, ~30% payload reduction)
- Add Cache-Control headers to GET discovery endpoint
- Set tools.listChanged=false to prevent client polling
- Add 1MB body size limit to parseBody (DoS protection)
- Make elicitation opt-in via fill_variables param (saves 10s CPU/request)
- Fix timer leak in elicitation setTimeout
- Cap search content at 1,000 chars (contentPreview)
- Remove structuredFormat from search results
- Dynamic import for improve_prompt (reduces cold start)
- Optimize search_skills to return fileNames only
prompts.json:
- Add pagination (?page=&limit=) with backward compatibility
- Add ETag support for 304 Not-Modified responses
- Truncate content to 500-char preview by default
Infrastructure:
- Remove Sentry tunnelRoute (was proxying all browser events through edge)
- Add slug + composite database indexes for MCP query patterns
Closes #1085
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-19 21:04:34 +03:00
Fatih Kadir Akın
121e9fd43f
feat(i18n): add new 'Tastes' section to multiple language files
2026-03-02 23:04:52 +03:00
Fatih Kadir Akın
b856594c98
feat(api): add user prompt examples functionality
2026-02-01 21:59:13 +03:00
Fatih Kadir Akın
0e14d5920c
feat(messages): add workflow link fields for multiple languages
2026-01-28 14:01:39 +03:00
Fatih Kadir Akın
ce86eaf55b
feat(user): add bio and custom links functionality
2026-01-27 13:49:52 +03:00
Fatih Kadir Akın
f81f1eaa08
chore(prisma): remove seed-flows.ts and its seeding functionality
2026-01-24 17:12:14 +03:00
Fatih Kadir Akın
0da5e59e67
feat(messages): add new translations for 'workflows' in multiple languages
2026-01-23 00:42:26 +03:00
Fatih Kadir Akın
a32d620d6c
chore(prisma): update schema to include direct URL for migrations
2026-01-12 00:56:55 +03:00
Fatih Kadir Akın
e4b18a0fac
feat(prompts): add works best with feature for prompts
2026-01-09 10:17:54 +03:00
Fatih Kadir Akın
9296d2c2f6
feat(prisma): add db:resetadmin and db:setup scripts for database management
2026-01-06 10:47:17 +03:00
Fatih Kadir Akın
dcd04429b7
chore(messages): update collection translations for multiple languages
2026-01-04 22:05:19 +03:00
Fatih Kadir Akın
9abde0b903
feat(messages): add relist request feature in multiple languages
2025-12-28 15:49:13 +03:00
Fatih Kadir Akın
e454049b6e
feat(categories): add pinned categories feature and UI updates
2025-12-27 14:06:16 +03:00
Fatih Kadir Akın
f876ccc52c
chore(prisma): update daily generation limits to 3 for User model
2025-12-25 03:59:18 +03:00
Fatih Kadir Akın
2c71ee73ce
feat(api): add daily generation credits reset cron job and user settings
2025-12-25 02:53:26 +03:00
Fatih Kadir Akın
613224a1f8
feat(api): add user flagging functionality
2025-12-22 14:32:21 +03:00
Fatih Kadir Akın
541f5f7df3
feat(messages): add connectedPrompts translations in multiple languages
2025-12-21 16:38:07 +03:00
Fatih Kadir Akın
be102a0d09
feat(messages): add skill field to prompt messages for various languages
2025-12-20 20:54:08 +03:00
Fatih Kadir Akın
6a30e1b201
feat(i18n): Add new comment-related translations in multiple languages
2025-12-18 15:00:33 +03:00
Fatih Kadir Akın
363a730fec
feat(api): add delist reasons and quality check functionality
2025-12-17 20:41:05 +03:00
Fatih Kadir Akın
424eae5656
feat(messages): add API key generation feature in multiple languages
2025-12-16 23:54:14 +03:00
Fatih Kadir Akın
1bb8f90888
feat(prisma, src): add slug field to Prompt model and implement slug generation for prompts without slugs
2025-12-16 14:00:08 +03:00
Fatih Kadir Akın
b6c911a766
chore(api): sync prompts.csv from API and update message translations
2025-12-13 23:37:43 +03:00
Fatih Kadir Akın
bcbf3c99c2
chore(prisma): add githubUsername column and index for faster lookups
2025-12-13 17:18:08 +03:00
Fatih Kadir Akın
38dd65d708
feat(schema): add githubUsername field to User model for contributor attribution
2025-12-13 17:13:54 +03:00
Fatih Kadir Akın
407d410c3a
docs(AGENTS.md): Add guidelines for AI coding agents working on the project
2025-12-13 13:04:24 +03:00
Fatih Kadir Akın
7c94ece179
feat(i18n): add verification messages in multiple languages
2025-12-12 13:50:47 +03:00
Fatih Kadir Akın
e176a2eedb
feat(api): implement soft delete for prompts
2025-12-11 15:20:46 +03:00
Fatih Kadir Akın
a9a86f3bbc
feat(i18n): add featured and latest prompts translations in multiple languages
2025-12-11 12:52:56 +03:00
Fatih Kadir Akın
5a7eed664f
chore(messages): Add AI Search functionality to prompts management pages
2025-12-11 02:25:24 +03:00
Fatih Kadir Akın
85a5f3bed7
Initialize v2 work
2025-12-10 15:41:23 +03:00