d1-sql-playground
Use when editing d1-sql-playground. POST /query with { sql }; read-only SELECT against seeded D1 tables (products, experiments); binding DB.
- License 许可
- MIT
- 最近更新
- 2026-10-06
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- d1-sql-playground
- description
- Use when editing d1-sql-playground. POST /query with { sql }; read-only SELECT against seeded D1 tables (products, experiments); binding DB.
02 资源文件 7
- 参考文档data/prd-purpose.md7.1 KB
- 参考文档steps-e/step-e-01-discovery.md7.7 KB
- 参考文档steps-e/step-e-01b-legacy-conversion.md6.4 KB
- 参考文档steps-e/step-e-02-review.md7.5 KB
- 参考文档steps-e/step-e-03-edit.md7.1 KB
- 参考文档steps-e/step-e-04-complete.md4.8 KB
- 参考文档workflow.md2.9 KB
03 SKILL.md 正文
D1 SQL Playground
- Routes:
POST /query(body{ sql });GET /(app info + allowed tables). - Response (query):
{ columns, rows, rowCount, durationMs }. - Bindings: D1 database (
DB). - Validation:
validateSelectSqlinsrc/lib/sql.ts— SELECT only, no semicolons/comments, allowed tables whitelist. - Utils:
jsonError,jsonSuccess; migrations inmigrations/0000_init.sql.
04 同仓库更多 Skills
whereami
Use when editing whereami. GET /whereami returns request.cf (country, city, colo, etc.); no bindings.
websocket-echo
Use when editing websocket-echo. GET /echo WebSocket upgrade; echoes messages.
website-to-llms-txt
Use when editing website-to-llms-txt. GET /llms.txt?url=; returns plain-text llms.txt format (title, description, links, contact); no bindings.
website-to-api
Use when editing website-to-api. GET /api?url=; returns structured title, headings, links, images.
website-metadata-extractor
Use when editing website-metadata-extractor. GET /metadata?url=; extracts title, description, canonical, og tags.
website-devtools-inspector
Use when editing website-devtools-inspector. GET /devtools?url=; headers, cookies, scripts, assets, metadata.