Skip to content

About

South African VM Comparison

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

VM Compare South Africa

The cheapest VPS and VM prices in South African data centres, compared and updated weekly.

Live site: https://vm-compare.fixes.co.za

This is a fast, static comparison site and data pipeline. It tracks public VPS/VM pricing, normalises every price to VAT-inclusive South African rand, ignores promotional teasers, and ranks plans by the resources you actually get.

Companion to the number1.co.za posts on cheapest VPS hosting in South Africa and best bang for buck VPS in 2026.


What it does

  • Homepage with the cheapest plan at 1, 2, 4, 8, 16 and 32 GB, plus a full filterable table.
  • Filters for minimum RAM, minimum vCPU, NVMe/SSD and provider, synced to the URL.
  • Generated SEO landing pages such as /cheapest-4gb-vps-south-africa/.
  • Provider pages with plans, features, reputation notes and a price-history chart.
  • Separate international comparison for South Africa and Europe regions: Vultr, Akamai/Linode, AWS, Google Cloud, DigitalOcean, OVHcloud, IONOS, HostKey, Advin Servers, Euronodes, Leaseweb, Webdock, Contabo, netcup, Hetzner, Scaleway, UpCloud, Aruba Cloud and Kamatera, with search, filters and month-to-month pricing.
  • Weekly scraper that stores dated snapshots per provider and keeps last-known prices if a page breaks.
  • Provider requests go through GitHub Discussions: https://github.com/aral190/vm-compare/discussions. No newsletter backend.

Stack

  • Astro static output, hand-written CSS, one small vanilla JS filter island.
  • TypeScript + Zod for the shared plan schema.
  • fetch + cheerio for static pages; reader-proxy fallback for Cloudflare-protected pages.
  • GitHub Actions for the weekly scrape and GitHub Pages deploy.
  • Data lives in data/ as reviewed JSON committed to git.

Quick start

npm install
npm run dev          # http://localhost:4321
npm run build        # static output in dist/
npm run preview      # preview the production build

Useful checks:

npm run validate     # validate providers, plans and history
npm run check        # Astro + TypeScript diagnostics
npm test             # VAT normalisation tests
npm run scrape:dry   # scrape and print plans without writing
npm run scrape       # update plans.json, history and snapshots

npm run seed is only for bootstrapping the first dataset from data/seed.json. After that, npm run scrape is the source of truth.

Data model

  • data/providers.json — provider catalogue, URL, locations, VAT treatment, adapter and features. A provider may set feedUrl when prices come from a machine-readable endpoint separate from its public pricing page.
  • data/plans.json — current normalised plans, generated by the scraper.
  • data/seed.json — bootstrap plans and the manual fallback for archived providers.
  • data/history/<provider>.json — dated price snapshots.
  • data/snapshots/<date>.json — raw scrape results for debugging.
  • data/overrides.json — manual corrections, matched by plan id.

Money is stored as integer rand cents. Every plan keeps both priceInclVatCents (the canonical comparison price) and priceAsListedCents (what the provider advertised).

VAT rules

  • vat: "incl" — keep the price.
  • vat: "excl" — multiply by 1.15.
  • vat: "unknown" — assume exclusive, multiply by 1.15, flag the plan with vatAssumed.
  • The UI shows the as-listed price and a * on assumed rows.

Scraper behaviour

  • One adapter/parser per provider in scripts/adapters/.
  • Promotions are ignored; recurring monthly prices are used.
  • If a provider page fails, its plans are marked stale and the last-known price is kept.
  • If every provider fails, plans.json is left untouched.
  • Plans that disappear from a provider page are marked stale; archived plans stay archived.

Outbound links

External provider and partner links get a single utm_source parameter:

utm_source=vm-compare.fixes.co.za

The default is set in src/lib/utm.ts and can be changed with the PUBLIC_UTM_SOURCE environment variable (see .env.example) in .env or the build environment. Internal links and URLs that already have a utm_source are left unchanged.

Adding a provider

  1. Add the provider to data/providers.json with adapter: "html" (or manual).
  2. Add a parser in scripts/adapters/parsers.ts and register it in PARSERS.
  3. Run npm run scrape:dry -- --provider=<slug> and check the output.
  4. Run npm run scrape, then npm run validate, npm run check and npm test.
  5. Add the provider to the footer if it should appear in the short list.

If a site is JS-heavy or bot-protected, set fetchMode: "jina" (reader proxy) or implement the Playwright branch in scripts/adapters/index.ts. If the prices are rendered from a separate JSON endpoint, set feedUrl to that endpoint and keep pricingUrl as the public page linked from the site.

Deployment

GitHub Pages, deployed by .github/workflows/deploy.yml on every push to main. The weekly update runs from .github/workflows/update.yml every Monday at 04:00 UTC (06:00 SAST).

Telegram notifications

Both workflows send a Telegram message after each run with the overall status, branch, commit and a link to the run. The weekly update also reports the outcome of the scrape, validation, build and deploy steps.

The message is sent by .github/actions/telegram-notify and is skipped automatically when the secrets are not configured, so forks and local runs are unaffected.

To enable it:

  1. Create a bot with @BotFather and copy the token.
  2. Send the bot a message, then find the chat ID (for example with https://api.telegram.org/bot<token>/getUpdates).
  3. Add both values as repository secrets under Settings → Secrets and variables → Actions:
    • TELEGRAM_BOT_TOKEN — the bot token from BotFather.
    • TELEGRAM_CHAT_ID — the chat or group ID to post into.

No workflow changes are needed afterwards; the next build or weekly update will post a message.

GitHub Pages settings

  • Source: GitHub Actions
  • Custom domain: vm-compare.fixes.co.za
  • Enforce HTTPS: on after the certificate is issued

DNS

At the DNS provider for fixes.co.za:

Type Name Value
CNAME vm-compare aral190.github.io

public/CNAME contains vm-compare.fixes.co.za so the custom domain survives every deploy.

Project structure

src/
  components/       Filter bar, price table, winner cards, sparkline
  layouts/          Base layout with SEO and JSON-LD
  lib/              Data loading, formatting, features, site constants
  pages/            Homepage, tier pages, provider pages, methodology, FAQ
  styles/           Global design system
scripts/
  adapters/         Per-provider parsers and fetch layer
  scrape.ts         Weekly scrape CLI
  normalize.ts      VAT and plan normalisation
  validate.ts       Data validation
  seed.ts           One-time bootstrap from seed.json
data/               Providers, plans, history, snapshots, overrides
public/             CNAME, robots.txt, favicon, OG image

Methodology

The full methodology is on the live site at https://vm-compare.fixes.co.za/methodology/:

  • VAT is normalised to 15% inclusive.
  • First-month and limited-time promotions are ignored.
  • Ranking is by absolute monthly price by default, with price per GB RAM as a value view.
  • Qualitative factors (NVMe, backups, support, location) are shown as badges and notes rather than hidden in an opaque score.

Licence

Source is public for transparency. Provider prices remain the property of their respective providers.

About

South African VM Comparison

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages