Skip to content

Latest commit

 

History

108 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Tarot Logo

🔮 魔法塔罗牌 - 每日占卜 | Magic Tarot

Chrome Web Store Users Rating
English | 中文

Available in the Chrome Web Store


🔮 Magic Tarot - Daily Divination

A comprehensive tarot divination Chrome extension bringing the wisdom of 8 tarot decks and 40+ spread layouts right to your browser. Whether you seek daily guidance, relationship insights, career advice, or spiritual growth, Magic Tarot offers a complete toolkit for self-reflection and divination.

✨ Features

  • 8 Premium Decks: Magic, Rider-Waite, Marseille, Thoth, Angel, Healing, Osho Zen (79 cards), and Stellar Tarot — each with unique artwork and interpretations
  • 40+ Spread Layouts: From simple single-card draws to the full Celtic Cross, organized into 9 categories for every life situation
  • Daily Fortune: Auto-generated daily tarot reading with a fresh card each day
  • Lucky Number Generator: Generate random lucky numbers with tarot-based interpretations
  • Dilemma Helper: Three decision-making tools — rock-paper-scissors, dice rolling, and tarot card draw
  • Bilingual Interface: Full Chinese and English localization, switchable anytime
  • Reading History: Review your past tarot readings, filtered by date
  • Card Collection: Save and organize your favorite cards with personal notes
  • Reading Modes: Choose from Simple, Standard, or Deep interpretation levels
  • Extended Analysis: Additional insights including historical analysis, timing dimensions, and personality analysis
  • AI Deep Reading: Powered by your own AI provider, generates a structured, in-depth reading (overall energy, per-card analysis, insights, actionable steps, and a one-line summary) with elegant typography and serif headings
  • AI Follow-up Q&A: Ask follow-up questions in a multi-turn conversation; the full reading and follow-up thread persist after closing and reopening the popup
  • Custom Card Meanings: Edit and personalize your card interpretations
  • Sound Effects: Optional card-flipping sound effects (toggle on/off)
  • Card Preview: Click to view full card details, meanings, and symbolism
  • Share Results: Copy and share your reading results with friends
  • Dark Magic Theme: Beautiful dark-themed UI with responsive design

🎴 Supported Decks

Deck Cards Style Description
Magic 🪄 78 Fantasy Magic Magical themed tarot cards with enchanting artwork
Rider-Waite 📖 78 Classic The most widely used tarot deck worldwide
Marseille 🏛️ 78 Traditional Historic Marseille tarot with medieval symbolism
Thoth 78 Esoteric Aleister Crowley's Thoth tarot with astrological associations
Angel 👼 78 Spiritual Angel-themed cards with gentle, uplifting guidance
Healing 💚 78 Therapeutic Healing-focused cards for emotional wellness
Osho Zen 🧘 79 Enlightenment Based on Osho's Zen wisdom — focuses on the present moment (the only deck with 79 cards)
Stellar 🌟 78 Cosmic Starry universe theme with astrological constellations

📋 Supported Spreads (40+)

Beginner & Classic

Spread Cards Purpose
Single Card 1 Quick daily guidance
Three Card Spread 3 Past, Present, Future
Problem-Action-Result 3 Situation analysis
Yes/No Spread 1 Simple binary answers

Relationships & Emotions

Spread Cards Purpose
Relationship Spread 5 Love and relationship insights
Lovers Spread 7 Deep relationship analysis
Reconciliation Spread 5 Guidance for getting back together
Family Relations 5 Family dynamics understanding
Friendship Spread 3 Friendship guidance
Emotional Patterns 6 Explore emotional patterns

Decisions & Analysis

Spread Cards Purpose
Two Options 2+2 Binary choice analysis
Pros & Cons 6 Weighing advantages and disadvantages
Crossroads 5 Multi-path decision guidance
Stay or Leave 6 Major life decisions
Decision Tree 7 Hierarchical decision analysis
Five Card Spread 5 General decision making

Life & Daily

Spread Cards Purpose
Travel Spread 4 Travel guidance
Finance & Investment 5 Financial decisions
Lost & Found 4 Guidance for finding lost items
Health Spread 5 Health and wellness insights
New Skill Learning 4 Learning path guidance
Daily Habit Optimization 3 Habit improvement

Fortune & Prediction

Spread Cards Purpose
Monthly Fortune 4+ Month-ahead forecast
Flow of Time 4 Temporal progression reading
Wheel of Fortune 5 Destiny and timing
Yearly Forecast 12 Full year prediction
Weekly Fortune 7 Week-ahead guidance
Four Seasons 4 Seasonal energy reading

Advanced & Deep

Spread Cards Purpose
Celtic Cross 10 Comprehensive life reading (the classic)
Horseshoe Spread 7 Detailed situation analysis
Zodiac Spread 12 All 12 houses astrological influence
Annual Prediction 12 12-month detailed forecast
Forgiveness Spread 6 Healing and forgiveness
Tree of Life 10 Kabbalistic life wisdom

Career & Education

Spread Cards Purpose
Career Spread 5 Career direction guidance
Job Change 6 Guidance for changing jobs
Exam Spread 4 Academic exam preparation
Office Relations 4 Workplace relationship insights
Side Hustle 5 Side business exploration
Startup Feasibility 7 Entrepreneurship guidance

Self & Personal Growth

Spread Cards Purpose
Soul Spread 5 Inner soul exploration
Decluttering 4 Letting go and simplifying
Shadow Work 6 Confronting the shadow self
Self-Worth 5 Building self-esteem
Inner Child Healing 6 Childhood wound healing
Dream Interpretation 4 Dream analysis guidance

Spiritual Growth

Spread Cards Purpose
Life Purpose 8 Find your life mission
Soul Journey 9 Spiritual path exploration
Past Lives 5 Karmic past life insights
Creative Inspiration 4 Unlock creative potential
Higher Self Connection 5 Connect with higher consciousness
Chakra Balance 7 7 chakra energy alignment

🎲 Extra Tools

Tool Description
Daily Fortune 🌅 Auto-generated daily card with personalized interpretation
Lucky Number Generator 🔢 Generate random numbers within a custom range, with tarot interpretation
Dilemma Helper 🤔 Three ways to help with decisions: rock-paper-scissors, dice rolling, or tarot card draw

📦 Installation

From Chrome Web Store (Recommended)

Available in the Chrome Web Store

Manual Installation (Developer Mode)

  1. Clone the repository
    git clone https://github.com/vaxicy/tarot-chrome-extension.git
  2. Open Chrome and navigate to chrome://extensions/
  3. Enable "Developer mode" (top right corner)
  4. Click "Load unpacked" and select the cloned folder
  5. The extension icon will appear in your Chrome toolbar

🚀 Quick Start

  1. Click the Magic Tarot icon in your Chrome toolbar
  2. Select your preferred tarot deck from the 8 available options
  3. Choose your language (Chinese/English)
  4. Pick a spread layout from the categorized list
  5. Click "Draw Cards" to shuffle and reveal
  6. Click on individual cards to reveal their meanings and interpretations
  7. Save your favorites, review history, or share results

🛠️ Technical Details

Aspect Detail
Manifest Version 3 (MV3)
Permissions storage only (local history, favorites, settings)
Architecture Pure vanilla JavaScript, HTML5, CSS3
Dependencies Zero external libraries or frameworks
Storage chrome.storage.local API
Image Assets Node.js scripts (sharp + SVG) for card back/deck generation

📁 Project Structure

tarot-chrome-extension/
├── manifest.json              # Extension config (MV3)
├── _locales/                  # Chrome Web Store i18n (en + zh_CN)
├── popup.html                 # Main UI (1083 lines)
├── popup.css                  # Stylesheet (135KB)
├── popup.js                   # Core logic (445KB)
├── constants.js               # Constants, i18n, card meanings (231KB)
├── config.js                  # Feature toggles
├── deck-manager.js            # Deck management (DeckManager class)
├── dilemma-spread.js          # Dilemma helper module
│
├── base-cards.js              # Base card data structures
├── tarot-cards.js             # Magic deck
├── rider-waite-cards.js       # Rider-Waite deck
├── marseille-cards.js         # Marseille deck
├── thoth-cards.js             # Thoth deck
├── angel-cards.js             # Angel deck
├── healing-cards.js           # Healing deck
├── osho-zen-cards.js          # Osho Zen deck (79 cards)
├── stellar-cards.js           # Stellar Tarot deck
│
├── icons/                     # Extension icons
│   ├── icon16.png             # 16px icon
│   ├── icon48.png             # 48px icon
│   ├── icon128.png            # 128px icon
│   ├── card-backs/            # 9 deck back images
│   ├── major/                 # Major Arcana (22)
│   ├── wands/                 # Wands (14)
│   ├── cups/                  # Cups (14)
│   ├── swords/                # Swords (14)
│   ├── pentacles/             # Pentacles (14)
│   ├── osho/                  # Osho Zen (79 placeholders)
│   └── stellar/               # Stellar Tarot (78 placeholders)
│
├── payment.html               # Payment/checkout page
├── PRIVACY_POLICY.md          # Privacy policy (bilingual)
├── package.json               # npm config
├── package-extension.js       # Build & package script (archiver)
│
├── gen_card_backs.js          # Card back generation script
├── gen_osho.js                # Osho Zen data generator
├── gen_osho_images.js         # Osho Zen placeholder images
├── gen_stellar_images.js      # Stellar Tarot card images
├── build_osho.js              # Osho Zen data builder
├── add_keywords.js            # Add keywords to Marseille deck
└── analyze_keywords.js        # Keyword coverage analysis

🏗️ Building & Packaging

# Install dependencies
npm install

# Package extension
npm run package
# or manually:
node package-extension.js

🔒 Privacy

Magic Tarot respects your privacy:

  • No data collection: No personal information is collected or transmitted
  • Local storage only: All history, favorites, and settings stay on your device
  • Single permission: Only storage is required

See PRIVACY_POLICY.md for full details.

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please ensure your code follows the existing style (vanilla JS, no framework dependencies).

📝 License

This project is licensed under the Non-Commercial License — see the LICENSE file for details.

For commercial use, please contact the author.

📬 Contact & Support


🔮 魔法塔罗牌 - 每日占卜

一款功能全面的 Chrome 塔罗占卜扩展,将 8 套塔罗牌组和 40+ 种牌阵带到你的浏览器中。无论你需要每日指引、感情分析、事业建议还是灵性成长,魔法塔罗牌都能为你提供完整的自我反思与占卜工具。

✨ 功能特点

  • 8 套精美牌组:魔法、伟特、马赛、托特、天使、治愈、奥修禅卡(79张)和星辰塔罗 — 每套都有独特的艺术风格和解读体系
  • 40+ 种牌阵布局:从单张快速占卜到完整的凯尔特十字,按 9 大分类覆盖生活的每个方面
  • 今日运势:每日自动生成塔罗运势解读
  • 命运数字生成器:自定义区间生成幸运数字,附塔罗解读
  • 选择困难症助手:猜拳决胜、摇骰子、塔罗抽牌三种方式帮你做决定
  • 中英双语界面:完整的中英文双语支持,随时切换
  • 占卜历史记录:回顾过去的占卜记录,可按日期筛选
  • 卡牌收藏夹:保存喜爱的卡牌并添加个人备注
  • 解读模式:支持简单、标准、深度三种解读级别
  • 扩展解读:历史分析、时间维度、性格分析等深度洞察
  • AI 深度解读:接入你自己的 AI 服务商,生成结构化、有条理的深度解读(整体能量、逐牌分析、对你的启示、今天就能做的小事、一句话总结),采用优雅排版与衬线标题
  • AI 追问对话:多轮追问式问答;关闭并重新打开弹窗后,完整解读内容与追问记录自动持久化保留
  • 自定义牌意:编辑和个性化每张卡牌的解读内容
  • 音效开关:可选的翻牌音效
  • 卡牌预览:点击查看完整卡牌详情、含义和象征意义
  • 结果分享:复制和分享占卜结果给朋友
  • 深色魔法主题:精美的暗色主题 UI,响应式设计

🎴 支持牌组

牌组 张数 风格 说明
魔法 🪄 78 奇幻魔法 魔法主题塔罗牌,梦幻画风
伟特 📖 78 经典 全球最广泛使用的塔罗牌
马赛 🏛️ 78 传统 历史悠久的马赛塔罗,中世纪象征体系
托特 78 秘传 克劳利托特塔罗,融合占星学
天使 👼 78 灵性 天使主题,温柔治愈的指引
治愈 💚 78 疗愈 以情感疗愈为核心的牌组
奥修禅卡 🧘 79 觉醒 基于奥修禅学智慧,关注当下觉知(唯一 79 张的牌组)
星辰 🌟 78 宇宙 星空宇宙主题,融合星座连线

📋 支持牌阵(40+ 种)

入门经典

牌阵 张数 用途
单牌占卜 1 每日快速指引
三牌占卜 3 过去、现在、未来
问题行动结果 3 情况分析
是否牌阵 1 简单二元答案

情感关系

牌阵 张数 用途
关系牌阵 5 爱情与关系洞察
恋人牌阵 7 深度关系分析
复合牌阵 5 复合指引
家庭关系 5 家庭动态理解
友谊牌阵 3 友谊指引
情感模式探索 6 探索情感模式

决策分析

牌阵 张数 用途
二选一 2+2 二元选择分析
利弊分析 6 权衡利弊
十字路口 5 多路径决策指引
去留抉择 6 重大人生决策
决策树 7 层次化决策分析
五张牌阵 5 通用决策

生活日常

牌阵 张数 用途
旅行牌阵 4 旅行指引
财务投资 5 财务决策
失物寻找 4 寻找失物指引
健康牌阵 5 健康洞察
新技能学习 4 学习路径指引
日常习惯优化 3 习惯改善

运势预测

牌阵 张数 用途
月运牌阵 4+ 月度预测
时间之流 4 时间推移解读
命运之轮 5 命运与时机
年运牌阵 12 全年预测
一周运势 7 周度指引
四季牌阵 4 季度能量解读

深度专题

牌阵 张数 用途
凯尔特十字 10 全面人生解读(经典牌阵)
马蹄铁牌阵 7 详细情况分析
星座牌阵 12 12 宫占星影响
年度预测 12 12 月详细预测
宽恕牌阵 6 疗愈与宽恕
生命之树 10 卡巴拉生命智慧

事业学业

牌阵 张数 用途
事业牌阵 5 职业方向指引
换工作 6 跳槽指引
考试牌阵 4 学业考试准备
办公室人际 4 职场关系洞察
副业探索 5 副业探索指引
创业可行性 7 创业指导

自我成长

牌阵 张数 用途
心灵牌阵 5 内在心灵探索
断舍离 4 放下与简化
阴影牌阵 6 面对阴影自我
自我价值 5 建立自信
内在小孩疗愈 6 童年创伤疗愈
梦境解读 4 梦境分析指引

灵性成长

牌阵 张数 用途
人生使命 8 寻找人生使命
灵魂旅程 9 灵性道路探索
前世今生 5 业力前世洞察
灵感创作 4 释放创造力
高我连接 5 连接高我意识
脉轮平衡 7 7 脉轮能量调整

🎲 附加工具

工具 说明
今日运势 🌅 自动生成每日运势卡牌,附个性化解读
命运数字生成器 🔢 自定义区间生成幸运数字,附塔罗解读
选择困难症助手 🤔 猜拳决胜、摇骰子、塔罗抽牌三种方式帮你做决定

📦 安装方法

从 Chrome 网上应用店安装(推荐)

Available in the Chrome Web Store

手动安装(开发者模式)

  1. 克隆仓库
    git clone https://github.com/vaxicy/tarot-chrome-extension.git
  2. 打开 Chrome,导航到 chrome://extensions/
  3. 在右上角启用"开发者模式"
  4. 点击"加载已解压的扩展程序",选择克隆的文件夹
  5. 扩展图标将出现在 Chrome 工具栏中

🚀 快速开始

  1. 点击 Chrome 工具栏中的魔法塔罗牌图标
  2. 从 8 套牌组中选择你喜欢的一套
  3. 选择语言(中文/英文)
  4. 从分类列表中选择一个牌阵
  5. 点击"抽牌"开始洗牌和揭示
  6. 点击单张卡牌查看含义和解读
  7. 保存收藏、回顾历史或分享结果

🛠️ 技术细节

项目 说明
Manifest 版本 3 (MV3)
权限 storage(本地历史、收藏、设置)
架构 纯原生 JavaScript、HTML5、CSS3
依赖 零外部库或框架
存储 chrome.storage.local API
图片资源 Node.js 脚本(sharp + SVG)生成牌背/牌面

📁 项目结构

tarot-chrome-extension/
├── manifest.json              # 扩展配置 (MV3)
├── _locales/                  # Chrome 商店国际化 (en + zh_CN)
├── popup.html                 # 主界面 (1083 行)
├── popup.css                  # 样式表 (135KB)
├── popup.js                   # 核心逻辑 (445KB)
├── constants.js               # 常量、多语言、牌意 (231KB)
├── config.js                  # 功能开关
├── deck-manager.js            # 牌组管理 (DeckManager 类)
├── dilemma-spread.js          # 选择困难症模块
│
├── base-cards.js              # 基础卡牌数据结构
├── tarot-cards.js             # 魔法牌组
├── rider-waite-cards.js       # 伟特牌组
├── marseille-cards.js         # 马赛牌组
├── thoth-cards.js             # 托特牌组
├── angel-cards.js             # 天使牌组
├── healing-cards.js           # 治愈牌组
├── osho-zen-cards.js          # 奥修禅卡 (79 张)
├── stellar-cards.js           # 星辰塔罗
│
├── icons/                     # 扩展图标
│   ├── icon16.png             # 16px 图标
│   ├── icon48.png             # 48px 图标
│   ├── icon128.png            # 128px 图标
│   ├── card-backs/            # 9 张牌背图片
│   ├── major/                 # 大阿卡纳 (22)
│   ├── wands/                 # 权杖 (14)
│   ├── cups/                  # 圣杯 (14)
│   ├── swords/                # 宝剑 (14)
│   ├── pentacles/             # 星币 (14)
│   ├── osho/                  # 奥修禅卡 (79 占位)
│   └── stellar/               # 星辰塔罗 (78 占位)
│
├── payment.html               # 支付页面
├── PRIVACY_POLICY.md          # 隐私政策(中英双语)
├── package.json               # npm 配置
├── package-extension.js       # 构建打包脚本
│
├── gen_card_backs.js          # 牌背图片生成脚本
├── gen_osho.js                # 奥修禅卡数据生成
├── gen_osho_images.js         # 奥修禅卡占位图片
├── gen_stellar_images.js      # 星辰塔罗牌面图片
├── build_osho.js              # 奥修禅卡数据构建
├── add_keywords.js            # 马赛塔罗关键词补充
└── analyze_keywords.js        # 关键词覆盖分析

🏗️ 构建与打包

# 安装依赖
npm install

# 打包扩展
npm run package
# 或:
node package-extension.js

🔒 隐私保护

魔法塔罗牌尊重你的隐私:

  • 不收集数据:不收集或传输任何个人信息
  • 仅本地存储:所有历史、收藏和设置均保存在你的设备上
  • 单一权限:仅需 storage 权限

详见 PRIVACY_POLICY.md

🤝 贡献指南

欢迎贡献!请按以下步骤操作:

  1. Fork 本仓库
  2. 创建你的功能分支 (git checkout -b feature/AmazingFeature)
  3. 提交你的更改 (git commit -m '添加新功能')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 打开 Pull Request

请确保你的代码遵循现有风格(原生 JS,无框架依赖)。

📝 许可证

本项目采用 非商业使用许可证 — 详见 LICENSE 文件。

如需商业使用,请联系作者。

📬 联系与支持


Made with ✨ magic and 🔮 divination

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages