# Limits and numbers

> **In short.** Every number in Junco that you might hit, in one place.

## What users send

| Limit | Value |
|---|---|
| Message text | 1 to 5,000 characters |
| Ticket title | 140 characters |
| Display name (`handle`, a token's `name`) | 40 characters |
| `context` | 16 KB as JSON |
| Screenshot | PNG, JPEG or WebP, 2 MB |
| Save | 1 MB, any format |
| Log | 512 KB, UTF-8 text |
| Files a request | 3 |
| Whole request | 4 MB |

## Rates

Per 10 minutes, counted on the server; over a limit answers `429` with `Retry-After`:

| Who | Writes (new tickets, replies) |
|---|---|
| One user of one product | 20 |
| One network address | 60 |
| One product, all users | 2,000 |

Reads (`GET`): 300 a minute per network address.

## Identity

| | |
|---|---|
| Random user id (`X-Junco-Player`) | 32 to 128 characters, `A-Z a-z 0-9 _ -` |
| Signed token lifetime (`exp`) | At most 7 days ahead |
| Token `sub` | 1 to 200 characters |
| Signing algorithm | EdDSA (Ed25519) only |

## Products

| | |
|---|---|
| Web addresses per product | 20; `https://` only, `http://` for `localhost` and `127.0.0.1` |
| Knowledge | Keep under about 15,000 characters: it's read for every ticket |
| AI reply length | 1,200 characters (longer is held) |
| AI replies on one ticket before a person takes over | 4 |
| AI answers between your team's replies, on a ticket with a person | 3 |

## Your team

| | |
|---|---|
| Invite links | One use, 7 days |
| Studios per person | 1, for now |
| Seats | Unlimited unless your studio has a seat limit |
| One-time sign-in links (when moving devices or addresses) | 30 minutes |

## Keeping data

| | |
|---|---|
| Screenshots, saves and logs | Deleted after 90 days |
| Resolved and released tickets | Deleted a year after their last message |
| Users with nothing left who haven't been back | Deleted after a year |
| Encrypted backups | Up to 12 months |

## Money

| | |
|---|---|
| Starting credit | $2 |
| Credit packs | $10, $25, $50, $100 |
| Top-up fee | 10% |
| Smallest monthly cap per product | $0.50 |
| A typical ticket | $0.01 to $0.02 at cost |

## Timing

| | |
|---|---|
| The AI's first reply | Usually 3 to 8 seconds |
| Widget checks for replies | Every minute; every 10 s in an open thread; every 1.5 s while the AI writes (for 90 s) |
| GitHub issues checked for changes | Every 10 minutes, and at once by webhook |
| Widget script cache | 5 minutes |
