Socket
Book a DemoInstallSign in
Socket

pocket-d1

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pocket-d1

`pocket-d1` is a simple utility to preview cloudflare D1 Databases in an easy-to-use UI as well as provide a REST API to interact with the database.

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Pocket D1

pocket-d1 is a simple utility to preview cloudflare D1 Databases in an easy-to-use UI as well as provide a REST API to interact with the database.

The UI is a fork of pocketbase and the project uses teenybase for automatically generated APIs for the database.

Usage

Install and run in the cloudflare project with wrangler.toml with a d1 database

npm i pocket-d1 && npx pocket-d1 start --remote

And navigate to the link in the console.

CLI

Navigate to the directory with wrangler.toml file with a database UUID and run the following command to start the local server:

npx pocket-d1 start --db MY_DB

where MY_DB is the database binding in the wrangler.toml file.

This will start a local server at http://localhost:3147 and print the viewer and editor credentials that can be used to access the DB.

By default, the local database is used, to use the remote database use the --remote flag.

npx pocket-d1 --remote start --db MY_DB

FAQs

Package last updated on 05 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.