{"id":32270459,"url":"https://github.com/arjanaswal/stockfish","last_synced_at":"2026-02-03T08:00:34.755Z","repository":{"id":40303916,"uuid":"322904132","full_name":"ArjanAswal/Stockfish","owner":"ArjanAswal","description":"The Stockfish Chess Engine for Flutter.","archived":false,"fork":false,"pushed_at":"2026-02-02T11:05:16.000Z","size":943,"stargazers_count":51,"open_issues_count":15,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-02T23:50:31.234Z","etag":null,"topics":["chess","chess-engine","flutter-chess","flutter-stockfish","stockfish"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArjanAswal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-19T17:44:04.000Z","updated_at":"2026-02-02T11:06:01.000Z","dependencies_parsed_at":"2025-03-15T16:22:53.807Z","dependency_job_id":"2fb70a7f-025b-4e6b-8952-bfa2c72ff3aa","html_url":"https://github.com/ArjanAswal/Stockfish","commit_stats":{"total_commits":37,"total_committers":4,"mean_commits":9.25,"dds":"0.32432432432432434","last_synced_commit":"3a2559e34e82a99f7e5e6ce5a9f21aa3308dd004"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ArjanAswal/Stockfish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArjanAswal%2FStockfish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArjanAswal%2FStockfish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArjanAswal%2FStockfish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArjanAswal%2FStockfish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArjanAswal","download_url":"https://codeload.github.com/ArjanAswal/Stockfish/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArjanAswal%2FStockfish/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29037718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:39:36.383Z","status":"ssl_error","status_checked_at":"2026-02-03T06:39:32.787Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chess","chess-engine","flutter-chess","flutter-stockfish","stockfish"],"created_at":"2025-10-22T22:37:39.305Z","updated_at":"2026-02-03T08:00:34.723Z","avatar_url":"https://github.com/ArjanAswal.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stockfish\n\n![Pipeline](https://github.com/ArjanAswal/Stockfish/actions/workflows/pipeline.yml/badge.svg)\n\nThe Stockfish Chess Engine for Flutter.\n\nAlso check out [The Leela Chess Zero (lc0)](https://pub.dev/packages/leela_chess_zero) neural network chess engine for flutter.\n\n## Architecture\n\nThis package wraps the **Stockfish chess engine** (C++) for use in Flutter applications on Android and iOS. It uses **Dart FFI (Foreign Function Interface)** to communicate between Dart and native C++ code.\nFor more information go to [architecture.md](architecture.md).\n\n## Example\n\nCheck out this [working chess game](https://github.com/PScottZero/EnPassant/tree/stockfish) using this package by [@PScottZero](https://github.com/PScottZero).\n\nAlso see the [example](example) folder for a minimal Flutter app demonstrating usage.\n\n## Usages\n\niOS project must have `IPHONEOS_DEPLOYMENT_TARGET` \u003e=12.0.\n\n### Add dependency\n\nUpdate `dependencies` section inside `pubspec.yaml`:\n\n```yaml\n  stockfish: ^1.8.1\n```\n\n### Init engine\n\n```dart\nimport 'package:stockfish/stockfish.dart';\n\n// create a new instance\nfinal stockfish = Stockfish();\n\n// state is a ValueListenable\u003cStockfishState\u003e\nprint(stockfish.state.value); # StockfishState.starting\n\n// the engine takes a few moment to start\nawait Future.delayed(...)\nprint(stockfish.state.value); # StockfishState.ready\n```\n\n### UCI command\n\nWaits until the state is ready before sending commands.\n\n```dart\nstockfish.stdin = 'isready';\nstockfish.stdin = 'go movetime 3000';\nstockfish.stdin = 'go infinite';\nstockfish.stdin = 'stop';\n```\n\nEngine output is directed to a `Stream\u003cString\u003e`, add a listener to process results.\n\n```dart\nstockfish.stdout.listen((line) {\n  // do something useful\n  print(line);\n});\n```\n\n### Dispose / Hot reload\n\nThere are two active isolates when Stockfish engine is running. That interferes with Flutter's hot reload feature so you need to dispose it before attempting to reload.\n\n```dart\n// sends the UCI quit command\nstockfish.stdin = 'quit';\n\n// or even easier...\nstockfish.dispose();\n```\n\nNote: only one instance can be created at a time. The factory method `Stockfish()` will return `null` if it was called when an existing instance is active.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjanaswal%2Fstockfish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farjanaswal%2Fstockfish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farjanaswal%2Fstockfish/lists"}