npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

surrealctl

v1.1.1

Published

SurrealDB control center

Downloads

5

Readme

SurrealDB Control Center

A command-line interface for managing SurrealDB instances. This CLI allows you to initialize, start, stop, configure, and check the status of SurrealDB databases.

Features

  • Initialize a new SurrealDB database
  • Start and stop SurrealDB instances
  • Configure database settings
  • Check the status of running instances
  • Background process management

Installation

Dependency

npm install surrealctl --save-dev

Standalone / CLI Only

npm install -g surrealctl

Development

  1. Clone this repository:

    git clone https://github.com/daviddyess/surrealctl.git
    cd surrealctl
  2. Install dependencies:

    npm install

Configuration

The CLI uses a config.json file for configuration. If this file doesn't exist, it will check for the following environment variables:

  • SURREAL_PATH: The full path to your database file, including the database file with .db extension. This will be created if it doesn't exist
  • SURREAL_USER: The username for database access
  • SURREAL_PASS: The password for database access

Adding these to your environment variables is preferred if you are using the module as a dependency.

You can create a config.json file manually or use the configure command to set these values, if you are using the CLI as a standalone tool.

Configuration File

config.json:

{
  "dataDir": "./data",
  "username": "root",
  "password": "root"
}

Commands

  • init: Initialize a new SurrealDB database
  • start: Start a SurrealDB instance
  • stop: Stop the running SurrealDB instance
  • configure: Update configuration settings
  • status: Check the status of the SurrealDB instance

Use npm run help or ./index.js --help for more information on available commands and options.

All commands can be run with npm run if in the surrealctl project directory or directly with npx surrealctl.

Usage

Initialize a new database

npx surrealctl init
npm run init

This command creates a new SurrealDB database using the configured settings.

Start the database

npx surrealctl start
npm start

Starts the SurrealDB instance in the background.

Stop the database

npx surrealctl stop
npm stop

Stops the running SurrealDB instance.

Configure settings

npx configure -- -d ./my-data -u myuser -p mypassword
npm configure -- -d ./my-data -u myuser -p mypassword

Updates the configuration with new settings.

Check status

npx surrealctl status
npm run status

Displays the current status of the SurrealDB instance.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.