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.”
1. User Documentation
Section titled “1. User Documentation”The live instance is available at https://tarot.spellware.dev.
Drawing Your Card
Section titled “Drawing Your Card”- Open the page. You will see a face-down card.
- Select Draw today’s card. The card turns over.
- 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 Cards
Section titled “The Cards”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.
| Cards | Theme |
|---|---|
| Major Arcana (22 cards) | The big moments, such as refactors, outages and releases |
| Wands | Features, ambition and shipping |
| Cups | People, morale and collaboration |
| Swords | Bugs, code review and incidents |
| Pentacles | Infrastructure, tooling and maintenance |
Streaks
Section titled “Streaks”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.
Sharing
Section titled “Sharing”After you draw, you can:
- 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.
- Select Download image to save a portrait PNG of your card and forecast.
- 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.
2. Technical Documentation
Section titled “2. Technical Documentation”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.
Local Setup
Section titled “Local Setup”pnpm installpnpm dev| Script | Purpose |
|---|---|
pnpm dev | Starts the Vite dev server |
pnpm build | Type checks, then writes the production build to prod/ |
pnpm lint | Runs ESLint with zero warnings allowed |
pnpm test | Runs Vitest with coverage |
How the Draw Works
Section titled “How the Draw Works”The card is a pure function of the person and the day, so it needs no storage of its own:
- The local date is turned into a key such as
2026-12-03. - The anonymous identifier and the date key are joined and hashed with FNV-1a, then mixed so that nearby dates give unrelated numbers.
- 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.
Project Layout
Section titled “Project Layout”| Path | Contents |
|---|---|
src/data | The deck: every reading, and the line art for each Major Arcana card |
src/lib | The draw, dates, streaks, storage, SVG card and share image rendering |
src/ui | The page template, the reveal behaviour and the share controls |
src/types | Shared types |
test | The 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.
Browser Storage
Section titled “Browser Storage”The Application keeps two values in the browser’s local storage. Nothing is sent to a server by the Application itself.
| Key | Holds |
|---|---|
tarot:anonymous-id | A random identifier, made once with crypto.randomUUID() |
tarot:streak | The current streak, the best streak and the date of the last draw |
Hosting
Section titled “Hosting”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.
Shared Headers
Section titled “Shared Headers”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.
3. Legal Documentation
Section titled “3. Legal Documentation”The Application inherits SpellWare’s global legal documents:
- Privacy Policy: https://docs.spellware.dev/#/privacy
- Terms of Service: https://docs.spellware.dev/#/terms
- License: https://docs.spellware.dev/#/license
Data the Application Keeps
Section titled “Data the Application Keeps”The Application has no accounts and no server side storage. It keeps two values, in your own browser:
| Data | Kept |
|---|---|
| A random identifier | In 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 draw | In 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.
Services Loaded by the Shared Headers
Section titled “Services Loaded by the Shared Headers”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.
| Service | Purpose |
|---|---|
| Secure Privacy | The cookie consent banner |
| Google Analytics | Measuring how the site is used |
| HubSpot | Site tracking and the chat widget |
| Google AdSense | Advertising |
| Tree-Nation | The tree planting widget in the footer |
4. Contributing Documentation
Section titled “4. Contributing Documentation”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.
Development Setup
Section titled “Development Setup”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.
pnpm installpnpm lintpnpm testpnpm buildAdding or Editing a Card
Section titled “Adding or Editing a Card”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.