🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

botc-character-sheet

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

botc-character-sheet

latest
npmnpm
Version
0.19.1
Version published
Weekly downloads
52
246.67%
Maintainers
1
Weekly downloads
 
Created
Source

botc-character-sheet

Reusable Preact component for rendering Blood on the Clocktower character sheets with a beautiful parchment theme.

Installation

npm install botc-character-sheet
# or
bun add botc-character-sheet

Usage

import { CharacterSheet, SheetBack } from 'botc-character-sheet';
import 'botc-character-sheet/style.css';

function App() {
  const characters = {
    townsfolk: [...],
    outsider: [...],
    minion: [...],
    demon: [...],
  };

  return (
    <>
      <CharacterSheet
        title="My Custom Script"
        author="John Doe"
        characters={characters}
        color="#137415"
        jinxes={[]}
        showSwirls={true}
        solidTitle={false}
        iconScale={1.6}
        appearance="normal"
      />
      <SheetBack
        title="My Custom Script"
        color="#137415"
        includeMargins={false}
      />
    </>
  );
}

Components

CharacterSheet

Main character sheet component with parchment background and styled sections.

Props:

  • title (string): Script title
  • author (string, optional): Script author name
  • characters (GroupedCharacters): Characters grouped by team
  • color (string): Theme color (default: "#137415")
  • jinxes (Jinx[]): Array of jinx relationships
  • showSwirls (boolean): Show decorative swirls (default: true)
  • solidTitle (boolean): Use solid title background (default: false)
  • iconScale (number): Scale character icons (default: 1.6)
  • appearance ("normal" | "compact" | "super-compact"): Layout density (default: "normal")
  • includeMargins (boolean): Add margins for printing (default: false)

SheetBack

Backing sheet component for double-sided printing.

Props:

  • title (string): Script title
  • color (string): Theme color
  • includeMargins (boolean): Add margins for printing

Types

interface ResolvedCharacter {
  id: string;
  name: string;
  ability: string;
  team: 'townsfolk' | 'outsider' | 'minion' | 'demon' | 'traveller' | 'fabled';
  image?: string;
}

interface GroupedCharacters {
  townsfolk: ResolvedCharacter[];
  outsider: ResolvedCharacter[];
  minion: ResolvedCharacter[];
  demon: ResolvedCharacter[];
  traveller?: ResolvedCharacter[];
  fabled?: ResolvedCharacter[];
}

interface Jinx {
  id: string;
  jinx: Array<{ id: string; reason: string }>;
}

Development

# Install dependencies
bun install

# Build
bun run build

# Watch mode
bun run dev

License

MIT

FAQs

Package last updated on 24 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts