APIs · head to head
PubNub vs Starlight

PubNub
APIs
Realtime communication platform for chat, IoT, and live data apps
- From
- Free
- Free plan
- Yes

Starlight
Documentation
Documentation site framework built on Astro that ships no JavaScript to the reader by default
- From
- Free
- Free plan
- Yes
The short version
- Starlight is free; PubNub starts at $98/mo.
- Only PubNub lists pub/sub messaging; only Starlight lists pagefind search.
- Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.
How do PubNub and Starlight differ?
PubNub and Starlight differ on pricing model, platforms and category (APIs against Documentation). Only the attributes on which PubNub and Starlight actually diverge.
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: founded for Starlight.
Which features does each one have?
They share no listed features; 6 appear only for PubNub and 7 only for Starlight. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in PubNub
- Pub/sub messaging
- Presence tracking
- Message persistence
- Serverless Functions
- File sharing
- Encryption and access controls
Only in Starlight
- File based routing
- Pagefind search
- Internationalisation
- Component overrides
- Zero client JavaScript
- Expressive Code blocks
- Auto generated sidebar
What is each one used for?
PubNub is most often brought in for building realtime chat applications. The jobs each tool is most often brought in to do.
PubNub
- Building realtime chat applicationsnot Starlight
- Streaming live IoT sensor datanot Starlight
- Adding presence indicators to collaborative appsnot Starlight
- Running edge logic with serverless Functions on realtime eventsnot Starlight
Starlight
- A developer tool whose docs live in the same repository as the code and are reviewed in the same pull requestnot PubNub
- A team that already runs Astro for its marketing site and wants one build pipeline for bothnot PubNub
- Documentation that must be served from a CDN or an air gapped static host with no search backendnot PubNub
- A multilingual open source project that needs per locale content trees and untranslated page fallbacknot PubNub
Where do PubNub and Starlight fall short?
PubNub's most cited limit: free plan storage history is limited to 7 days, which is short for apps needing longer message retention. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
PubNub
- Free plan storage history is limited to 7 days, which is short for apps needing longer message retention
- MAU-based pricing means costs scale directly with user growth, which can be less predictable than flat message-based pricing
- Pro-tier custom pricing above 50,000 MAU requires contacting sales rather than self-serve checkout
Starlight
- There is no editing interface, so every correction requires a git client, a Node install and a CI run, which puts documentation changes out of reach for anyone who does not already work in a repository
- Starlight versions track Astro versions, so an Astro major release becomes a documentation site migration on someone else timeline rather than yours
- Pagefind builds the whole search index at compile time, so build duration and index size grow with page count and large documentation sets pay for it on every deploy
- There is no analytics, no feedback widget and no page level rating built in, so measuring which pages fail readers means wiring a third party script yourself
- Component overrides are limited to the slots the theme exposes, and anything outside those slots means forking the theme and inheriting the merge burden on every upgrade
How much do PubNub and Starlight cost?
PubNub has a free plan, with paid plans from $98/mo; Starlight is free to use. Plan by plan below, from each vendor's own pricing page.
PubNub
Free- FreeFree
- Up to 200 MAU or 1M transactions
- 1GB data storage (7 days)
- 5 test Serverless Functions
- Starter$98/mo
- 1,000 MAU included
- User management
- Insights
- ProOn request
- Custom MAU packages
- Volume discounts
- Enterprise-scale configurations
Starlight
Free- Open sourceFree
- MIT licence
- All features included
- Self hosted on any static host
Which should you pick?
Choose PubNub if
- You need pub/sub messaging.
- You want to start without paying.
- You work on Web, iOS, Android, API.
- You also want presence tracking.
Choose Starlight if
- You need file based routing.
- You want to start without paying.
- You work on Web, macOS, Windows, Linux.
- You also want pagefind search.
Questions people ask
- Is PubNub or Starlight better?
- It depends on the job. PubNub fits building realtime chat applications; Starlight fits a developer tool whose docs live in the same repository as the code and are reviewed in the same pull request. PubNub starts at Free and Starlight at Free.
- Which is cheaper, PubNub or Starlight?
- PubNub starts at Free and Starlight at Free.
- Does PubNub or Starlight run on more platforms?
- PubNub runs on Web, iOS, Android, API. Starlight runs on Web, macOS, Windows, Linux.
- Can I use PubNub for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is PubNub best used for?
- PubNub is most often used for building realtime chat applications, streaming live iot sensor data, adding presence indicators to collaborative apps, running edge logic with serverless functions on realtime events. Of those, building realtime chat applications and streaming live iot sensor data are not what Starlight is typically brought in for.
- What can PubNub do that Starlight cannot?
- PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions. Starlight covers File based routing, Pagefind search, Internationalisation, Component overrides.
Answered from the vendors’ own pages
PubNub: What does PubNub cost?
PubNub offers a free plan for up to 200 MAU or 1 million transactions, a Starter plan at $98/month for 1,000 MAU, and custom Pro pricing for larger volumes, e.g. around $550/month for 10,000 MAU.
SourceStarlight: Can a non technical writer publish a page without help?
No. There is no content management interface. Every change is a commit, a pull request and a build.
PubNub: Is there a free plan, and what are its limits?
Yes, the free plan supports up to 200 monthly active users or 1 million transactions, includes 1GB of data storage retained for 7 days, and requires no credit card.
SourceStarlight: Do I need to know Astro to use it?
Not for basic use. Markdown files and a config file are enough until you want custom components, at which point Astro knowledge becomes mandatory.
PubNub: How is usage metered?
PubNub bills primarily by Monthly Active Users, defined as a unique user who connects at least once in a billing cycle; messages are bundled into MAU pricing with no separate per-message fees, and overage is billed proportionally.
SourceStarlight: Is search included or do I pay for it?
Included and free. Pagefind builds a static index at compile time. Algolia DocSearch is optional if you want hosted search instead.
Starlight: What happens when Astro releases a major version?
Starlight follows it, and your site needs a migration. Read the upgrade guide before pinning a version for a long lived project.
Starlight: Can I self host with no external services?
Yes. The output is static HTML, CSS and a search index. Nothing calls out at runtime unless you add it.
Related pages
Other head to heads
- PubNub vs Pusher
- PubNub vs Ably
- PubNub vs Liveblocks
- PubNub vs Novu
- PubNub vs Courier
- PubNub vs Svix
- PubNub vs Yapily
- PubNub vs Lithic
- PubNub vs MX Technologies
- PubNub vs Increase
- PubNub vs Solaris
- PubNub vs Token.io
- PubNub vs Appwrite
- PubNub vs Bruno
- PubNub vs Marqeta
- PubNub vs Temenos Transact
- PubNub vs Apidog
- PubNub vs Microsoft Azure API Management
- PubNub vs MkDocs
- PubNub vs VitePress
- PubNub vs Fumadocs
- PubNub vs Antora
- PubNub vs Mintlify
- PubNub vs Docsify
- PubNub vs Nextra
- PubNub vs Archbee
- PubNub vs Scalar
- PubNub vs HelpDocs
- PubNub vs Confluence
- PubNub vs Nuclino
- PubNub vs Adobe RoboHelp
- PubNub vs Doxygen
- PubNub vs Guidde
- PubNub vs Tettra
- PubNub vs Guru (knowledge platform)
- PubNub vs MediaWiki
- Starlight vs Pusher
- Starlight vs Ably
- Starlight vs Liveblocks
- Starlight vs Novu
- Starlight vs Courier
- Starlight vs Svix
- Starlight vs Yapily
- Starlight vs Lithic
- Starlight vs MX Technologies
- Starlight vs Increase
- Starlight vs Solaris
- Starlight vs Token.io
- Starlight vs Appwrite
- Starlight vs Bruno
- Starlight vs Marqeta
- Starlight vs Temenos Transact
- Starlight vs Apidog
- Starlight vs Microsoft Azure API Management
- Starlight vs MkDocs
- Starlight vs VitePress
- Starlight vs Fumadocs
- Starlight vs Antora
- Starlight vs Mintlify
- Starlight vs Docsify
- Starlight vs Nextra
- Starlight vs Archbee
- Starlight vs Scalar
- Starlight vs HelpDocs
- Starlight vs Confluence
- Starlight vs Nuclino
- Starlight vs Adobe RoboHelp
- Starlight vs Doxygen
- Starlight vs Guidde
- Starlight vs Tettra
- Starlight vs Guru (knowledge platform)
- Starlight vs MediaWiki
