npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

reactchessts

v1.0.4

Published

React TypeScript chess development toolkit

Readme

npm version License: MIT TypeScript

✨ Why ReactChessTS?

Build professional chess applications without the complexity. We've done the hard work for you:

  • 🎯 Zero Configuration - Just install and start building
  • 🎨 Beautiful UI - Modern, responsive design out of the box
  • 🔥 Full TypeScript Support - Complete type safety and autocompletion
  • 🚀 Production Ready - Used in real-world applications
  • 🧩 Modular Design - Use only what you need
  • 📚 Rich Features - Everything you need for chess development

🚀 Quick Start

Installation

  1. Create a new React project (if you haven't already):
npx create-react-app my-chess-app --template typescript
# or
npm create vite@latest my-chess-app -- --template react-ts
  1. Install the package:
npm install reactchessts

💡 Troubleshooting Installation

If you encounter peer dependency issues, you can:

  1. Make sure you have React 16.8 or higher installed:

    npm install react@latest react-dom@latest
  2. Or use one of these flags (if you know what you're doing):

    npm install reactchessts --legacy-peer-deps
    # or
    npm install reactchessts --force

Basic Usage

import { ChessBoard, ChessProvider, PieceProvider } from 'reactchessts';

export default function App() {
  return (
    <ChessProvider>
      <PieceProvider>
        <ChessBoard />
      </PieceProvider>
    </ChessProvider>
  );
}

That's it! You now have a fully functional chess game with:

  • ♟️ Drag and drop moves
  • ✅ Legal move validation
  • 🎮 Game state management
  • ⚡ Real-time check/checkmate detection
  • 📝 Move history tracking

🎨 Beautiful Examples (Copy-Paste Ready)

1. Professional Chess Game

import { ChessBoard, ChessProvider, PieceProvider, useChess } from 'reactchessts';

function ChessGame() {
  const { turn, isCheck, isCheckmate, undo, reset } = useChess();
  
  return (
    <div style={{ maxWidth: '600px', margin: '0 auto' }}>
      <div style={{ 
        padding: '20px',
        backgroundColor: 'white',
        borderRadius: '8px',
        boxShadow: '0 4px 6px rgba(0, 0, 0, 0.1)'
      }}>
        <h2 style={{ color: '#BE0055' }}>Chess Game</h2>
        <ChessBoard />
        <div style={{ marginTop: '20px' }}>
          <button onClick={undo}>Undo Move</button>
          <button onClick={reset}>New Game</button>
        </div>
      </div>
    </div>
  );
}

2. Training Platform

import { useChessTraining } from 'reactchessts';

function TrainingMode() {
  const { startTraining, feedback, stats } = useChessTraining();
  
  return (
    <div style={{ display: 'flex', gap: '20px' }}>
      <ChessBoard />
      <div>
        <button onClick={() => startTraining('puzzle')}>
          Start Training
        </button>
        <p>Accuracy: {stats.averageAccuracy}%</p>
      </div>
    </div>
  );
}

🎯 Features That Just Work

  • 🎮 Game Logic

    • Full chess rules implementation
    • Move validation
    • Check/Checkmate detection
    • Game state management
  • 🎨 UI Components

    • Responsive chess board
    • Piece animations
    • Custom themes
    • Square highlighting
  • 📚 Training Tools

    • Opening explorer
    • Puzzle system
    • Game analysis
    • Move suggestions
  • ⌨️ Accessibility

    • Keyboard navigation
    • Screen reader support
    • ARIA labels
    • High contrast mode

🔧 Easy Customization

<ChessBoard 
  theme="classic"
  orientation="black"
  customSquareStyles={{
    lastMove: { backgroundColor: 'rgba(190, 0, 85, 0.2)' }
  }}
/>

🤖 AI-Ready

// Get legal moves for AI
const { getPossibleMoves, makeMove } = useChess();
const legalMoves = getPossibleMoves('e2');

// Make AI move
makeMove('e2', 'e4');

// Get position for analysis
const { position, history } = useChess();
console.log(position); // FEN format

🤝 Connect & Support

  • 🐛 Report bugs and issues
  • 💡 Request features
  • 🤝 Contribute to the project
  • 💬 Join our community

📝 License

MIT © Chamath Thiwanka