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

bit2-cli

v3.0.9

Published

A modern CLI tool for scaffolding Astro applications with libSQL/Turso database integration and flexible deployment to Cloudflare Pages, Vercel, or Netlify

Downloads

123

Readme

∴ bit2

A modern CLI tool for scaffolding Astro applications with libSQL/Turso database integration and Cloudflare, Vercel or Netlify deployment

npm version License: MIT

Quick StartCommandsFeatures

🎯 What is bit2?

bit2 is the fastest way to create modern web applications with a complete, production-ready stack. Get a beautiful Astro site with database integration and deployment configured in minutes.

✨ Features

  • 🚀 Astro 5.x - Modern web framework with SSR and islands architecture
  • 💾 libSQL/Turso - SQLite for the edge with global replication
  • 🎯 Multi Deploy - One-command deployment to Cloudflare, Vercel or Netlify
  • Bun Runtime - Fast JavaScript runtime and package manager
  • 🔄 Auto Setup - Database initialization and dependency installation

🚀 Quick Start

# Install globally
npm install -g bit2-cli

# Create a new project
bit2 new my-awesome-app

# Start developing
cd my-awesome-app
bit2 dev

# Deploy to production (when ready)
bit2 deploy

That's it! Your app is running with a database, API endpoints, and a beautiful UI. When ready, deploy to production with a single command!

📋 Commands

bit2 new <project-name>

Creates a new Astro project with everything configured:

  • Copies optimized Astro template
  • Installs dependencies automatically
  • Sets up local SQLite database with sample data
  • Ready to run immediately

bit2 dev

Starts the development server with local SQLite database and hot reload

bit2 deploy

Smart deployment workflow:

  • Creates Turso cloud database automatically
  • Sets up GitHub repository (optional)
  • Deploys to Cloudflare, Vercel or Netlify with automatic configuration
  • Configures environment variables

bit2 migrate

Runs database migrations for both local and production databases

🎯 Workflow

# Create new project
bit2 new my-app
cd my-app

# Start development  
bit2 dev

# Deploy to production
bit2 deploy

📁 Project Structure

my-app/
├── src/
│   ├── pages/           # Astro pages (frontend + API)
│   ├── components/      # Astro components
│   ├── db/
│   │   ├── client.ts    # Database client configuration
│   │   ├── schema.sql   # Database schema
│   │   └── seed.sql     # Sample data
│   └── lib/
│       └── db.ts        # Database utilities
├── dev.db               # Local SQLite database
├── astro.config.mjs     # Astro + Cloudflare, Vercel or Netlify configuration
└── package.json

🗄️ Database

Local Development

  • Uses SQLite database file: ./dev.db
  • Automatically created on first migration
  • Perfect for development and testing

Production

  • Uses Turso cloud database
  • Global edge replication
  • Seamless scaling
  • Configured via environment variables

🚀 Deployment

The bit2 deploy command handles everything:

  1. Creates and configures your Turso cloud database
  2. Sets up GitHub repository
  3. Installs Cloudflare, Vercel or Netlify adapter
  4. Shows instructions for Cloudflare, Vercel or Netlify deplyoy configuration
  5. Next deployments on git push

🛠️ Prerequisites

For Development

  • Bun (recommended) or Node.js 18+

For Deployment

  • Turso CLI for database management
  • GitHub CLI for auto repository creation
  • Accounts with Turso, GitHub, and Cloudflare, Vercel or Netlify

Install & Setup

# Install Bun
curl -fsSL https://bun.sh/install | bash

# Install Turso CLI (required for deployment)
curl -sSfL https://get.tur.so/install.sh | bash
turso auth signup

# Install CLI tools for deployment
brew install gh          # GitHub CLI  
gh auth login

📚 Learn More

🤝 Contributing

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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (bit2 test)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

📝 License

MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Astro for the amazing web framework
  • Turso for edge SQLite
  • Bun for the fast runtime

Made with ❤️ for the modern web

⭐ Star on GitHub📦 View on npm🐛 Report Issues