JacobLinCool/d1-manager
소개
D1 Manager는 서버리스 SQL 데이터베이스인 Cloudflare D1을 위한 웹 UI와 API입니다. 데이터베이스, 테이블, 레코드를 관리하는 웹 인터페이스와 자연어로 쿼리를 작성하도록 돕는 AI 어시스턴트를 제공합니다.
데이터 및 분석What you can do
- Multiple D1 Databases
- List all tables in a database
- Show table schema
- Run SQL queries
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -2
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalD1 Manager
D1 Manager is a web UI and API for Cloudflare D1, a serverless SQL database. It provides a user-friendly interface for managing databases, tables, and records, as well as an API for performing operations programmatically. D1 Manager simplifies database management, enabling users to focus on their data.
Features
- Multiple D1 Databases
- List all tables in a database
- Show table schema
- Run SQL queries
- Run Semantic Queries (OpenAI API or Cloudflare AI Worker)
- Edit table data through UI
- I18n support (English, Chinese, Spanish, Japanese) add more (Online Editor)
- API support (see routes/api for details)
Setup
- Fork this repo
- Setup a Cloudflare Pages with the forked repo
- Select the SveltKit framework preset.
- Build command:
npm run build - Build output directory:
.svelte-kit/cloudflare
- Use Cloudflare Access to protect the your site
- The default access rules only restrict access to preview pages, so make sure to add other urls you want protected.
- Bind databases to
DB_*environment variables

Note: You can bind multiple databases to the manager. In theis example,
DBwill bedefaultin the UI, andDB_testwill betest.
Environment Variables
Some plugins (e.g. Semantic Query) require additional environment variables to be set.

Also, there are some configuration options that can be set through environment variables.
SHOW_INTERNAL_TABLES: Show internal tables (splite_*andd1_*) in the UI.
Semantic Query
You can use OpenAI API or Cloudflare AI Worker to run Semantic Query.
OpenAI API:
OPENAI_API_KEY: OpenAI API key for Semantic Query.OPENAI_API_URL: You may use this with Cloudflare AI Gateway to proxy requests to OpenAI API.OPENAI_MODEL: OpenAI API model for Semantic Query. Default togpt-4.1-mini.
Cloudflare AI Worker:
AI: Bind a Cloudflare AI Worker to this variable.CFAI_MODEL: Cloudflare AI Worker model for Semantic Query. Default to@cf/mistral/mistral-7b-instruct-v0.1.
Screenshots





Semantic Query uses OpenAI GPT-4.1 Mini to translate natural language queries into SQL.
관련 프로젝트 살펴보기
불러오는 중…
