# Pricing

> Every team starts on Free. Upgrade a team to Premium when it needs more packages or bigger ones, and everyone on it gets them, however many people that is.

This is the markdown version of https://private-pub.dev/pricing.

## Plans

### Free: $0 per team

For trying it out, and for teams with a few private packages.

- Up to 10 packages per team
- Archives up to 100 MB, 256 MB unpacked
- Unlimited members, roles and team keys
- Everything on pub.dev, mirrored

### Premium: $10 a month per team

Or $100 a year, which saves 17%.

For teams that publish a lot of packages, or big ones with assets or native code.

- Unlimited packages per team
- Archives up to 500 MB, 1 GB unpacked
- Everything in Free
- Billed through Stripe. Cancel any time.

Owners upgrade a team from its page at https://private-pub.dev/teams.

## Compare plans

Both plans have the same rate limits and checks as pub.dev, and the same roles, invites and team keys. The [package requirements](https://private-pub.dev/docs/package-requirements.md) list every limit.

|  | Free | Premium |
| --- | --- | --- |
| Price | $0 | $10 a month or $100 a year per team |
| Packages per team | Up to 10 packages | Unlimited packages |
| Archive size | 100 MB | 500 MB |
| Unpacked size | 256 MB | 1 GB |
| Members and team keys | Unlimited | Unlimited |
| Packages from pub.dev | Through the mirror | Through the mirror |

## How billing works

Premium costs $10 a month or $100 a year for each team that has it. Stripe handles every payment.

### Who pays

Plans are per team. An owner upgrades a team from its page, and everyone on it, and every one of its team keys, gets Premium. Nobody on the team needs a plan of their own.

Each team has its own plan, so upgrading one leaves your other teams, your personal team included, on the plans they were on.

### Subscribing

Upgrade to Premium on the team page shows the price and these terms, then opens Stripe Checkout to pay. Stripe charges your card the price you pick, $10 a month or $100 a year, from that day, and the team is on Premium as soon as the payment goes through.

Your card details go to Stripe and never reach this server. It only keeps the ids Stripe gives the subscription and its customer, and whether the subscription is paid up.

### How often you pay

Pick how often to pay when you upgrade. Paying $100 a year saves 17% over paying $10 a month. Owners can switch between them with Manage billing.

### Receipts and cards

Stripe emails a receipt for every payment. Manage billing on the team page opens Stripe's billing portal, where owners change the card, download invoices and cancel.

### Canceling

Cancel any time with Manage billing. The team keeps Premium until the end of the period you've paid for and is never charged again. You can undo it in the portal until then.

Deleting a team on Premium cancels its subscription right away, and the rest of the period isn't refunded. If Stripe can't cancel it, nothing is deleted.

### Failed payments

If Stripe can't take a payment, it tries again a few more times, and the team keeps Premium while it does. The team page warns its owners so one of them can update the card. If every try fails, the subscription ends and the team is back on Free.

### Going back to Free

Nothing is deleted. Every package keeps working, and the team can still publish new versions of them, but it can't add packages past 10 or publish archives over 100 MB. While it has 10 or more packages, a new one can only join it after one leaves.

### What counts as a package

Every package on the team counts, discontinued and unlisted ones too. Versions don't count, so a package can have as many as the rate limits allow. Mirrored packages belong to no team, so they never count.
