Skip to content

finexma-dev/cascade-cards

Repository files navigation

Cascade Cards

CK3-style cascading wiki hovercards for React

Turn tooltips into immersive knowledge exploration

npm version License: MIT

WebsiteDocumentationnpm


What is Cascade Cards?

Cascade Cards brings Crusader Kings 3-style hovercards to your React applications. Instead of basic tooltips, users can hover over terms to see rich, interactive cards that link to other terms—creating an immersive, wiki-like learning experience.

Perfect for:

  • 📚 SaaS Documentation - Help users discover features naturally
  • 🎓 Educational Platforms - Build interconnected knowledge graphs
  • 🎮 Gaming Wikis - CK3-style information cascades
  • 💼 Fintech Apps - Explain complex financial terms in context

✨ Features

  • 🎯 Zero Configuration - Works out of the box with sensible defaults
  • 🎨 shadcn/ui Based - Beautiful, customizable components
  • 📝 Multiple Data Sources - Markdown files, REST APIs, or custom sources
  • High Performance - Optimized rendering with minimal re-renders
  • 🔗 Infinite Cascading - Cards can reference other cards, endlessly
  • 🎭 Fully Typed - Complete TypeScript support
  • 🎪 Flexible Styling - Bring your own styles or use ours

🚀 Quick Start

Installation

npm install cascade-cards
# or
pnpm add cascade-cards
# or
yarn add cascade-cards

Basic Usage

import { HoverKitProvider, HoverTerm } from 'cascade-cards';
import 'cascade-cards/styles.css';

function App() {
  return (
    <HoverKitProvider>
      <p>
        Learn about <HoverTerm term="APR">annual percentage rate</HoverTerm>
        {' '}and how it affects your <HoverTerm term="LTV">loan-to-value ratio</HoverTerm>.
      </p>
    </HoverKitProvider>
  );
}

📦 Packages

This monorepo contains:

📖 Documentation

Visit cascade.cards/docs for:

  • Installation guide
  • Quick start tutorial
  • API reference
  • Advanced examples
  • Styling guide

🎨 Examples

Check out cascade.cards to see Cascade Cards in action!

🛠️ Development

# Clone the repository
git clone https://github.com/finexma-dev/cascade-cards.git
cd cascade-cards

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Type check
pnpm typecheck

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

📄 License

MIT © FINEXMA, Inc.

Inspired by the wiki mechanics of Crusader Kings 3. Not affiliated with Paradox Interactive AB.


Built with ❤️ by FINEXMA, Inc.

About

shadcn-based tutorial tooltips library

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages