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

kaizer-db

v1.3.5

Published

A lightweight and minimal csv database package with SQL-like syntax

Downloads

459

Readme

Logo NPM Downloads

  • SQL-like Syntax: Easily write SELECT, INSERT, UPDATE, and DELETE queries.
  • CSV Integration: Directly interact with CSV files as lightweight databases.
  • CRUD Support: Perform essential Create, Read, Update, and Delete operations.
  • Minimal Overhead: Ideal for prototyping and small-scale projects.

  • No type checking.
  • Supports only one query execution at a time.
  • Does not handle data with spaces.


1. Clone the Repository

git clone https://github.com/DarkMortal/Kaizer-DB.git
cd Kaizer-DB

2. Install dependencies

yarn install # or npm install

3. Start the CLI

yarn start # or npm start

4. Global Installation

Install the package globally using npm:

npm install -g kaizer-db

Run the CLI from anywhere:

kaizer-db

Example Queries

Creating and Using a Database

Use Database mydb;
Create Database mydb;

Creates a folder named mydb where tables are stored as .csv files.

Creating a Table

Create Table Warriors (Name, Attack, Defense, PowerLevel);

Creates a file named Warriors.csv with the given headers.

Show Tables

Show Tables;
Output:
+-------------+
| Tables      |
+-------------+
| test_data   |
| Warriors    |
+-------------+

Total number of Tables: 2

Shows list of available csv files in the current directory which is used as the database.

Inserting Data

Insert into Warriors (Name, Attack, Defense, PowerLevel) values (Goku, 5000, 7000, 9001), (Vegeta, 5000, 7000, 9000);

Appends records to Warriors.csv.

Fetching Data

Select * from Warriors;
Output:
+--------+--------+---------+------------+
| Name   | Attack | Defense | PowerLevel |
+--------+--------+---------+------------+
| Goku   |  5000  |   8000  |    9001    |
| Vegeta |  5000  |   7000  |    9000    |
+--------+--------+---------+------------+

2 rows returned

Using WHERE Clauses

Select Name from Warriors Where PowerLevel > 9000;
Output:
+--------+
| Name   |
+--------+
| Goku   |
+--------+

1 rows returned

Updating Data

Update Table Warriors set PowerLevel = 10000, Defense = 8000 Where Name = Goku;
Select * from Warriors;
Output:
+--------+--------+---------+------------+
| Name   | Attack | Defense | PowerLevel |
+--------+--------+---------+------------+
| Goku   |  5000  |   8000  |    10000   |
| Vegeta |  5000  |   7000  |    9000    |
+--------+--------+---------+------------+

2 rows returned

Deleting Data

Delete From Warriors Where PowerLevel < 10000;
Select * from Warriors;
Output:
+--------+--------+---------+------------+
| Name   | Attack | Defense | PowerLevel |
+--------+--------+---------+------------+
| Goku   |  5000  |   7000  |    10000   |
+--------+--------+---------+------------+

1 rows returned

Order by clause

The default ordering is ascending order (asc,Asc,ASC)The descending order can be used as (desc,Desc,DESC)

Examples

Select * from test_data order by Defense;
Output:
+--------------------+---------+---------+-------------+
| Name               | Attack  | Defense | PowerLevel  |
+--------------------+---------+---------+-------------+
| Karin_Uzumaki      | 100     | 92      | 510         |
| Jayden_Uchiha      | 200     | 120     | 5000        |
| Rykon_Hayashi      | 400     | 310     | 8100        |
| Arkon_Hayashi      | 420     | 330     | 8000        |
| Kakarot_Uchiha     | 500     | 340     | 9001        |
| Drago_Uzumaki      | 460     | 350     | 8010        |
+--------------------+---------+---------+-------------+

6 rows returned
Select * from test_data where Attack > 200 order by Defense desc;
Output:
+--------------------+---------+---------+-------------+
| Name               | Attack  | Defense | PowerLevel  |
+--------------------+---------+---------+-------------+
| Drago_Uzumaki      | 460     | 350     | 8010        |
| Kakarot_Uchiha     | 500     | 340     | 9001        |
| Arkon_Hayashi      | 420     | 330     | 8000        |
| Rykon_Hayashi      | 400     | 310     | 8100        |
+--------------------+---------+---------+-------------+

4 rows returned
Select Name, PowerLevel, Defense from test_data where Attack > 200 Order by Defense;
Output:
+--------------------+-------------+---------+
| Name               | PowerLevel  | Defense |
+--------------------+-------------+---------+
| Rykon_Hayashi      | 8100        | 310     |
| Arkon_Hayashi      | 8000        | 330     |
| Kakarot_Uchiha     | 9001        | 340     |
| Drago_Uzumaki      | 8010        | 350     |
+--------------------+-------------+---------+

4 rows returned

Error Handling

Kaizer-DB provides meaningful error messages to guide users.

Example

Select Name, PowerLevel from Warriors Where Attack > 200 Order by Defense;
Output:
Error: Order by field needs to be included in fetch list

  1. Fork the Repository Fork the Repository by using fork button.
  2. Clone the Repository
git clone https://github.com/<contributor-user-name>/Kaizer-DB.git
  1. Create a New Branch
cd Kaizer-DB
git checkout -b feature/your-feature-name
  1. Make Your Changes
  • Edit the code as needed.
  • Add tests if applicable.
  • Update the version details in package.json file.
  1. Commit Your Changes
git add .
git commit -m "Description of your changes"
  1. Push Your Changes
git push origin feature/your-feature-name
  1. Create a Pull Request (PR)
  • Go to your repository on GitHub.
  • Click on New Pull Request.
  • Provide a detailed description of your changes.
  • Submit the PR for review.