Not affiliated with Airbnb. HostStats is an independent open-source tool.
A privacy-first dashboard that tells Airbnb hosts what Airbnb's own dashboard can't: what the listing actually earns after costs, how many nights a month it takes to break even, and how much money short gaps between stays are costing. Upload your Airbnb CSV exports — they are processed locally in your browser and never sent to any server. Pasting a calendar link is the one optional exception: it is fetched through a small pass-through proxy that stores and logs nothing.
Live: https://hoststats.brignano.io
- ✅ "What to do now": the gap nights to open up, the month falling behind last year, the pricing deadline coming up — at the top, each linking to the detail
- 💵 Profit after your costs, month by month — enter what the place costs to run (monthly and per stay)
- ⚖️ Break-even: booked nights a month needed to cover costs, against what you actually average
- 🕳️ Gap nights: 1–2 night holes stranded between stays, what they cost you, and upcoming ones you can still sell
- 📊 Occupancy % by month (empty months count toward the average)
- 📅 Booked nights by day of week
- 💰 Earnings by month (when earnings CSV is uploaded)
- 📱 Mobile-friendly, large-print dashboard
- 🔒 Privacy-first: all processing happens in your browser
- 📈 Pace: nights on the books for the next three months against the same day last year, plus how far ahead guests book and when to have each month's prices set
- 🧾 Tax season: yearly rents received and fair rental days (Schedule E lines 3 and 2), flags for the 14-day and 7-night thresholds, and a per-stay CSV for your accountant
- 💾 Optionally remember your import and your costs on this device, so you don't upload again (browser storage only, guest names never saved, untick to delete)
- 🔗 Paste a listing's Airbnb calendar link to see upcoming stays and the gap nights you can still sell (Airbnb has no public API or OAuth, so this is the no-CSV route)
- 📁 Upload multiple files at once
- 👀 Try it with example data before hunting down your exports
- 📲 Installable on a phone home screen
You'll need to export CSVs from your Airbnb hosting dashboard. Here's how:
- Go to airbnb.com/hosting/reservations
- Click "Export to CSV" (usually a download icon near the top right)
- Save the file — it will be named something like
reservations.csv
- Go to airbnb.com/hosting/payments
- Select "Transaction History" or "Earnings"
- Click "Export" or "Download CSV"
- Save the file
Tip: Airbnb's export formats may change. HostStats uses flexible column detection to handle variations.
- Node.js 22+ (see
.nvmrc) — Wrangler requires Node 22 - npm (comes with Node.js)
# Clone the repo
git clone https://github.com/brignano/hoststats.git
cd hoststats
# Install dependencies
npm install
# Start the dev server
npm run devOpen http://localhost:3000 in your browser.
npm run build # Static export to ./out
npm run lint # Run ESLint
npm run typecheck # tsc --noEmit
npm test # Run Jest unit tests
npm run test:e2e # Browser + accessibility tests against ./out (build first;
# needs `npx playwright install chromium` once)
npm run format # Format with Prettier
npm run preview # Build, then serve via Wrangler locally
npm run deploy # Build, then deploy to Cloudflare
npm run proof # Re-capture the product page's dashboard screenshots
# (build first; writes public/dashboard-{light,dark}.png)HostStats is hosted on Cloudflare Workers static assets and is open to anyone — there are no accounts.
npx wrangler login
npm run deployPushes to main deploy automatically through Cloudflare's own Git integration
(Workers Builds), and every pull request gets a preview URL.
Full walkthrough — custom domain, optional sign-in, and the gotchas — is in docs/DEPLOYING.md.
Deploying and releasing are separate: main goes live on every merge, while a
tag marks a named point you can come back to.
GitHub Releases is where
changes are documented. Anyone tracking HostStats reads the release page to see
what is new — so the notes are written by hand, for that reader, and there is no
CHANGELOG.md duplicating them.
- Bump
versioninpackage.jsonand merge it tomain. - Go to Releases → Draft a new release.
- Under Choose a tag, type the new tag (
v0.2.0) and pick Create new tag on publish. Generate release notes gives you the merged PRs since the last tag — raw material, not the notes. - Rewrite it into what someone using HostStats would want to know, and publish.
Publishing creates the tag, which starts
.github/workflows/release.yml. That job verifies, it does not create: it
re-runs lint, typecheck, the three timezone test passes and the build against
the tagged tree, and fails if the tag and package.json version disagree — a
mismatch that is invisible once a release page exists. The check lands after
publication, so treat a red run as "pull that release", not "the release was
blocked".
The site is two surfaces sharing one design system:
| Route | What it is | Tier |
|---|---|---|
/ |
The product page — what HostStats is and why | marketing |
/app/ |
The tool: upload, then the dashboard | tool |
/privacy/, /terms/ |
Policy pages | tool |
/ opts into the marketing tier (tier-marketing) on its own wrapper, so the
tool keeps the compact scale it wants — see src/app/globals.css, and §2 and
§13 of DESIGN.md in @brignano/design.
src/
├── app/ # Next.js App Router pages
│ ├── page.tsx # The product page (server component, no client JS)
│ ├── app/ # The tool: upload screen + dashboard
├── components/ # UI components (charts, cards, upload)
├── lib/
│ ├── models.ts # Canonical data types
│ ├── dates.ts # Timezone-safe date parsing
│ ├── format.ts # Human-readable number formatting
│ ├── calculations.ts # Stats computations
│ ├── features.ts # Product-page copy, checked against the sample data
│ └── importers/ # CSV parsers (reservations + earnings)
└── __tests__/ # Jest unit tests
public/samples/ # Example CSVs powering the in-app demo
scripts/ # capture-proof.mjs — the product page's screenshots
fixtures/ # Sample CSV files for testing
docs/DEPLOYING.md # Cloudflare hosting + optional Access sign-in guide
wrangler.jsonc # Cloudflare Workers config
npm testTests cover:
- CSV format detection (reservations vs. earnings)
- CSV parsing with the sample fixture files
- Calculation logic (occupancy %, weekday distribution, revenue)
- Timezone-safe date parsing
- Display formatting
CI runs the suite under UTC, America/New_York and Pacific/Auckland,
because the CSVs carry calendar dates with no timezone and the stats must not
drift either side of UTC.
All CSV processing happens locally in your browser. No files are uploaded to any server. No analytics or tracking.
Nothing is written to your device unless you tick Remember my data on this device. With it ticked, the stays and payouts from your import are kept in that browser's IndexedDB and your two cost figures in its local storage — on that device only, never sent anywhere. Guest names are stripped out before anything is stored, because HostStats never displays or uses them. Unticking deletes both immediately.
The one exception is a calendar link you choose to paste: it is fetched through a small pass-through proxy that only fetches Airbnb calendar addresses and stores and logs nothing.
MIT — see LICENSE.
HostStats is not affiliated with, endorsed by, or sponsored by Airbnb, Inc.