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

photondb

v1.0.7

Published

As fast as a photon, as small-sized as a photon.

Readme

Photon DB Tweet

As fast as a photon, as small-sized as a photon.

For further questions

My GitHub: OguzhanUmutlu

My Discord: Oğuzhan#6561

Why photon?

  • ✨ Compared to other databases it is so small and compact! ✨
  • ✨ It's so fast! ✨
  • ✨ Supports multiple languages and executables for multiple operating systems! ✨

Blazingly fast!

  • Note: I know this is not related to sqlite, but I wanted to compare it to other famous databases.

| | select 1 row | select 100000 rows | insert 100000 row | |----------------------------------------------------------------|--------------|--------------------|-------------------| | photondb | 1x | 1x | 1x | | better-sqlite3 | 2.63x slower | 11.5x slower | 17.7x slower |

Usage

Importing

const photon = require("photondb");

Opening your file

const db = photon("./myFile.pdb");

Running a command

db.query("CREATE TABLE helloWorld hi TEXT");

Commands

CREATE TABLE

Syntax: CREATE TABLE <tableName> <row-name> <row-properties>, <row-name> <row-properties>, ...

  • Tip: You can add IF NOT EXISTS after CREATE TABLE so it doesn't throw an error if the table already exists.
  • Example: CREATE TABLE IF NOT EXISTS workers id AUTOINCREMENT KEY, name, age NUMBER

Examples:

  • CREATE TABLE workers id AUTOINCREMENT KEY, name, age NUMBER
  • CREATE TABLE salaries id NUMBER, salary NUMBER

Properties

  • text - It means the row's type is a string/text. Text type will be selected if nothing is given.
  • number - It means the row's type is a number. Can be negative or positive. Can be a floating number. If auto increment property is selected the type will be chosen as number.
  • auto-increment - It means that whenever a new one is created its' value will be increased by one according to the last added one. If auto increment option is given there is no need for its type to be given. Alias: "autoincrement"
  • key - It will make it a key which means you can't create two or more with the same value. Alias: "unique"
  • default=Something - It will put that value to that column if it was not specified from the query. Alias: "def=Something"

DELETE TABLE

Syntax: DELETE TABLE <table>

Examples:

  • DELETE TABLE workers
  • DELETE TABLE salaries

INSERT INTO

Syntax: INSERT INTO <table> <row-name> <row-value>, <row-name> <row-value>, ...

Examples:

  • INSERT INTO workers name "Jack", age 22
  • INSERT INTO salaries id 1, salary 15000

DELETE FROM

Syntax: DELETE FROM <table> WHERE <condition>

Examples:

  • DELETE FROM workers WHERE name "Jack"
  • DELETE FROM salaries WHERE salary 15000

SELECT FROM

Syntax: SELECT FROM <table> WHERE <condition>

Examples:

  • SELECT FROM workers WHERE name "Jack", age 22
  • SELECT FROM salaries WHERE salary 15000

UPDATE FROM

Syntax: UPDATE FROM <table> WHERE <condition> SET <values>

Examples:

  • UPDATE FROM workers WHERE <condition> SET <values>
  • UPDATE FROM salaries SET salary 30000

TODO

  • Implementing to Rust
  • Implementing to PHP