Skip to content
Tarot of the Day for Developers

Tarot of the Day for Developers

Tarot of the Day for Developers (hereinafter the “Application”) is a free web app that deals you one tarot card a day, with a short, light-hearted forecast for your working day. A draw looks like “The Tower: you will refactor today.”

The live instance is available at https://tarot.spellware.dev.

  1. Open the page. You will see a face-down card.
  2. Select Draw today’s card. The card turns over.
  3. Read your forecast and the line of advice beneath it.

You get one card each day, and it does not change if you reload the page or come back later. Your card changes at midnight in your own time zone. Each person is dealt their own card, so a friend will usually draw something different.

The deck has all 78 cards. Each card has two readings, one for when it is upright and one for when it is reversed. About four in ten draws are reversed, and a reversed card is drawn upside down and gives a different forecast, usually a funnier one.

CardsTheme
Major Arcana (22 cards)The big moments, such as refactors, outages and releases
WandsFeatures, ambition and shipping
CupsPeople, morale and collaboration
SwordsBugs, code review and incidents
PentaclesInfrastructure, tooling and maintenance

The Application counts the days in a row that you have drawn a card, and the best run you have had. If you miss a day, the streak starts again at one. The page also shows how long remains until your next card.

After you draw, you can:

  1. Select Share to send an image of your card and forecast through your device’s share menu. If your browser has no share menu, the text is copied instead.
  2. Select Download image to save a portrait PNG of your card and forecast.
  3. Select Copy text to copy your forecast and a link to the Application.

The image is made in your browser. It is not uploaded anywhere.

Why Do I Get a Different Card on Another Device?

Section titled “Why Do I Get a Different Card on Another Device?”

Your card is worked out from a random identifier kept in your browser, together with today’s date. A different browser, a different device, or cleared site data gives you a different identifier, so you will be dealt a different card and your streak starts again. If your browser blocks local storage, the identifier only lasts for your visit, so reloading may deal you a new card.

The Application is a static single page app written in TypeScript with Vite and no UI framework. There is no server component and no database.

Terminal window
pnpm install
pnpm dev
ScriptPurpose
pnpm devStarts the Vite dev server
pnpm buildType checks, then writes the production build to prod/
pnpm lintRuns ESLint with zero warnings allowed
pnpm testRuns Vitest with coverage

The card is a pure function of the person and the day, so it needs no storage of its own:

  1. The local date is turned into a key such as 2026-12-03.
  2. The anonymous identifier and the date key are joined and hashed with FNV-1a, then mixed so that nearby dates give unrelated numbers.
  3. The hash seeds a mulberry32 generator. The first number picks the card out of the 78. The second decides whether it is reversed, which happens when it is below 0.4.
PathContents
src/dataThe deck: every reading, and the line art for each Major Arcana card
src/libThe draw, dates, streaks, storage, SVG card and share image rendering
src/uiThe page template, the reveal behaviour and the share controls
src/typesShared types
testThe Vitest suites, with a 100% coverage threshold

Every card, including the card back and the share image, is drawn as SVG. The share image is rasterised to a PNG in the browser with a canvas.

The Application keeps two values in the browser’s local storage. Nothing is sent to a server by the Application itself.

KeyHolds
tarot:anonymous-idA random identifier, made once with crypto.randomUUID()
tarot:streakThe current streak, the best streak and the date of the last draw

pnpm build writes a static site to prod/. nginx serves that directory at tarot.spellware.dev, as configured in the nginx-configs repository. The page is sent with Cache-Control: no-cache, and the content hashed files in assets/ are cached for a year. An unknown path returns a 404 and is sent to the company 404 page.

index.html loads the shared SpellWare headers script from https://cdn.spellware.dev/headers/index.js, with no features excluded. It adds the SpellWare header and footer, the page metadata and icons, the community popup, and the services listed in the legal section below. The Application’s own styles use the shared design tokens (--foreground, --accent and so on) and the nhc- component classes, so that it matches the rest of the site. The page title beside the logo is set with data-nhcarrigan-title on the html element.

The Application inherits SpellWare’s global legal documents:

  1. Privacy Policy: https://docs.spellware.dev/#/privacy
  2. Terms of Service: https://docs.spellware.dev/#/terms
  3. License: https://docs.spellware.dev/#/license

The Application has no accounts and no server side storage. It keeps two values, in your own browser:

DataKept
A random identifierIn your browser’s local storage, so that you are dealt the same card all day. It is not linked to your name or any account
Your streak and the date of your last drawIn your browser’s local storage, until you clear your site data

Your forecast and the share image are made in your browser. Sharing is done through your own device, so the Application never receives your image.

Like our other websites, the page loads the shared SpellWare headers script, which loads the following services. A consent banner asks for your choices. Their use of your data is covered by the Privacy Policy and by each provider’s own terms.

ServicePurpose
Secure PrivacyThe cookie consent banner
Google AnalyticsMeasuring how the site is used
HubSpotSite tracking and the chat widget
Google AdSenseAdvertising
Tree-NationThe tree planting widget in the footer

The Application’s repository is private, and it does not accept code contributions. Feedback and bug reports are welcome in the #bug-reports and #feature-requests forum channels in our Discord community.

For maintainers, the project uses:

  • TypeScript with the shared ESLint and TypeScript configs, and a zero warnings policy.
  • Vitest for tests, with 100% coverage enforced.
  • pnpm for package management.
Terminal window
pnpm install
pnpm lint
pnpm test
pnpm build

The readings live in src/data. The Major Arcana are in majorReadings.ts, and each suit has its own file. A reading is a short forecast that completes the sentence “The Tower: …”, followed by one or two sentences of advice. The deck tests check that every card has both readings, that no prompt ends in punctuation, that the copy uses British spelling and avoids dashes, and that every headline fits on the share image.