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

dbdocmanager_ssd

v1.0.2

Published

Database documentation and lineage tool using a JSON-based DSL. Generate beautiful docs, ER diagrams, and data lineage graphs.

Downloads

7

Readme

DBDocManager

A lightweight database documentation and lineage tool using a JSON-based DSL
College Project - Software Systems Development Course

A command-line tool that helps document relational databases and track data lineage from NoSQL sources to relational tables. Generate beautiful HTML documentation with column-level mappings and transformation tracking.

Features

Schema Documentation - Document tables, columns, types, and constraints
Data Lineage - Track source → target mappings at column level
NoSQL Support - Document MongoDB → Relational transformations
HTML Generation - Beautiful, searchable static documentation with interactive graphs
Transform Tracking - Visualize data transformations in lineage graphs
CLI Tool - Validate and generate docs from anywhere

Installation

Global Installation (Recommended)

Install globally to use the dbdoc command from anywhere:

npm install -g dbdocmanager_ssd

Note: The package name is dbdocmanager_ssd (not dbdoc, which is a different package).

Verify Installation

dbdoc --version

Quick Start

1. Create a DSL File

Create a file named my-database.json:

{
  "project": "my_project",
  "description": "My database documentation",
  "targets": [
    {
      "db": "warehouse",
      "engine": "postgres",
      "schema": "public",
      "tables": [
        {
          "name": "users",
          "description": "User accounts",
          "columns": [
            {
              "name": "id",
              "type": "INTEGER",
              "pk": true,
              "description": "Primary key"
            },
            {
              "name": "email",
              "type": "VARCHAR(255)",
              "unique": true,
              "nullable": false,
              "description": "User email address"
            }
          ]
        }
      ]
    }
  ],
  "sources": [
    {
      "id": "app_db",
      "kind": "mongodb",
      "db": "production",
      "collection": "users"
    }
  ],
  "mappings": [
    {
      "target": "warehouse.public.users.email",
      "from": {
        "source_id": "app_db",
        "path": "contact.email",
        "transform": "LOWER(TRIM())"
      }
    }
  ]
}

2. Validate Your Schema

dbdoc validate my-database.json

3. Generate Documentation

dbdoc generate my-database.json -o ./docs

4. View Documentation

Open ./docs/index.html in your browser to view:

  • Project overview with all tables
  • Individual table pages with columns and constraints
  • Data lineage table view
  • Interactive lineage graph with transform labels

CLI Commands

dbdoc validate <file>

Validates your DSL file for errors and warnings.

dbdoc validate schema.json

dbdoc generate <file> [options]

Generates HTML documentation from your DSL file.

dbdoc generate schema.json -o ./output

Options:

  • -o, --output <dir> - Output directory (default: ./docs)

dbdoc info <file>

Displays summary information about your DSL file.

dbdoc info schema.json

DSL Schema Reference

Basic Structure

{
  "project": "string (required)",
  "version": "string (optional)",
  "description": "string (optional)",
  "owners": ["[email protected]"],
  "targets": [],
  "sources": [],
  "mappings": []
}

Column Definition

{
  "name": "column_name",
  "type": "VARCHAR(255)",
  "nullable": false,
  "default": "default_value",
  "description": "Description",
  "pk": false,
  "unique": false,
  "auto_increment": false
}

Source Definition

{
  "id": "unique_id",
  "kind": "mongodb|postgres|mysql|api",
  "db": "database_name",
  "collection": "collection_name"
}

Mapping (Lineage)

{
  "target": "db.schema.table.column",
  "from": {
    "source_id": "source_id",
    "path": "field.path",
    "transform": "LOWER()"
  },
  "description": "Optional description"
}

Example Output

The tool generates:

  1. Index Page - Overview of all databases and tables
  2. Table Pages - Detailed column information with data lineage
  3. Lineage Table - All source-to-target mappings
  4. Lineage Graph - Interactive visualization with:
    • Source and target nodes grouped by table/collection
    • Column-level connections
    • Transform labels on edges
    • Hover tooltips showing full qualified names

Project Information

Course: Software Systems Development
Team Size: 5 members
Package: dbdocmanager_ssd
Point of Contact: Team Members :

  • Achyutananda Sahoo
  • Satyajit Priyadarshi
  • Abhijith Sangarsu
  • Swaraj Kumar
  • Ameya Purohit Guide : Sai Anirudh Karre

License

This is a college project created for educational purposes.

Troubleshooting

Command not found after installation:

# Try installing with sudo (Linux/Mac)
sudo npm install -g dbdocmanager_ssd

# Or check your npm global bin path
npm config get prefix

Permission errors on Linux/Mac:

# Fix npm permissions
sudo chown -R $USER /usr/local/lib/node_modules