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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@hazem-shaker/sqlbite

v1.0.5

Published

A simple DBMS engine CLI tool - Create tables, insert, select, update, delete with SQL-like syntax

Readme

SQLBite

A simple DBMS (Database Management System) engine CLI tool built with C++.

Installation

Global Installation (Recommended)

npm i -g @hazem-shaker/sqlbite

This installs the package globally, making the sqlbite command available from anywhere in your terminal.

Local Installation

npm i @hazem-shaker/sqlbite

This installs the package in your current project's node_modules folder.

Note: This package only supports Windows.

Usage

If installed globally:

sqlbite

If installed locally:

npx sqlbite

Why npx? Local installs put the binary in ./node_modules/.bin/ which is not in your system PATH. Using npx tells npm to look in that folder and run the command. Without npx, your terminal won't find the sqlbite command.

Available Commands

Create Table

CREATE TABLE tablename (col1 PRIMARY KEY, col2, col3)
CREATE TABLE tablename (col1, col2, col3)

Insert Data

INSERT INTO tablename VALUES (val1, val2, val3)

Select Data

SELECT * FROM tablename
SELECT col1, col2 FROM tablename
SELECT * FROM tablename WHERE col = value
SELECT col1, col2 FROM tablename WHERE col > value

Update Data

UPDATE tablename SET col = value WHERE condition

Example:

UPDATE users SET name = John WHERE id = 1
UPDATE products SET price = 99 WHERE price < 50

Delete Data

DELETE * FROM tablename
DELETE FROM tablename WHERE condition

Example:

DELETE * FROM logs
DELETE FROM users WHERE id = 3
DELETE FROM products WHERE price > 100

Show Tables

SHOW
TABLES

Lists all tables in the database with their primary key information.

Help

HELP

Displays the help screen with all available commands.

Exit

EXIT

Exits the program. You can also press ESC key to exit.

WHERE Operators

| Operator | Description | |----------|-------------| | = | Equal to | | != | Not equal to | | > | Greater than | | < | Less than | | >= | Greater than or equal | | <= | Less than or equal |

Primary Key

Use PRIMARY KEY after a column name to enforce uniqueness:

CREATE TABLE students (id PRIMARY KEY, name, grade)

Duplicate primary key values will be rejected.

Data Storage

Tables are stored as .txt files in a ./data/ directory, created automatically in your current working directory.

Example Session

DBMS> CREATE TABLE users (id PRIMARY KEY, name, email)
Table 'users' created successfully with 3 columns. Primary key: 'id'.

DBMS> INSERT INTO users VALUES (1, Hazem, [email protected])
1 row inserted into 'users'.

DBMS> INSERT INTO users VALUES (2, Ahmed, [email protected])
1 row inserted into 'users'.

DBMS> SELECT * FROM users
| id | name  | email           |
+----+-------+-----------------+
| 1  | Hazem | [email protected] |
| 2  | Ahmed | [email protected] |

Rows returned: 2

DBMS> UPDATE users SET name = Hazem_Updated WHERE id = 1
1 row(s) updated in 'users'.

DBMS> SELECT name FROM users WHERE id = 1
| name          |
+---------------+
| Hazem_Updated |

Rows returned: 1

DBMS> SHOW
Tables in database:
  - users (PK: id)

DBMS> DELETE FROM users WHERE id = 2
1 row(s) deleted from 'users'.

DBMS> EXIT
Goodbye!

Author

Hazem Mohamed Shaker

License

MIT