This repository was archived by the owner on Mar 5, 2026. It is now read-only.
Repository navigation
eco.json is now an npm package - #40
Merged
Merged
Conversation
- Package structure with src/ and methods/ folders - Type definitions for Opening, OpeningCollection, etc. - Methods for fetching and querying opening data: - getLatestEcoJson() - Download ECO data from GitHub - openingBook() - Merged opening collection - findOpening() - Lookup by FEN with position fallback - getPositionBook() - Position-only FEN mapping - getFromToIndex() - Download transition index - getFromTos() - Get next/from openings with enrichment - CI workflow for type checking and build verification - Comprehensive copilot instructions for AI agents - Build configuration with TypeScript 5.3, ES2022 target
- Update version to 0.1.0-beta.0 - Add NPM_README.md with API documentation - Published to npm as @chess-openings/eco.json@beta
…Roots - Add methods/queryOpenings.ts with 3 new query utilities - getOpeningsByEco: Filter by ECO code (e.g., B12) - getOpeningsByEcoCategory: Filter by category (A-E) - getEcoRoots: Return only canonical ECO root variations - Update exports and NPM_README.md documentation - Bump version to 0.1.0-beta.1 - Published to npm
- Renamed NPM_README.md to README.md (comprehensive documentation) - Removed original README.md (content now fully integrated) - Updated package.json to remove NPM_README.md from files array (README.md is included by default in npm packages) Single README now serves both GitHub and npm audiences with complete: - API reference - Data structure documentation - Opening object schema and field descriptions - Query and transition methods - Source information and acknowledgements
- NPM version and downloads - MIT license badge - TypeScript and Node.js version badges - Bundle size (bundlephobia) - GitHub stars
Promote from beta to stable release. Package includes: - 9 methods for consuming chess opening data - Complete TypeScript support - On-demand data loading from GitHub - 12,000+ chess openings with ECO codes - Opening transitions and query utilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added a /methods folder with functions for reading eco.json data files. Package is @chess-openings/eco.json. Usage: