@bitbons.ai/bit v2.3.1
ā“ bit ā your stack sidekick
Zero to Full-Stack in Seconds! Create production-ready applications with a single command.

⨠What's in the Box?
Bit sets you up with a modern, battle-tested stack:
- šæ Monorepo - Simple, organized and scalable from day one (
apps/pbandapps/web) - š Docker - Development environment that "just works"
- š¦ PocketBase Backend - Full-featured backend with admin UI
- ⨠Astro Frontend - Blazing-fast web performance for pages and api endpoints (SSR by default on
bit) - š Bun - Incredibly fast JavaScript runtime and toolkit for modern web development (powers bit's DX)
š Get Started in 30 Seconds
Install Bit:
npm i -g @bitbons.ai/bitCreate your masterpiece:
bit new my-awesome-project cd my-awesome-projectStart to see logs coming in:
bit logs # bit is already running both containers for you
That's it! Visit your creation at:
- ⨠Frontend: http://localhost:4321
- š PocketBase Admin Dashboard: http://localhost:8090/_/

š® Command Center
During Development
| Command | Description |
|---|---|
new [options] <project-name> | Create a new project --pb |
bit start | Start development environment |
bit stop | Stop all services |
bit restart [--skip-build] [target] | Restart and rebuild services web, pb, empty for all |
bit logs | View containers logs |
bit down | Delete all containers and volumes |
bit help [command] | If you need help remembering how to do it |
Ready for the World?
| Command | What it Does |
|---|---|
bit deploy | Ship everything (parallel deployment). Same as bit deploy all |
bit deploy web | Ship frontend |
bit deploy pb | Ship backend |
bit deploy --watch | Wait and verify the deployment is healthy |
bit deploy --dry-run | Show what would happen without making any changes |
If your app doesn't exist in fly.io, it will launch first, then deploy.
You can use --watch to verify deployment health.
š Project Blueprint
my-project/
āāā .env.development # Development-only variables (not committed)
āāā apps/
ā āāā web/ # Astro frontend
ā ā āāā src/
ā ā āāā .env # Public environment variables
ā ā āāā fly.toml # Frontend deploy config
ā āāā pb/ # PocketBase backend
ā āāā pb_data/ # Database and storage
ā āāā fly.toml # Backend deploy config
āāā docker-compose.yml # Development environment
āāā README.mdšŖ Power User Features
Auto-Magic Admin Setup
Create ~/.bit.conf to use one email/password for PB's superuser (and to fastrack creation):
{
"pocketbase": {
"admin": {
"email": "pb-admin@your-domain.com",
"password": "your-secure-password"
}
}
}š¢ Deploy Like a Pro
For now, you can deploy in fly.io automagically:
Get the fly.io CLI:
curl -L https://fly.io/install.sh | shLog in:
fly auth loginShip it:
bit deploy # From your project's root directory, to deploy both web and pbor
bit deploy pb # Deploy PocketBase (db / backend) only bit deploy web # Deploy Astro (Frontend / api) only
Deploying PocketBase to fly.io in real time

!IMPORTANT If you want to point your domain to the web app, Add a
CNAMEentry for your domain pointing to your fly.io web app, and add a free ssl certificate for the domain. Here's how to do it in details.
š§āš» For the Builders
Want to make Bit even better? Here's how:
git clone https://github.com/bitbonsai/bit.git
cd bit
npm install
npm link
bit new test-project # Test your changesš Before You Start
Make sure you have:
- š Docker Desktop
- āļø Fly.io CLI
- š Bun (recommended) or npm
š Need Help?
Common hiccups and quick fixes:
- š Docker not running? Fire up Docker Desktop
- š Port conflicts? Check if 4321 or 8090 are free
- š Permission issues? Double-check Docker permissions
- š«§ Start fresh? Run
bun run clean
š¤ Join the Community
Got ideas? Found a bug? We love pull requests!
āļø License
MIT License - go wild! See LICENSE for the fine print.