ใช้ทำอะไรได้
ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ
- ต่อแบบ คลาวด์ (ต่อผ่านอินเทอร์เน็ต)
- บัญชีหรือคีย์ ไม่ต้องใส่คีย์
- หมวด เกม กีฬา อาหาร และการเรียน
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
Search, compare, and read NYC school and early-childhood program profiles from public data.ทำไมอยู่อันดับนี้
หน้ารายการเรียงด้วยคะแนนการใช้งาน (เต็ม 100) จากส่วนเหล่านี้
| ความนิยม | 4/80 | ดาว GitHub หรือยอดดาวน์โหลดต่อสัปดาห์ ค่ามากนับ 60 ค่าน้อยนับ 20 |
|---|---|---|
| ความสด | 12/12 | ออกรุ่นหรือแก้โค้ดใน 30 วัน ได้เต็ม |
| ระบบยังตอบ | 8/8 | endpoint บนคลาวด์ตอบตอนตรวจล่าสุด |
| คะแนนการใช้งาน | 24/100 |
คุณภาพ: ผลตรวจเบื้องต้นผ่าน 4/5 ข้อ (แสดงให้ดู ไม่ได้ใช้เรียง) · ความมาแรง: ยังไม่มีข้อมูล (ใช้เรียงเฉพาะแท็บมาแรง)
ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ให้ AI ติดตั้งให้ด้วยประโยคเดียว
ติดตั้ง NYC School Ratings ให้หน่อย ทำตาม https://mcp.popnx.com/i/biserd-nyc-school-ratings.md แสดงคำสั่งให้ฉันดูและรอฉันตกลงก่อนรันคัดลอกไปวางในแชตของ AI ที่ทำงานในเครื่องคุณได้ (เช่น Claude Code, Cursor) · AI จะอ่านขั้นตอนจากเรา แสดงคำสั่งให้ดู และรอคุณตกลงก่อน · ไม่ต้องใช้คีย์ ไม่ต้องสมัคร · ดูข้อความเต็มที่ AI จะอ่าน
ผลตรวจผ่าน 4/5 · สิ่งที่คุณถามผ่านเซิร์ฟเวอร์ของผู้ทำ (nycschoolsratings.com) · ✓ ตรวจคำสั่งแล้ว 13 พ.ย. 2569
ขั้นแรก: คุณใช้ AI ตัวไหน
เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง
ต่อกับ Claude ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ตั้งครั้งเดียวที่ claude.ai หรือแอปบนคอม แล้วใช้ในแชตได้ · บัญชีฟรีเพิ่มได้ 1 ตัว · แผน Team/Enterprise ให้เจ้าของ (Owner) เป็นคนเพิ่ม
เปิดหน้า Connectors ของ Claude
CustomizeConnectors
กด “Add” → “Custom” → “Web” แล้วกรอก 2 ช่องนี้
คัดลอกจากที่นี่ไปวางในช่องชื่อเดียวกันบนหน้าจอของ Claude แล้วกด Continue
Name · ชื่อNYC School RatingsRemote MCP server URL · ที่อยู่https://nycschoolsratings.com/mcp/schoolsกด Continue ผ่านหน้าตรวจการล็อกอินที่ Claude ตรวจเจอ · หัวข้อ Authentication เลือกตามที่ผู้ทำบอก (Sign in now, Sign in when needed หรือ No sign in) แล้วกด Add
เปิดใช้ในแชต
+ConnectorsNYC School Ratings
ลองเลย
ใช้ NYC School Ratings บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude บอกว่ากำลังใช้ NYC School Ratings หรือมีชื่อเครื่องมือของ NYC School Ratings ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ ChatGPT ได้ ขึ้นกับแผน
MCP แบบเต็ม: ChatGPT Business, Enterprise หรือ Edu บนเว็บ · Pro: ต่อได้ด้วยสิทธิ์อ่านและดึงข้อมูล เครื่องมือที่แก้ข้อมูลอาจใช้ไม่ได้ · Plus: เอกสารยังไม่ยืนยัน ถ้าเห็นเมนูเพิ่ม MCP แบบกำหนดเองในหน้าปลั๊กอิน ลองตามขั้นตอนได้ · ใช้บนเว็บเท่านั้น
เปิดหน้าเพิ่ม MCP ของ ChatGPT บนเว็บ
Plugins+Add custom MCP server
กรอกชื่อและที่อยู่
ใส่ชื่อ แล้ววางที่อยู่ใต้ Connection ติ๊กยอมรับคำเตือน แล้วกด Create as a plugin
Name · ชื่อNYC School RatingsConnection · ที่อยู่https://nycschoolsratings.com/mcp/schoolsเลือก NYC School Ratings ในแชต
เปิดแชตใหม่แล้วเลือก NYC School Ratings จากรายการปลั๊กอินก่อนพิมพ์
ลองเลย
ใช้ NYC School Ratings บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า ChatGPT บอกว่ากำลังใช้ NYC School Ratings หรือมีชื่อเครื่องมือของ NYC School Ratings ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ OpenAI เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Claude Code ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิด Terminal
Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell
วางคำสั่งนี้แล้วกด Enter
claude mcp add --transport http --scope user nyc-school-ratings https://nycschoolsratings.com/mcp/schoolsพิมพ์ /mcp ใน Claude Code
ต้องเห็น NYC School Ratings ในรายการและขึ้นว่าเชื่อมต่อแล้ว
ลองเลย
ใช้ NYC School Ratings บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude Code บอกว่ากำลังใช้ NYC School Ratings หรือมีชื่อเครื่องมือของ NYC School Ratings ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Cursor ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิดแชตของ AI ใน Cursor โหมด Agent
ลองเลย
ใช้ NYC School Ratings บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Cursor บอกว่ากำลังใช้ NYC School Ratings หรือมีชื่อเครื่องมือของ NYC School Ratings ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ VS Code ได้ · ประมาณ 2 นาที
ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม
เปิดแชตของ AI ใน VS Code โหมด Agent
ลองเลย
ใช้ NYC School Ratings บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า VS Code บอกว่ากำลังใช้ NYC School Ratings หรือมีชื่อเครื่องมือของ NYC School Ratings ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม
ที่อยู่สำหรับโปรแกรมที่ต่อผ่านเว็บ
https://nycschoolsratings.com/mcp/schoolsค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON
ต่อผ่านเว็บ
Claude Code
claude mcp add --transport http --scope user nyc-school-ratings https://nycschoolsratings.com/mcp/schoolsCursor (~/.cursor/mcp.json)
{
"mcpServers": {
"nyc-school-ratings": {
"url": "https://nycschoolsratings.com/mcp/schools"
}
}
}VS Code (mcp.json)
{
"servers": {
"nyc-school-ratings": {
"type": "http",
"url": "https://nycschoolsratings.com/mcp/schools"
}
}
}ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
สรุป
- ดาวน์โหลดต่อสัปดาห์i
- ไม่มียอดใน npm/PyPI
- การเชื่อมต่อ
- รันบนคลาวด์
- ช่องทาง (transport)
- streamable-http
- รุ่นล่าสุดi
- 1.0.0
- ส่งเข้า registryi
- 13 พ.ย. 2569
- แก้โค้ดล่าสุดi
- 15 พ.ย. 2569
- ตรวจล่าสุดเมื่อ
- 18 พ.ย. 2569
- ผู้ทำ
- biserd
- เว็บผู้ทำ
- nycschoolsratings.com
- สถานะใน registry
- ใช้งานอยู่
ใช้กับโปรแกรมไหนได้
ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569
ต่อผ่านคลาวด์ได้ใน
ClaudeChatGPTGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
คู่มือที่เกี่ยวข้อง
ทำอะไรได้บ้าง
ชื่อและคำอธิบายเครื่องมือตามที่ server ตอบมาเมื่อ 18 พ.ย. 2569 ผู้ทำเป็นคนเขียน ไม่ใช่เรา แสดงเป็นข้อความล้วน
search_schoolsFind canonical NYC school records by name/identifier, grade, borough, district, known school type, and recorded program flags. Unverified 2-K records are excluded from positive 2-K filters. Returns at most 20 results per page with match reasons, source years, and profile links. T
get_school_detailsRead one canonical school profile by DBN. Separates proprietary ratings, official academic metrics, family/student/teacher surveys, and center-wide early-childhood feedback. Includes dated demographics, enrollment and demographic history, and Regents exam results/history through
compare_schoolsCompare two to four distinct canonical school DBNs on identically defined available metrics, programs, and separate 2026 survey instruments. Includes demographics, enrollment history and same-year, same-exam Regents comparisons with reporting years and source links. Missing value
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 20 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub biserd ซึ่งเป็นเจ้าของ repo
- ✓ ผ่าน
ยังมีคนดูแล
มีการแก้โค้ดล่าสุด 5 วันที่ผ่านมา
- ✕ ไม่ผ่าน
มีสัญญาอนุญาต (license)
ไม่พบไฟล์ license ใน repo
- ✓ ผ่าน
endpoint ตอบ
ตอบกลับใน 984 ms (HTTP 200)
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ไม่ต้องล็อกอิน
- ✓ ผ่าน
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
อ่านคำอธิบายเครื่องมือ 3 ตัวแล้ว ไม่พบคำสั่งแอบแฝงถึง AI
ผู้ทำ: ขอให้ตรวจใหม่ หรือแจ้งข้อมูลผิด
สำหรับผู้ทำ: ติดป้ายใน README
ถ้าคุณเป็นผู้ทำตัวนี้ คัดลอกโค้ดนี้ไปวางใน README ได้เลย ป้ายลิงก์กลับมาที่หน้านี้
[](https://mcp.popnx.com/th/servers/biserd-nyc-school-ratings)พูดคุย
ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์
ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย
ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx
รีวิวจากผู้ใช้
ยังไม่มีรีวิว
เทียบกับตัวอื่นในหมวด เกม กีฬา อาหาร และการเรียนi
- ดาวมากกว่า 86% ของอีก 1623 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 84% ของอีก 1623 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 64% ของอีก 1623 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
NYC School Ratings ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 4 จาก 5 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนคลาวด์ของผู้ทำ ต่อผ่านอินเทอร์เน็ตได้เลย ไม่ต้องลงโปรแกรม แต่ข้อมูลที่ส่งให้จะผ่านเซิร์ฟเวอร์ของผู้ทำ
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด 5 วันที่ผ่านมา และส่งรุ่นล่าสุด (1.0.0) เข้า registry 7 วันที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT บนเว็บ (แบบเต็มในแผน Business ขึ้นไป · Pro แบบอ่านอย่างเดียว)
มีตัวไหนใช้แทนได้บ้าง?
ในหมวดเดียวกันมี Anime Garden, WilmAI, Lumify Sports Intelligence, Savecraft, GoodWatch
ตัวอื่นที่ทำงานคล้ายกัน
หมวดเดียวกันจากผู้ทำคนอื่น ผ่านตัวตรวจคำสั่งแล้ว ตัวทางการขึ้นก่อน แล้วเรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
WilmAI
Finland's Wilma school system for parents and students: schedule, homework, exams and messages.
Lumify Sports Intelligence
Schedules, scores, odds, splits & explainable AI bet confidence — 8+ sports, free instant key.
Savecraft
Savecraft serves real save game data and expert game knowledge to AI assistants.
GoodWatch
Find movies and TV shows, track watches, and get suggestions based on your taste.
| ตัวนี้ NYC School Ratings | Anime Garden | WilmAI | Lumify Sports Intelligence | Savecraft | GoodWatch | |
|---|---|---|---|---|---|---|
| ทำงานที่ไหน | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ต้องลงในเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง | ใช้บนคลาวด์ ไม่ต้องลงเครื่อง |
| ต้องใส่คีย์ | ไม่ | ไม่ | ไม่ | ใช่ | ไม่ | ไม่ |
| กด + ใน Claude ได้ | ไม่ | ไม่ | ไม่ | ไม่ | ไม่ | ไม่ |
| ผลตรวจเบื้องต้น | 4/5 | 4/4 | 3/3 | 4/4 | 3/4 | 4/4 |
| สัญญาอนุญาต | – | AGPL-3.0 | MIT | MIT | Apache-2.0 | MIT |
| ราคา | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน | ไม่พบค่าใช้จ่ายในทะเบียน |
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
NYC School Ratings
A parent-friendly web dashboard for browsing, comparing, and researching NYC's public, charter, and private schools — backed by real data from the NYC DOE, NYC Open Data, NYSED, and the NCES.
Live at nycschoolsratings.com.
What's inside
- 1,500+ public elementary schools with academic, climate, progress, and survey scores. Overall score is a weighted blend:
Test Proficiency × 40% + Climate × 30% + Progress × 30%. - 600+ private schools (NCES PSS data) with filtering by borough, religious affiliation, and coed status.
- All NYC public high schools with graduation rates, Regents results, multi-year trends, and subgroup analysis (NYC DOE InfoHub).
- HS admissions & programs — Fall 2025 directory data for 452 high schools and 943 programs (admission methods, demand, eligibility, offer rates, SHSAT stats).
- NYCEEC Early Childhood Centers for 3-K and Pre-K.
- K / 3-K / Pre-K admissions & demand metrics from NYC DOE LL72 reports.
- Attendance & chronic absenteeism (2018-19 → 2024-25) with subgroup breakdowns.
- Discipline & suspensions (2018-19 → 2024-25, LL93) by type, race, gender, SWD, ELL, and STH.
- Neighborhood Safety Index — a 0-100 score on every public, private, and NYCEEC school detail page, computed from NYPD complaint data within a configurable radius (0.25 / 0.5 / 1 / 5 miles), severity-weighted, and ranked as a citywide percentile. Free tier shows the score; Premium unlocks radius selector, top categories, trend, and percentile.
- Interactive map with school zone detection (turf.js + NYC DOE boundary polygons).
- Side-by-side comparison with shareable, SEO-friendly URLs (e.g.
/compare/PS006-M-vs-PS290-M). - District comparison dashboard.
- AI chat assistant powered by Cloudflare Workers AI with GLM-4.7-Flash (Premium).
- Smart Recommendations ("Find My Match") — a short questionnaire that produces personalized school suggestions.
- Application Tracker to manage applications across schools (Premium).
- 3-K / Pre-K Lottery Simulator.
- Special Education (IEP) support information.
- Commute Time Calculator (auth-gated; uses Google Distance Matrix).
- Parent reviews & ratings on every school.
- Data-driven blog with analytical articles and Recharts visualizations.
- Favorites that sync across devices for logged-in users.
- Developer API (Premium) — public REST API at
/api/v1(see below).
Stack
- Frontend: React 18 + TypeScript, Vite, Tailwind CSS, Shadcn UI, Wouter, TanStack Query, Recharts, Leaflet, turf.js
- Backend: Cloudflare Workers + Express + TypeScript, Drizzle ORM, PostgreSQL through Hyperdrive, in-memory caching layer with webhook-based invalidation
- Auth: Email + password with secure session cookies; password reset via signed email tokens; magic-link sign-in
- Payments: Stripe (Checkout + Customer Portal + webhooks) for the Freemium / Premium subscription model
- AI: Cloudflare Workers AI with
@cf/zai-org/glm-4.7-flashfor chat, recommendations, and early-childhood insights - Email: Cloudflare Email Service (welcome emails, password reset, magic links, alerts, and drip campaign)
- Maps & geo: Google Maps Geocoding API, Google Distance Matrix API, Leaflet for rendering, NYC Open Data point locations and zone polygons
- Data: NYC DOE InfoHub, NYC Open Data, NYSED State Report Card, NCES Private School Universe Survey, NYC School Survey CSVs
Running locally
npm install
cp .dev.vars.example .dev.vars npm run dev # Cloudflare Worker + Vite, served on a single origin npm run db:push # Push Drizzle schema changes to the configured Postgres
Replace the example values in .dev.vars before starting. Both the API and the SPA are served from the same origin; local email delivery remains disabled until EMAIL_DELIVERY_ENABLED is explicitly changed.
Environment variables
The app reads the following from Worker secrets and variables. The ones marked required are needed for the app to boot; the rest enable specific features.
| Variable | Purpose |
|---|---|
DATABASE_URL *(required)* | PostgreSQL connection string |
SESSION_SECRET *(required)* | Express session signing secret |
STRIPE_LIVE_SECRET_KEY / STRIPE_TEST_SECRET_KEY | Stripe server keys (Premium subscriptions) |
STRIPE_LIVE_PUBLISHABLE_KEY / STRIPE_TEST_PUBLISHABLE_KEY | Stripe publishable keys (frontend Checkout) |
STRIPE_WEBHOOK_SECRET | Stripe webhook signature verification |
EMAIL_FROM / EMAIL_FROM_NAME | Cloudflare Email Service sender identity |
GOOGLE_MAPS_API_KEY | Geocoding + Distance Matrix (commute calc) |
SOCRATA_APP_TOKEN | NYC Open Data / NYPD complaint dataset access |
CRON_SECRET | Protects POST /api/cron/* endpoints |
Project layout
client/src/
├── components/ # Shared UI (AppHeader, FilterBar, ApiAccessCard, …) │ └── ui/ # Shadcn primitives ├── pages/ # One file per route — registered in App.tsx ├── hooks/ # useAuth, useCheckout, useToast, … └── lib/ # queryClient, helpers
server/ ├── index-worker.ts # Cloudflare Worker entrypoint + scheduled handlers ├── index-dev.ts # Dev entrypoint (Vite middleware) ├── index-prod.ts # Production entrypoint (static SPA) ├── routes.ts # Main API routes + auth, Stripe webhooks, etc. ├── routesV1.ts # Public Developer API (/api/v1) ├── apiKeyAuth.ts # API key generation, hashing, Bearer middleware, │ # rate limiter, Premium recheck ├── auth.ts # Sessions, password hashing, magic links ├── storage.ts # Drizzle queries (the only place SQL lives) ├── cache.ts # In-memory cache with TTLs + invalidation ├── services/ # safetyIndex, geocoding, schoolZones, … └── scripts/ # One-off data import / sync scripts
shared/ └── schema.ts # Drizzle tables, Zod insert schemas, shared types
scripts/ # CLI data importers (NYSED, HS data, NYCEEC, …) public/ # Static assets, sitemap.xml, robots.txt
Key conventions:
- Schema first. All data models live in
shared/schema.ts(Drizzle +drizzle-zodinsert schemas). Frontend and backend both import from there for type safety. - Reviewed D1 migrations. Schema changes live in
migrations-d1/. Generate withnpm run db:generate:d1, inspect the SQL, then test on staging before applying to production.db:pushis intentionally blocked. - No SQL outside `server/storage.ts`. Routes are thin and call into the storage layer.
- Caching by default. Hot endpoints go through
server/cache.ts(centralized TTLs, mutation protection viastructuredClone, webhook-based invalidation).
Subscription tiers
The app uses a Freemium model powered by Stripe.
- Free: browse all schools, see overall scores, save favorites, use the smart recommendations questionnaire, see the Neighborhood Safety score at the default radius, view one premium school detail page in full ("One Free School View").
- Enrollment Season Pass ($29 one-time / 6 months): AI chat assistant, side-by-side & district comparison, application tracker, full safety drill-down (radius selector, trend, percentile, top categories), commute time calculator, and the Developer API (see below).
Stripe state is kept in sync with the local DB via webhooks, so there is no "stale subscription" drift between Stripe and the app.
SEO
Every page sets a unique title, meta description, canonical URL, Open Graph + Twitter Card tags, and JSON-LD Structured Data where applicable. A static sitemap.xml plus pre-generated comparison and school pages keep the site fully indexable. Performance is optimized with code-splitting, lazy loading for heavy pages, an eager-imported home page so the LCP text is in the initial chunk, deferred analytics, a trimmed Inter webfont, and aggressive static asset caching.
Developer API
A public REST API is available to Premium subscribers at /api/v1. Full documentation and live curl examples live at /developers/docs.
Authentication
All requests require a Bearer token issued from your account:
- Purchase the Enrollment Season Pass ($29 for six months; no automatic renewal).
- Go to Settings → API Access (
/settings#api-access). - Click Generate API Key. The plaintext key is shown exactly once — copy it immediately. Only a SHA-256 hash is stored server-side.
- Pass the key in the
Authorizationheader on every request:
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://nycschoolsratings.com/api/v1/schools?limit=5"
You can have up to 5 active keys at a time, and any key can be revoked instantly from the same settings page.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/schools | List NYC schools with filters + pagination (district, grade_band, has_3k, has_prek, has_gifted, limit, offset) |
| GET | /api/v1/schools/:dbn | Get a single school by DBN (e.g. 02M545) — flat object |
| GET | /api/v1/districts | Aggregate stats for all 32 NYC school districts |
| GET | /api/v1/early-childhood | NYC Early Education Centers (3-K / Pre-K) with borough, program_type, center_type filters |
| GET | /api/v1/trends/:dbn | Multi-year ELA / Math / Science score history for a school |
All field names use snake_case (e.g. overall_score, ela_proficiency, grade_band). List endpoints return { data: [...], pagination: {...} }; detail endpoints (/schools/:dbn, /trends/:dbn) return a flat object.
Rate limits
Each API key is rate-limited globally (the counters are persisted in Postgres so they survive deploys and span multiple server instances):
- 60 requests / minute
- 10,000 requests / day
Every authenticated response includes the standard headers:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 45 X-RateLimit-Reset: 1699574400
Exceeding either bucket returns 429 Too Many Requests with a Retry-After header.
Unauthenticated requests (missing or invalid Bearer token) are also throttled per IP at 30 / minute to discourage key-guessing.
Abuse monitoring
Every Developer API request is logged for security review. We email the account owner and revoke the key when we detect signals like a sudden spike in 429s or use from many distinct IPs at once (which usually means the key has been pasted into client-side code and leaked). If you think your key was leaked, revoke it from Settings → API Access and issue a new one — there's no penalty.
Error format
All errors use a stable JSON envelope:
{
"error": { "code": "INVALID_PARAMETER", "message": "district must be between 1 and 32.", "details": { "parameter": "district", "provided": "99" } } }
Common status codes: 400 (validation), 401 (missing/invalid key), 403 (Premium subscription required or revoked), 404 (not found), 429 (rate limited), 500 (internal).
Data sources & methodology
- Academic / climate / progress scores: NYC DOE School Quality Reports
- Test proficiency (ELA / Math / Science): NYSED State Report Card
- 3-K / Pre-K / K admissions & demand: NYC DOE InfoHub LL72 reports