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

@yaro.page/nano-db

v1.2.1

Published

This guide covers how to set up, manage, and use the **nano-db** package, a lightweight database abstraction for the nanoweb ecosystem.

Downloads

36

Readme

📖 Nano-DB Usage Guide

This guide covers how to set up, manage, and use the nano-db package, a lightweight database abstraction for the nanoweb ecosystem.

📌 Project Structure

The nano-db package follows a modular structure:

nano-db/
├── lib/            # Source code
│   ├── Manifest.js
│   ├── ManifestChange.js
│   ├── ManifestNode.js
│   ├── ManifestNodes.js
│   ├── NANODb.js
│   ├── NANODbOptions.js
│   ├── SearchEntries.js
│   ├── SearchEntry.js
│   ├── SearchIndex.js
│   ├── index.js
├── test/           # Test files
|   ├── 00-README.md.test.js  # Document generator and tester
│   ├── Manifest.test.js
│   ├── NANODb.test.js
├── package.json    # Package metadata and scripts
├── vitest.config.js # Vitest configuration
└── README.md      # This documentation

🔗 Requirements

  1. Node.js runtime environment You must have Node v22+ installed.
  2. pnpm package manager You must have the pnpm package manager installed.
  3. nano-format The nano-format package is a peer dependency and must be installed.

🔧 Setting Up the Package

  1. Install the package:

    pnpm add nano-db
  2. Install peer dependencies:

    pnpm add nano-format
  3. Build the package:

    pnpm build

🚗 Running the Development Environment

  • Start the development server:

    pnpm dev
  • Run tests:

    pnpm test
  • Build the package:

    pnpm build
  • Lint the code:

    pnpm lint

🔄 Managing Dependencies & Versions

Updating Dependencies

Before committing, ensure all workspace dependencies are resolved:

pnpm ws:latest

To use workspace versions during development:

pnpm ws:workspace

Checking for Issues Before Commit

pnpm ws:check

🏗 Releasing the Package

  1. Ensure all changes are committed and pushed.
  2. Run the release script:
    pnpm release
    This will:
    • Run tests and linting
    • Build the package
    • Tag the new version in Git
    • Publish to npm
    • Push commits and tags

🛸 Contributing

  1. Create a new branch:
    git checkout -b feature/my-update
  2. Make changes and commit:
    git commit -m "Add new feature"
  3. Push your branch and open a pull request.

⚙️ Useful Utility Scripts

| Command | Description | |-----------------|-------------| | pnpm build | Build the package (generates documentation) | | pnpm test | Run tests | | pnpm lint | Lint the code | | pnpm dev | Start development server | | pnpm release | Release the package | | pnpm ws:check | Validate package.json & pre-commit hooks | | pnpm ws:latest| Replace workspace:* with actual versions | | pnpm ws:workspace | Convert all versions to workspace:* |

🛠️ Troubleshooting

  • Dependency Issues: Run pnpm install and pnpm ws:latest.
  • Build Errors: Ensure nano-format is installed and run pnpm build.
  • Test Failures: Check test files and run pnpm test.
  • Pre-commit Hook Failures: Verify .husky/pre-commit and run pnpm ws:check.

With these steps, you can efficiently use and maintain nano-db! 🚀