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

tarotap

v1.2.1

Published

Complete 78-card Tarot deck library with 12-language support (EN/DE/ES/FR/IT/JA/KO/NL/PT/RU/TW/ZH) and TypeScript

Readme

Tarotap - Tarot Card Library

Complete 78-card Tarot deck library

Features

  • Complete 78 tarot cards (22 Major Arcana + 56 Minor Arcana)
  • Multi-language support (English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Portuguese, Russian, Traditional Chinese, Simplified Chinese)
  • Random card drawing
  • Search cards by name or ID
  • Filter by Major/Minor Arcana and suits
  • Zero dependencies

Installation

npm install tarotap

Usage

import { getRandomCard, drawCards, getCardById, getMajorArcana, TarotCard } from 'tarotap';

// Get a random card (English by default)
const card: TarotCard = getRandomCard();
console.log(card.name); // "The Fool"

// Get a random card in German
const cardDE: TarotCard = getRandomCard('de');
console.log(cardDE.name); // "Der Narr"

// Get a random card in Spanish
const cardES: TarotCard = getRandomCard('es');
console.log(cardES.name); // "El Loco"

// Get a random card in French
const cardFR: TarotCard = getRandomCard('fr');
console.log(cardFR.name); // "Le Mat"

// Get a random card in Italian
const cardIT: TarotCard = getRandomCard('it');
console.log(cardIT.name); // "Il Matto"

// Get a random card in Japanese
const cardJA: TarotCard = getRandomCard('ja');
console.log(cardJA.name); // "愚者"

// Get a random card in Korean
const cardKO: TarotCard = getRandomCard('ko');
console.log(cardKO.name); // "바보"

// Get a random card in Dutch
const cardNL: TarotCard = getRandomCard('nl');
console.log(cardNL.name); // "De Dwaas"

// Get a random card in Portuguese
const cardPT: TarotCard = getRandomCard('pt');
console.log(cardPT.name); // "O Louco"

// Get a random card in Russian
const cardRU: TarotCard = getRandomCard('ru');
console.log(cardRU.name); // "Шут"

// Get a random card in Traditional Chinese
const cardTW: TarotCard = getRandomCard('tw');
console.log(cardTW.name); // "愚者"

// Get a random card in Simplified Chinese
const cardZH: TarotCard = getRandomCard('zh');
console.log(cardZH.name); // "愚人"

// Draw multiple cards
const cards: TarotCard[] = drawCards(3, false, 'ja');

// Get specific card
const fool: TarotCard | null = getCardById('the-fool', 'en');

// Get Major Arcana in Korean
const majorArcana: TarotCard[] = getMajorArcana('ko');

CommonJS:

const tarotap = require('tarotap');
const card = tarotap.getRandomCard('de');

API

  • getAllCards(language?) - Get all 78 cards
  • getCardById(id, language?) - Get card by ID
  • getRandomCard(language?) - Get random card
  • drawCards(count, allowDuplicates?, language?) - Draw multiple cards
  • getMajorArcana(language?) - Get Major Arcana cards
  • getMinorArcana(language?) - Get Minor Arcana cards
  • getCardsBySuit(suit, language?) - Get cards by suit
  • searchCards(query, language?) - Search cards

Languages: 'en' (English), 'de' (German), 'es' (Spanish), 'fr' (French), 'it' (Italian), 'ja' (Japanese), 'ko' (Korean), 'nl' (Dutch), 'pt' (Portuguese), 'ru' (Russian), 'tw' (Traditional Chinese), 'zh' (Simplified Chinese)

Card Format

{
  "id": "the-fool",
  "name": "The Fool"
}

Live Demo

Try it at Tarotap.com

License

MIT


Made with ❤️ by the Tarotap Team - Bringing ancient wisdom to the digital age