• Stars
    star
    408
  • Rank 105,946 (Top 3 %)
  • Language Svelte
  • License
    MIT License
  • Created over 1 year ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

D1 Manager is a web UI and API for Cloudflare D1, a serverless SQL database. It provides a web interface for managing databases, tables, and records, as well as an AI assistant to help you write query in natural language.

D1 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.

semantic-query-demo

Features

  • Multiple D1 Databases
  • List all tables in a database
  • Show table schema
  • Run SQL queries
  • Run Semantic Queries (with OPENAI_API_KEY env var set)
  • Edit table data through UI
  • I18n support (English, Chinese) add more
  • API support (see routes/api for details)

Setup

  1. Fork this repo
  2. Setup a Cloudflare Pages with the forked repo
  3. Use Cloudflare Access to protect the your site
  4. Bind databases to DB_* environment variables

bind-d1

Note: You can bind multiple databases to the manager. In theis example, DB will be default in the UI, and DB_test will be test.

Environment Variables

Some plugins (e.g. Semantic Query) require additional environment variables to be set.

set-env-var

Also, there are some configuration options that can be set through environment variables.

  • SHOW_INTERNAL_TABLES: Show internal tables (splite_* and d1_*) in the UI.
  • 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.

Screenshots

tables

run-query

table-browser

add-record

semantic-query

Semantic Query uses OpenAI GPT-3.5 Turbo to translate natural language queries into SQL.

More Repositories

1

LeetCode-Stats-Card

Show your dynamically generated LeetCode stats on your GitHub profile or your website!
TypeScript
288
star
2

Bahamut-Automation

้›ฒ็ซฏๅŸท่กŒใ€ๅฟซ้€Ÿ่จญๅฎšใ€ๅ…่ฒป้–‹ๆบ็š„ๅทดๅ“ˆๅง†็‰น่‡ชๅ‹•ๅŒ–๏ผ่‡ชๅ‹•็ฐฝๅˆฐใ€่‡ชๅ‹•ๅ‹•็•ซ็˜‹็ญ”้กŒใ€่‡ชๅ‹•ๆŠฝๆŠฝๆจ‚๏ผ
TypeScript
274
star
3

node-cloudflared

Cloudflared in Node. Create HTTPS tunnel in 10 seconds. Works on macOS, Linux, and Windows.
TypeScript
48
star
4

Bahamut-Automation-Template

ๅทดๅ“ˆ่‡ชๅ‹•็ฐฝๅˆฐ
30
star
5

sveltekit-api

Handles all kinds of SvelteKit data flows in one place, and automatically generate OpenAPI documentation.
TypeScript
28
star
6

LeetCode-Query

A LeetCode Query API for TypeScript & JavaScript.
TypeScript
25
star
7

playwright-docker

Playwright Docker Images. (ARMv7, ARMv8, x64) x (Chromium, Firefox, WebKit, Chrome, Edge)
Dockerfile
21
star
8

cloudflare-email-kit

The Cloudflare Email Kit is a powerful toolkit designed to handle both incoming and outgoing emails with ease on Cloudflare Workers, providing developers with a modular approach to integrating email functionalities within serverless applications.
TypeScript
21
star
9

smart-whisper

Smart Whisper is a native Node.js addon designed for efficient and streamlined interaction with the whisper.cpp, with automatic model offloading and model manager.
C++
21
star
10

baha-anime-skip

Skip OP or other things on Bahamut Anime. The database includes OP / ED timestamp of 10,000+ episodes.
TypeScript
17
star
11

recaptcha-solver

Solve reCAPTCHA challenges by using offline speech recognition.
TypeScript
16
star
12

gradio-rs

Gradio Client in Rust.
Rust
15
star
13

ChatGPT-Action-Everywhere

Convert any website into a ChatGPT Action. Enable GPTs to interact with the whole world.
TypeScript
15
star
14

Bang-C

Bang! the board game C implementation, including game manager, computer player, backend websocket server, and frontend web client.
C
14
star
15

selflare

Compile Cloudflare Workers to Cap'n Proto and deliver them as minimalist Docker images.
TypeScript
14
star
16

sdxl-api

SDXL API provides a seamless interface for image generation and retrieval using Stable Diffusion XL integrated with Cloudflare AI Workers. This API allows users to generate and manage images in a highly efficient and scalable manner.
TypeScript
11
star
17

ChatGPT-Agent

Deprecated! Library, CLI, and Discord bot for the unofficial ChatGPT API with progressive responses and more.
TypeScript
11
star
18

whisper-cli

A CLI speech recognition tool, using OpenAI Whisper, supports audio file transcription and near-realtime microphone input.
TypeScript
9
star
19

workerd-docker

This minimalist Docker image allows you to run a Cloudflare Worker inside a Docker container, offering a simple solution for deploying and testing your worker on your infrastructure.
Dockerfile
9
star
20

vocal-separation

This is a demo for SOTA vocal separation models. Upload an audio file and the model will separate the vocals from the background music. Based on the result of MDX23, the current SOTA model is BS-RoFormer.
Python
7
star
21

TeX-SVG-Worker

Translate TeX to SVG on the fly. Free & Open Source TeX-SVG API. Batch Conversion Supported.
TypeScript
7
star
22

Clubhouse-Avatar-Pro

A simple but powerful web app that helps you to create excellent Clubhouse avatars with beautiful borders. Free, secure, and highly customizable.
Vue
7
star
23

rhythm-rs

Rhythm game engine written in Rust.
Rust
7
star
24

zero-rvc

Run Retrieval-based Voice Conversion training and inference with ease.
Python
6
star
25

MyselfBBS-Desktop

TypeScript
6
star
26

suggestion-bot

It will give you some suggestions on how to improve your text style. Based on Pure Cat framework.
TypeScript
6
star
27

huggingface-sync

Sync your GitHub repository to Hugging Face Spaces.
TypeScript
6
star
28

netflix-sub-tools

็‚บ Netflix ็ถฒ้ ็‰ˆๆไพ›้›™่ชžๅญ—ๅน•ใ€่‡ช่จ‚ๅญ—ๅน•ๆจฃๅผใ€ไปฅๅŠๆ›ดๅคšๅŠŸ่ƒฝใ€‚
JavaScript
6
star
29

moodle-user-intersection

็œ‹็œ‹่ชฐ่ทŸ็š„้ธ่ชฒๅ–œๅฅฝ่ทŸไฝ ไธ€ๆจฃ๏ผ๏ผˆfor NTNU Moodle๏ผŒไฝ†ไฝ ๅฏไปฅ fork ไธ€ไปฝ่‡ชๅทฑๆ”น endpoint๏ผ‰
Svelte
5
star
30

Tiktoken-Calculator

Calculate the token count for GPT-4, GPT-3.5, GPT-3, and GPT-2.
Python
5
star
31

Myself-BBS-API

myself-bbs.com JSON API
JavaScript
5
star
32

piconvert

Convert pictures to other formats. GitHub Actions supported.
TypeScript
5
star
33

hermes-mail-service

Hermes is a open-source edge email sending service, which is designed to be easy to setup and use.
Svelte
5
star
34

taipower-dashboard

่ฉฆ่‘—ๅœจๅฐ้›ป็ถฒ็ซ™่ขซ้€ฃ็ˆ†็š„ๆ™‚ๅ€™ๆœ‰ๅ€‹ๆ›ฟไปฃ่ณ‡่จŠไพ†ๆบใ€‚
Vue
5
star
35

TheatreX

TheatreX is a place to combine all your favorite streaming services into a single, unified experience.
TypeScript
4
star
36

moodle-rs

Moodle Webservice Client in Rust.
Rust
4
star
37

moodle-backup

Backup Your Personal Data from Moodle.
TypeScript
4
star
38

Cloudflare-Module-Worker

A module worker template for Cloudflare Workers. Router, GitHub Action, ...
TypeScript
4
star
39

dcard-internship-assignment-2024

Golang + MongoDB: 40K RPS API Server
Go
4
star
40

TIOJ-Stats-Card

ๅฏไปฅๅตŒๅ…ฅ GitHub Readme ็š„ TIOJ ๅ€‹ไบบ่ณ‡ๆ–™ๅฐๅก๏ผ A simple tool for every TIOJ Coder. Show your TIOJ stats on your GitHub profile or your website!
JavaScript
3
star
41

NTNU-Course-Crawler

Crawler for National Taiwan Normal University
TypeScript
3
star
42

pure-cat

A Modular Discord Bot (Framework).
TypeScript
3
star
43

moodle-api

The easiest way to use the Moodle API with fully typed parameters and responses.
TypeScript
3
star
44

BA

JavaScript
3
star
45

There-should-be-an-API

Oh, I think this website needs an API. Extract data-like things from a website on the fly.
TypeScript
3
star
46

gradio-client-lite

A zero-dependency, platform-independent, and lightweight Gradio client.
TypeScript
3
star
47

discorder

Discord Recorder with live transcription.
TypeScript
3
star
48

Petal-Nudo

An open source recorder integrating OpenAI Whisper and ChatGPT. (No hardware QQ)
Svelte
2
star
49

vosk-cli

Use vosk in command line. List all pre-trained models, download & install them, and use them to transcribe audio files or live audio.
TypeScript
2
star
50

nai-bot

A NovelAI bot with prompt suggestion support for friends.
TypeScript
2
star
51

speech-timeline-recognizer

TypeScript
2
star
52

PGUI

JavaScript
2
star
53

testcase-run

Testcase Runner
JavaScript
2
star
54

node-prisma-alpine

node:lts-alpine + prisma images for amd64 and arm64 architectures.
TypeScript
2
star
55

GitHub-User-Vis-Template

You can fork this repo and use it to test out the GitHub User Vis tool.
2
star
56

cimple-bmp

Simple BMP Library in C. A 600 lines implementation of reading/writing 16, 24, 32 bits BMP and their drawing utilities.
C
2
star
57

New-York-Times-Article-Extract-Tool

JavaScript
2
star
58

testcase-gen

Testcase Generator
JavaScript
2
star
59

without-semicolon

Ok, so runable code of those languages can be done without any semicolon.
C#
2
star
60

taipower-api

TypeScript
2
star
61

SvelteKit-Plus

SvelteKit + TailwindCSS + DaisyUI + I18n + ...
TypeScript
2
star
62

Certi

An configurable URL shortener for Certificates (and other things).
TypeScript
2
star
63

watermark-app

Quickly and securely add watermark to your images. All operations are done in your browser and the data never leaves your device. You can also customize the size and transparency of the watermark.
Svelte
2
star
64

usejs.tk

HTML
2
star
65

Cloudflare-Worker-Scheduler

More cron jobs on Cloudflare Workers? No problem! A dashboard with password protected is also included!
TypeScript
2
star
66

pea

Pure Email Auth.
TypeScript
2
star
67

xml-svelte

This is a Svelte component for rich editing / viewing XML in the browser.
Svelte
1
star
68

Automated-Rhythm-Generation

ARG: Automated Rhythm Generation for Rhythm Games. Let's generate rhythm game maps automatically!
Python
1
star
69

tja-generator

HuggingFace Space for https://github.com/seiichiinoue/odcnn
Python
1
star
70

hf-spaces-proxy

A reverse proxy that allows you to access Gradio APIs on Hugging Face Spaces with pre-filled HF_TOKEN.
TypeScript
1
star
71

sveltekit-db

Isomorphic database for SvelteKit.
TypeScript
1
star
72

TOT

Test Only Token. NFT Example. Solidity Smart Contract.
JavaScript
1
star
73

iThelp-Ironman-Crawler

iT ้‚ฆๅนซๅฟ™้ตไบบ่ณฝ็ˆฌ่Ÿฒใ€‚ ็ˆฌๅ– 2017 ~ 2021 ็š„ๆ–‡็ซ ใ€‚
JavaScript
1
star
74

Cimple-Lib

A delightful library for C learners.
C
1
star
75

dlgit

Download part of a git repository without wasting your bandwidth.
TypeScript
1
star
76

vue-gobang

Just an 1 hour short trip with Vue 3 and Master CSS. A Gobang (Gomoku) game.
Vue
1
star
77

ntnu-course-sentry

Get notified when your favorite courses are enrollable!
TypeScript
1
star
78

TheatreX-Desktop

Desktop Application of TheatreX. TheatreX is a place to combine all your favorite streaming services into a single, unified experience.
JavaScript
1
star
79

JacobLinCool

CSS
1
star
80

aid

A.I. :D | Aid provides a structured and type-safe way to interact with LLMs.
TypeScript
1
star
81

NTNU-Notifier

National Taiwan Normal University (NTNU) Notifier.
TypeScript
1
star
82

nai-studio

NovelAI Library and Command Line Interface.
TypeScript
1
star
83

ai18n

Automate Document I18n by Leveraging OpenAI's GPT-3.5-Turbo (ChatGPT)
TypeScript
1
star
84

Basic-Electronics

Basic Electronics
TypeScript
1
star
85

Bahamut-Anime-Comment-Mountains

ๅฝˆๅน•ๅฏ†ๅบฆๅฑฑ่„ˆ for ๅทดๅ“ˆๅง†็‰นๅ‹•็•ซ็˜‹
JavaScript
1
star
86

baha-anime-dl

This library is used to download Anime from Bahamut Anime.
TypeScript
1
star
87

NTNU-Course

A Package To Query National Taiwan Normal University's Courses.
TypeScript
1
star
88

openai-fine-tuning-vis

Simple Visualization for OpenAI GPT-3.5 Fine Tuning Result (step_metrics.csv).
TypeScript
1
star
89

Universal-Data-Structures

Lightweight implementation of generic and powerful data structures in C. Vector, Deque, ...
C
1
star
90

api-spec.pages.dev

๐Ÿ“š Show OpenAPI Spec with pre-rendered title and description. No CORS headers are required. Support SwaggerUI and RapiDoc.
TypeScript
1
star
91

connect

JavaScript
1
star
92

tmpl

Jacob's Project Templating Tool.
TypeScript
1
star
93

db-hw-php-workspace

PHP is terrible.
PHP
1
star
94

vosk-lib

Vosk library for node, with type defenitions and multi-arch support.
TypeScript
1
star
95

NFT-Svelte-DApp

A Web DApp with Svelte. Tech Stack: Ethers.js, SvelteKit, Svelte, TailwindCSS, TypeScript.
Svelte
1
star
96

LeetCode-Dump

Dump your LeetCode solutions, and generate a static website to show them.
TypeScript
1
star
97

iT-ironman-2021-crawler

JavaScript
1
star
98

AutoCV

AutoCV is a powerful tool that automatically collects user's repository data such as languages and technologies used, readme files, and popularity metrics from GitHub, and generates a professional and personalized CV for the user.
1
star
99

code-cross-check

Cross-checking the outputs of 2 sources with a powerful testcase generator & output preprocessor.
JavaScript
1
star
100

multi-term

Show outputs of parallel running child process without messing up anything.
TypeScript
1
star