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

team-doc-share

v1.4.0

Published

Instant team document sharing - Drop markdown files, sync with your team in real-time

Readme

🚀 Team Doc Share

Instantly share documents with your team

Drop markdown files → Instant team sync → Zero manual work

npm version License: MIT

⚡ Quick Start

Prerequisites

You'll need a free Supabase account for your team's backend:

  1. Create a Supabase project at supabase.com
  2. Set up the database with one command:
    npx team-doc-share sql
    • Copy the displayed SQL and paste into Supabase SQL Editor
    • Click "Run" to create all tables and settings
  3. Get credentials from Supabase Settings → API (URL + anon key)
    • ⚠️ Important: Use the anon/public key (starts with eyJ...), not service keys
    • 📖 Note: This key is safe because our SQL setup configures proper Row Level Security (RLS) policies

No git clone required! Everything works via NPX.

Team Admin (First-time setup)

Windows (PowerShell):

# 1. Create .env file (PowerShell - forces UTF-8 encoding)
Set-Content -Path ".env" -Value "SUPABASE_URL=your-actual-project-id.supabase.co" -Encoding UTF8
Add-Content -Path ".env" -Value "SUPABASE_ANON_KEY=eyJyour-actual-anon-key-here" -Encoding UTF8

# 2. Setup workspace
npx team-doc-share setup

Mac/Linux (Bash):

# 1. Create .env file with your ACTUAL Supabase credentials
echo "SUPABASE_URL=https://your-actual-project-id.supabase.co" > .env
echo "SUPABASE_ANON_KEY=eyJyour-actual-anon-key-here" >> .env

# 2. Setup workspace
npx team-doc-share setup

Alternative (All platforms) - Create .env file manually:

  1. Create a new file called .env in your project directory
  2. Copy your credentials from Supabase Settings → API
  3. Add these two lines (replace with your real values):
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
  1. Save as UTF-8 encoding
  2. Run: npx team-doc-share setup

Team Members (Join workspace)

# Use the full command provided by your team admin
npx team-doc-share join <workspace-id> <access-key> <supabase-url> <supabase-anon-key> --name "Your Name"

Daily Usage

npx team-doc-share start

Drop markdown files in team-docs/ folder → Files sync instantly to team!

🎯 Why Use This?

Before: Manual copy/paste, email attachments, scattered AI outputs After: Drop file → Team sees it instantly → Organized by project/sprint

✨ Features

  • 🔥 Instant Sync - Files appear for teammates in seconds
  • 📱 Zero Setup - No git, no servers, no complex configuration
  • 🏷️ Smart Organization - Auto-tags, sprint folders, search
  • 🔔 Real-time - See when teammates add files live
  • 🔒 Secure - Private team workspaces with access keys
  • 📱 Cross-platform - Windows, Mac, Linux support
  • 🎯 Universal - Works with any editor (Cursor, VS Code, etc.)

📖 How It Works

  1. Setup once: Team admin creates workspace with npx team-doc-share setup
  2. Join workspace: Team members join with shared workspace ID + access key
  3. Drop & sync: Save documents as .md files in team-docs/ folder
  4. Instant sharing: Files automatically sync to team workspace in real-time

🗂️ File Organization

team-docs/
├── sprint-2025.1/
│   ├── feature-auth.md      # #authentication #backend
│   └── bug-fix-login.md     # #bugfix #frontend
├── sprint-2025.2/
│   └── new-dashboard.md     # #ui #react
└── research/
    └── ai-integration.md    # #research #ai

Features:

  • 🏷️ Auto-tagging: Use #hashtags for instant categorization
  • 📁 Sprint folders: Organize by project phases
  • 🔍 Smart search: Find files by content, tags, or author
  • Version history: Track all changes with timestamps

🛠️ Commands

# Get database setup SQL (copy/paste into Supabase)
npx team-doc-share sql

# Setup new workspace (admin only, requires .env file)
npx team-doc-share setup

# Join existing workspace (all parameters required)
npx team-doc-share join <workspace-id> <access-key> <supabase-url> <supabase-anon-key> --name "John Doe"

# Start file watching
npx team-doc-share start

# Test connection (requires .env file or joined workspace)
npx team-doc-share test

# Help
npx team-doc-share --help

🚨 Troubleshooting

"No .env file found" or "Configuration validation failed"

  • Create .env file with your Supabase credentials
  • Verify SUPABASE_URL and SUPABASE_ANON_KEY are correct
  • Check your internet connection to Supabase

".env file found but no variables loaded" (Windows)

  • File encoding issue - .env must be UTF-8, not UTF-16
  • Fix with PowerShell (recommended):
    Remove-Item .env -ErrorAction SilentlyContinue
    Set-Content -Path ".env" -Value "SUPABASE_URL=your-actual-url" -Encoding UTF8
    Add-Content -Path ".env" -Value "SUPABASE_ANON_KEY=your-actual-key" -Encoding UTF8
  • Or fix with Command Prompt:
    del .env
    echo SUPABASE_URL=your-actual-url > .env
    echo SUPABASE_ANON_KEY=your-actual-key >> .env

"Setup failed" or "Database query failed"

  • Run npx team-doc-share sql and paste the SQL into Supabase SQL Editor
  • Verify your Supabase project is active and you're using the legacy anon key
  • Check the Supabase dashboard for errors

"No files syncing"

  • Ensure files are .md or .txt format
  • Check the console for error messages
  • Run npx team-doc-share test
  • Verify all team members joined the same workspace

"Real-time sync not working"

  • Check that real-time is enabled in your Supabase project
  • Verify network connectivity
  • Try restarting with npx team-doc-share start

Need help? Open an issue

🎯 Perfect For

  • Dev Teams sharing AI outputs (Cursor, ChatGPT, etc.)
  • Documentation Teams collaborating on guides
  • Sprint Planning with organized file sharing
  • Knowledge Management across projects
  • Remote Teams needing instant collaboration
  • Any Team tired of manual file sharing

📊 Example Workflow

# Team lead sets up Supabase and workspace (REPLACE WITH YOUR REAL VALUES)
# Windows PowerShell (UTF-8 safe):
Set-Content -Path ".env" -Value "SUPABASE_URL=https://your-project-id.supabase.co" -Encoding UTF8
Add-Content -Path ".env" -Value "SUPABASE_ANON_KEY=eyJyour-full-anon-key-here" -Encoding UTF8
# Mac/Linux:
# echo "SUPABASE_URL=https://your-project-id.supabase.co" > .env
# echo "SUPABASE_ANON_KEY=eyJyour-full-anon-key-here" >> .env
npx team-doc-share setup
# Shares: npx team-doc-share join workspace123 key456 https://abc123.supabase.co eyJ...

# Developer joins and starts sharing
npx team-doc-share join workspace123 key456 https://abc123.supabase.co eyJ... --name "Alice"
npx team-doc-share start

# Alice saves AI output or documentation
echo "# API Design\n\n..." > team-docs/sprint-1/api-design.md

# Team sees file instantly! 🎉

🔒 Security & Infrastructure

  • Private workspaces with access key authentication
  • Self-hosted backend - your team controls the Supabase instance
  • User attribution - see who shared what and when
  • Access control - workspace-based team management
  • Secure by design - no credentials stored in source code
  • Row Level Security (RLS) - App tables use application-level security, storage files use RLS policies
  • Safe anon keys - Public keys are safe to use because RLS prevents unauthorized access

🤝 Contributing

We welcome contributions! Here's how to get started:

Development Setup

# Clone the repository
git clone https://github.com/nbrem108/team-doc-share.git
cd team-doc-share

# Install dependencies
npm install

# Create your own Supabase project for testing
# 1. Go to supabase.com and create a project
# 2. Run: npx team-doc-share sql (copy/paste the SQL into Supabase)
# 3. Create .env file with your REAL credentials:
echo "SUPABASE_URL=https://your-actual-test-project-id.supabase.co" > .env
echo "SUPABASE_ANON_KEY=eyJyour-actual-test-anon-key" >> .env

# Build and test
npm run build
npm test

Making Changes

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Test your changes: npm run build && npm test
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to your branch: git push origin feature/amazing-feature
  7. Open a Pull Request

Development Commands

npm run build          # Compile TypeScript
npm run dev           # Development mode with hot reload
npm run lint          # Check code style
npm run lint:fix      # Fix code style issues
npm run format        # Format code with Prettier

Architecture

  • TypeScript - Type-safe JavaScript
  • Supabase - Backend database and real-time subscriptions
  • chokidar - Cross-platform file watching
  • commander - CLI framework

Need Help?

📜 License

MIT - see LICENSE file


Made with ❤️ for teams who want seamless document collaboration