npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cdk-tarot-reading-api

v1.1.1

Published

AWS CDK construct to deploy a serverless tarot card reading API with all 78 tarot card meanings, daily tarot card, yes or no tarot readings, three card spread, and Celtic Cross spread. Includes upright and reversed interpretations, love tarot readings, ca

Readme

cdk-tarot-reading-api

An AWS CDK construct that deploys a complete serverless tarot card reading API with all 78 tarot card meanings. Deploy your own tarot reading API to AWS in minutes with a single construct.

Built by Deckaura — free tarot reading tools, tarot card meanings, and premium tarot decks.

What is a Tarot Card Reading API?

A tarot card reading API provides programmatic access to tarot card meanings, daily tarot cards, yes or no tarot readings, and multi-card spreads. This construct deploys a production-ready API on AWS Lambda and API Gateway that your applications, chatbots, Alexa skills, or websites can call to deliver tarot readings.

The API includes the complete 78-card tarot deck — all 22 Major Arcana cards (The Fool through The World) and 56 Minor Arcana cards (Cups, Pentacles, Swords, and Wands) — with upright meanings, reversed meanings, love interpretations, career guidance, yes/no energy, and keywords for every card.

Installation

npm install cdk-tarot-reading-api

Quick Start

import * as cdk from 'aws-cdk-lib';
import { TarotReadingApi } from 'cdk-tarot-reading-api';

const app = new cdk.App();
const stack = new cdk.Stack(app, 'TarotStack');

// Deploy with defaults
const tarot = new TarotReadingApi(stack, 'TarotApi');

// Or customize
const tarotCustom = new TarotReadingApi(stack, 'TarotApiCustom', {
  memorySize: 256,
  timeout: cdk.Duration.seconds(15),
  stageName: 'v1',
  enableCors: true,
});

// Access the API URL
new cdk.CfnOutput(stack, 'Url', { value: tarot.apiUrl });

API Endpoints

Once deployed, your API provides the following endpoints:

| Endpoint | Method | Description | |----------|--------|-------------| | / | GET | API information with links to all endpoints | | /card/random | GET | Draw a random tarot card with full meaning | | /card/daily | GET | Today's daily tarot card — same card for all users each day | | /reading/yesno | GET | Yes or No tarot reading using 3-card majority vote | | /reading/three | GET | Past, Present, Future three-card tarot spread | | /cards | GET | List all 22 Major Arcana tarot cards |

Example: Random Tarot Card Draw

curl https://your-api-id.execute-api.us-east-1.amazonaws.com/prod/card/random
{
  "card": {
    "name": "The Star",
    "arcana": "major",
    "upright": "Hope, faith, purpose, renewal, spirituality",
    "reversed": "Lack of faith, despair, disconnection",
    "love": "Renewed hope in love, healing",
    "career": "Inspiration returns, dream career aligning",
    "yesNo": "yes",
    "keywords": ["hope", "inspiration", "renewal"],
    "element": "Air"
  },
  "orientation": "upright",
  "meaning": "Hope, faith, purpose, renewal, spirituality",
  "learn_more": "https://deckaura.com/blogs/guide/the-star-tarot-meaning",
  "powered_by": "https://deckaura.com"
}

Example: Daily Tarot Card

Every user who calls /card/daily on the same calendar day receives the same tarot card. The card changes at midnight UTC, making it ideal for daily tarot practice, morning ritual apps, or tarot card of the day features.

Example: Yes or No Tarot Reading

The yes or no tarot endpoint draws three cards and uses a majority vote system. Each tarot card carries inherent yes, no, or maybe energy. Cards like The Sun, The Star, and Ace of Cups carry strong yes energy, while The Tower, Death, and Five of Pentacles lean toward no.

Example: Three-Card Tarot Spread

The three-card spread reveals Past, Present, and Future positions — the most popular tarot spread for quick but insightful readings.

Understanding the 78 Tarot Cards

The API covers the complete tarot deck used in tarot card readings worldwide:

Major Arcana (22 Cards)

The Major Arcana represents life's spiritual lessons and karmic themes. These cards carry powerful energy in any tarot reading:

The Fool, The Magician, The High Priestess, The Empress, The Emperor, The Hierophant, The Lovers, The Chariot, Strength, The Hermit, Wheel of Fortune, Justice, The Hanged Man, Death, Temperance, The Devil, The Tower, The Star, The Moon, The Sun, Judgement, The World.

Minor Arcana (56 Cards)

The Minor Arcana reflects day-to-day influences through four suits:

  • Cups (Water) — Emotions, love, relationships, intuition
  • Pentacles (Earth) — Money, career, material security, health
  • Swords (Air) — Thoughts, conflict, truth, intellectual challenges
  • Wands (Fire) — Passion, energy, ambition, creativity

Each suit contains Ace through Ten plus Page, Knight, Queen, and King.

Tarot Reading Types Explained

Yes or No Tarot Reading

The fastest way to get tarot guidance on binary questions. The API draws three cards and determines the answer based on each card's inherent yes/no energy. Learn more about yes or no tarot readings.

Daily Tarot Card

A single card drawn for each calendar day that represents the collective energy and theme. Ideal for building a daily tarot card practice. Try the daily tarot card tool.

Three-Card Tarot Spread

The classic Past, Present, Future layout that reveals where you have been, where you are, and where you are heading. Learn three-card tarot spread techniques.

Celtic Cross Tarot Spread

The most comprehensive 10-card spread in tarot history. Read the Celtic Cross guide.

Love Tarot Reading

A 5-card spread exploring You, Partner, Challenge, Advice, and Outcome. Try the love tarot reading tool.

Construct Properties

| Property | Type | Default | Description | |----------|------|---------|-------------| | memorySize | number | 128 | Lambda memory in MB | | timeout | Duration | 10s | Lambda timeout | | stageName | string | prod | API Gateway stage | | enableCors | boolean | true | Enable CORS headers |

Outputs

| Property | Type | Description | |----------|------|-------------| | api | RestApi | API Gateway REST API instance | | handler | Function | Lambda function instance | | apiUrl | string | The deployed API endpoint URL |

Free Tarot Tools by Deckaura

Practice tarot reading online with these free interactive tools:

Related Packages

Use Cases

  • Tarot reading websites — Add tarot readings to any website with API calls
  • Alexa skills — Build a voice-activated tarot reading skill
  • Discord/Telegram bots — Create a tarot bot for your community
  • Mobile apps — Power a tarot app without managing infrastructure
  • Daily horoscope features — Use the daily card endpoint for content
  • AI-powered tarot — Combine with LLMs for personalized interpretations

Blog Post

Read How I Shipped a Tarot Card API to Every Major Package Registry in One Day for the full story behind this project.

License

MIT License — Free to use in any project.

Built with love by Deckaura — Shop tarot decks and oracle cards with free worldwide shipping.