A TypeScript/Node.js interface for the Hololive Official Card Game, providing utilities, data structures, and game mechanics for developers.
- Complete type definitions for all card types (Oshi, Holomen, Support, and Cheer cards)
- Enums for card attributes, rarities, and other game-specific values
- Utility functions for type checking and validation
- Full TypeScript support with type declarations
npm install hololive-tcg-model
# or
yarn add hololive-tcg-model
import {
HololiveCard,
HololiveCardType,
HololiveCardAttribute,
TypeUtil
} from 'hololive-tcg-model';
// Check card types
const cardType = TypeUtil.getCardType("ホロメン");
if (cardType === HololiveCardType.Holomen) {
// Handle Holomen card
}
// Work with card attributes
const attribute = TypeUtil.getCardAttribute("赤");
if (attribute === HololiveCardAttribute.Red) {
// Handle red attribute
}
- Oshi Cards (推しホロメン): Main character cards with life points and special skills
- Holomen Cards (ホロメン): Character cards with HP, bloom levels, and arts
- Support Cards (サポート): Various support effects including events, fans, and items
- Cheer Cards (エール): Attribute-based cheer cards
HololiveCardType
: Different card typesHololiveCardRarity
: Card rarities (OSR, UR, SR, etc.)HololiveCardAttribute
: Card attributes (Red, Blue, Green, etc.)HololiveHolomenBloomLevel
: Bloom levels for Holomen cardsHololiveSupportType
: Types of support cards- And more...
Contributions are welcome! Please feel free to submit a Pull Request.
MIT
RainbowBird