📦 Publishing a Package

This guide walks you through publishing a quality package on Beepack.

Prerequisites

Recommended Structure

my-package/
├── HIVE.yaml          # Configuration (REQUIRED)
├── README.md          # Documentation (highly recommended)
├── src/
│   ├── index.ts       # Entry point
│   └── utils.ts       # Utilities
├── tests/
│   └── index.test.ts  # Tests
├── examples/
│   ├── basic.ts       # Simple example
│   └── advanced.ts    # Advanced example
└── LICENSE            # License (optional, MIT-0 by default)

1. Create the HIVE.yaml

The most important file. See the complete format guide.

name: my-api
version: 1.0.0
description: Clear and concise description

keywords:
  - keyword-1
  - keyword-2

capabilities:
  - main_action
  - other_action

requires:
  env:
    - REQUIRED_API_KEY

compatible:
  - cursor
  - copilot
  - claude

2. Write a Good README

A quality README significantly increases adoption. Include:

3. Add Tests

Packages with tests get a "tested" badge and inspire more trust.

# In HIVE.yaml
tests:
  command: npm test
  coverage_min: 70

4. Publish

# Login (once)
beepack login

# Publish
beepack publish

Best Practices

✅ Do

❌ Don't

After Publishing

Your package is immediately available:

# Others can install it
beepack install your-username/my-package

# And find it via search
beepack search "your package description"