Skip to content

feat: Generate pricing.md from billing API data#16115

Merged
rafaeelaudibert merged 1 commit intomasterfrom
rafa/03-31-feat-generate-pricing.md-from-billing-api-data
Apr 2, 2026
Merged

feat: Generate pricing.md from billing API data#16115
rafaeelaudibert merged 1 commit intomasterfrom
rafa/03-31-feat-generate-pricing.md-from-billing-api-data

Conversation

@rafaeelaudibert
Copy link
Copy Markdown
Member

@rafaeelaudibert rafaeelaudibert commented Apr 1, 2026

Changes

Added automatic generation of a comprehensive pricing.md file that fetches real-time pricing data from the billing API and formats it for both human and LLM consumption.

The generated pricing file includes:

  • Complete product pricing with tiered volume discounts displayed in formatted tables
  • Product descriptions and billing units for all PostHog products (Product Analytics, Session Replay, Feature Flags, Surveys, Error Tracking, Data Warehouse, Realtime Destinations)
  • Product add-ons and platform packages with their respective pricing
  • Volume discount structure for annual commitments with transparent discount percentages
  • Special discount programs (startups, Y Combinator, nonprofits, self-serve annual)
  • Clear definitions of billing units (events, recordings, requests, etc.)
  • Explanation of Free vs Paid plan differences

The pricing data is fetched from the billing service API during the build process, ensuring the documentation stays current with actual pricing. Error handling is included to prevent build failures if the API is unavailable.

This file is not automatically built because we use the MINIMAL version in CI. You can find a dump of what it looks like here: https://gist.github.com/rafaeelaudibert/f10254fcd4f48edb148743f25eaa55ad

You can also run pnpm build && cat public/pricing.md locally to see it by yourself.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Apr 01, 2026 01:45AM

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor

@gewenyu99 gewenyu99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worksssss

@rafaeelaudibert rafaeelaudibert merged commit 118a467 into master Apr 2, 2026
24 checks passed
@rafaeelaudibert rafaeelaudibert deleted the rafa/03-31-feat-generate-pricing.md-from-billing-api-data branch April 2, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants