
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
chip-parser
Advanced tools
CHIP is a compact poker notation designed for efficient real-time hand logging with minimal keystrokes. It also outputs hand histories in a format ready for LLM-based analysis and AI-driven recommendations.
CHIP is a compact poker notation designed for efficient real-time hand logging with minimal keystrokes. It also outputs hand histories in a format ready for LLM-based analysis and AI-driven recommendations.
parseChip) — expands CHIP notation into a complete hand history, ready for analysis or LLM input.npm install chip-parser
import { parseChip } from "chip-parser";
const input = `25 50 10 6 5
12.5k 25k 10k 25k 25k 15k
f f 150 f c c
2c ad 6c
x 50 f
th tc`;
console.log(parseChip(input));
If you clone the repository directly, you can also experiment quickly by editing testInput in demo.ts and run it with:
npx tsx demo.ts
Header:
<sb> <bb> [<ante>] <nPlayers> <buttonSeat>
Examples:
1 2 6 01 2 0.25 6 0 (with ante)Note: buttonSeat is 1-indexed.
Stacks:
One line, listed from UTG → … → BB.
Example: 100 200 150 250 100 180
Numbers:
Supports k (thousands) and m (millions).
Example: 200k, 1.5m
Actions:
| Symbol | Meaning |
|---|---|
f | Fold |
x | Check |
c | Call |
N | Bet/Raise to amount N |
_ | No stack change |
Cards:
7h 8s TdMulti-Hand Support:
Player stacks persist unless explicitly set (e.g., top-ups or players leaving the table).
Showdown:
ad5h 9h9c.Each example builds on the previous one. Only new parts are shown to avoid repetition.
Input
25 50 10 6 6
12.5k 25k 10k 25k 25k 15k
f f 150 f c c
2c ad 6c
x 50 f
th tc
Output
25/50 (ante: 10) - 6 seats
Stacks:
Seat 1: 12500
Seat 2: 25000
Seat 3: 10000
Seat 4: 25000
Seat 5: 25000
Seat 6: 15000
Positions:
Seat 1: SB
Seat 2: BB
Seat 3: UTG
Seat 4: HJ
Seat 5: CO
Seat 6: BTN
*** Preflop ***
All players post ante 10
SB posts small blind 25
BB posts big blind 50
UTG folds
HJ folds
CO raises to 150
BTN folds
SB calls
BB calls
*** Flop *** 2c Ad 6c
SB checks
BB bets 50
CO folds
SB is next to act with Th Tc
👉 The hand is unfinished, so the last line is interpreted as hole cards for the next player to act. This enables querying an LLM for recommendations.
To leverage CHIP with LLMs, prepend a system prompt such as:
You are a poker assistant. You will provide a recommended action for the player to act given the hand history up to this point. Do not describe the hand history. Only provide the recommended action and a brief description.
Then feeding parsed input into an LLM yields actionable recommendations, for example:
Call — You should just call the small bet. Your pocket tens are an overpair to the board...
Input
... (same as Example 1, without "th tc")
x 50 f c
4h
x x
3c
x x
ac7c 2d2s
Output (excerpt)
*** Flop *** 2c Ad 6c
SB checks
BB bets 50
CO folds
SB calls
*** Turn *** 4h
SB checks
BB checks
*** River *** 3c
SB checks
BB checks
*** Showdown ***
SB shows Ac 7c
BB shows 2d 2s
SB wins 610
👉 When the hand runs to showdown, you need to provide the hole cards of the remaining players so that the parser can automatically determine the winner.
Input
... (continuing from Example 2)
25k - - 0 - -
c c c c x;
Additional Output
Stacks:
Seat 1: 25000
Seat 2: 24790
Seat 3: 9990
Seat 4: empty
Seat 5: 24840
Seat 6: 14990
Positions:
Seat 1: BTN
Seat 2: SB
Seat 3: BB
Seat 4: empty
Seat 5: UTG
Seat 6: CO
*** Preflop ***
All players post ante 10
SB posts small blind 25
BB posts big blind 50
UTG calls
CO calls
BTN calls
SB calls
BB checks
👉 The parser carries stacks forward, rotates the button, and starts the next hand automatically.
CHIP builds on the excellent Typescript Poker Engine by Claudijo Borovic, with modifications to support this software.
FAQs
CHIP is a compact poker notation designed for efficient real-time hand logging with minimal keystrokes. It also outputs hand histories in a format ready for LLM-based analysis and AI-driven recommendations.
We found that chip-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.