CK3-style cascading wiki hovercards for React
Turn tooltips into immersive knowledge exploration
Website • Documentation • npm
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
- 🎯 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
npm install cascade-cards
# or
pnpm add cascade-cards
# or
yarn add cascade-cardsimport { 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>
);
}This monorepo contains:
- cascade-cards - Main React component library
- cascade-cards-core - Headless engine for term matching and card management
- cascade-cards-source-markdown - Markdown file data source
- cascade-cards-source-rest - REST API data source
Visit cascade.cards/docs for:
- Installation guide
- Quick start tutorial
- API reference
- Advanced examples
- Styling guide
Check out cascade.cards to see Cascade Cards in action!
# 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 typecheckWe welcome contributions! Please see CONTRIBUTING.md for details.
MIT © FINEXMA, Inc.
Inspired by the wiki mechanics of Crusader Kings 3. Not affiliated with Paradox Interactive AB.
Built with ❤️ by FINEXMA, Inc.