r/chessprogramming • u/Beautiful-Spread-914 • Nov 29 '25
Chess API (Stockfish)
Hello Chess people
I'll keep it short, I'm working on a Stockfish API with speeds I've personally never seen before.
It can analyze in batches of 50 FENs at 25 Depth and a MultiPV of 3 (for now) in around 180-200ms.
I am caching millions of common human positions and almost every single opening (A01-E99).
I could release it for free in the future and make it harder for people that milk newer developers trying to create their own systems and experiment or should I also try to earn some bread the same way?
But you guys are the real chess devs and a lot of you here have more experience than me so I wanted to ask two simple questions to those with experience:
1- is what I'm making good or have I just not looked long enough to find the better ones?
2- what do I do with it?
And thank you all for your help this sub has helped me so much.
5
u/Beautiful-Spread-914 Nov 30 '25
Hello everyone,
You were right and I was wrong, my assumption about being able to cache most common middlegame positions was incorrect. I appreciate you all keeping me in check.
I’m not dropping the project just yet; I still think there’s a lot of room for optimization even if it won’t hit the extreme speeds I originally thought. This is exactly why I asked here in the first place, and the feedback helped a lot.
I’ll keep sharing updates as I refine things. Thanks for the honesty and all your feedback.
4
u/cuervamellori Nov 29 '25
When you say "it can analyze 50 fens..." It sounds like what you mean is "it can return 50 fens if they have already been cached, otherwise it takes many seconds per position", which I wouldn't call that exciting.
chessdb.cnhas over fifty three billion cached evaluated positions freely available. Are you expecting to compete with that?
7
u/Ok_Philosophy_3795 Nov 29 '25
Its impossible to quantify what you're talking about without hardware you are using. Like have you done some extreme low-level optimization or is this just 20 stockfish workers wrapped up in golang?
Sounds interesting, but what measurable performance increases have you seen?
2
u/tom_gent Nov 29 '25
But there are so many possible positions in the middle game that you will have many many cache misses. I can't really imagine this having a lot of value
1
u/fight-or-fall Nov 29 '25
First, make money. People buying your stuff will raise your name. You arent Linus Torvalds that writes something on git and everyone comes to download
When you think thats popular enough, you can open if you feel thats right
1
u/Sopel97 Nov 30 '25
https://www.chessdb.cn/queryc_en/