frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: NBA-API-ts – Zero-dep TypeScript client for 138 NBA stats endpoints

https://github.com/gek0z/nba-api-ts
2•gek0z•1h ago

Comments

gek0z•1h ago
I built this because I needed NBA data for a side project (WedgieTracker: https://www.wedgietracker.com, yes, it tracks basketball wedgies). The Python ecosystem has swar/nba_api which is great, but the JS/TS side only had abandoned packages from 3-6 years ago with no types and piles of dependencies.

Some things that were interesting to work through:

TLS fingerprinting: stats.nba.com sits behind Akamai bot protection that rejects requests based on TLS fingerprints. Node's and Bun's built-in fetch get blocked immediately. The client accepts a custom fetch function so you can plug in something like tlsclientwrapper or curl-impersonate to spoof a browser TLS handshake.

IP blocking: On top of that, the API silently drops connections from datacenter IPs. AWS, GCP, Azure, all blocked.

Response parsing: The NBA returns data in a compact headers[] + rowSet[][] format instead of objects. The client parses these into typed objects with camelCase keys (PLAYER_ID → playerId), so you get full autocomplete on every response.

Rate limiting: Built-in retry with exponential backoff, token-bucket rate limiting, and configurable timeouts. The rate limits are undocumented so I settled on a conservative 600ms default through trial and error.

The live endpoints (scoreboard, box scores, play-by-play, odds) are on cdn.nba.com with no protection, so those work from anywhere.

npm: https://www.npmjs.com/package/nba-api-ts

Docs: https://nba-api-ts.riccardo.lol

Yes, Miracles Do Happen Every Day

https://guideposts.org/angels-and-miracles/miracles/gods-grace/yes-miracles-really-do-happen-ever...
1•marysminefnuf•46s ago•0 comments

Show HN: A vibe-coded low-level PKCS#11 Terraform provider

https://github.com/blechschmidt/terraform-provider-pkcs11
1•blechschmidt•1m ago•0 comments

Ziggy Engleman on Instruction Vids

https://www.nifdi.org/videos/siegfried-zig-engelmann-videos/zig-videos-on-instruction-2.html
1•marysminefnuf•1m ago•0 comments

AT Protocol (New Site)

https://atproto.com/
1•danabramov•3m ago•0 comments

Show HN: I built an interactive LSM Tree simulator

https://saiprakash.in/lsm
1•saiprakashreddy•4m ago•0 comments

AI companies are eating higher education

https://www.nytimes.com/2026/02/12/opinion/ai-companies-college-students.html
1•anigbrowl•5m ago•0 comments

The First Agent Skills Benchmark

https://huggingface.co/papers/2602.12670
1•xdotli•6m ago•1 comments

Complexity Explorables

https://www.complexity-explorables.org/about/
1•rolph•7m ago•0 comments

Sarajevo sniper tourists 'killed children by day, then partied at night'

https://www.thetimes.com/world/europe/article/sarajevo-safari-snipers-killing-children-d055tpn2f
4•baxtr•7m ago•0 comments

Forget MCP, Bash Is All You Need

https://deadneurons.substack.com/p/forget-mcp-bash-is-all-you-need
1•nr378•7m ago•0 comments

How to Trace tRPC Procedures with OpenTelemetry

https://oneuptime.com/blog/post/2026-02-06-trace-trpc-procedures-opentelemetry/view
1•raulescobar•7m ago•0 comments

Show HN: Distillate – Zotero papers → reMarkable highlights → Obsidian notes

https://distillate.dev
2•rhl•9m ago•0 comments

Show HN: Traffic Breakdown of a Front Page Surge

https://intervolz.com/sollewitt-on-hackernews/
1•intervolz•9m ago•0 comments

Builtseen – Influencer marketing marketplace starting at $1

https://builtseen.com
1•YurGrhm•10m ago•0 comments

Comparing Shunting Yard and Pratt Parsing

1•cdelmonte•10m ago•0 comments

Zillow launches Zillow for Warcraft, new way to explore World of Warcraft homes

https://www.zillow.com/news/zillow-launches-zillow-for-warcraft-a-new-way-to-explore-world-of-war...
1•randycupertino•14m ago•2 comments

Is the Craft Dead?

https://www.hanselman.com/blog/is-the-craft-dead
2•speckx•14m ago•0 comments

What is complex systems science

https://www.santafe.edu/what-is-complex-systems-science
2•rolph•15m ago•0 comments

Spintronics – A mechanical analog of electronic circuits you can touch and feel

https://upperstory.com/en/spintronics/
2•jeilers•15m ago•1 comments

KaOS Linux is moving away from KDE/Plasma because of systemd

https://kaosx.us/news/2026/kaos02/
2•akagusu•15m ago•0 comments

Meteorite: International Law and Regulations

https://onlinelibrary.wiley.com/doi/full/10.1111/maps.13396
2•joebig•15m ago•0 comments

Show HN: Env-gen – Rust CLI tool to generate .env files

https://github.com/brysonbw/env-gen
1•Brysonbw•18m ago•0 comments

How much ARR do you need to raise?

https://wallpaper.joff.com/
1•choreboy•18m ago•0 comments

Show HN: A live global mood map (anonymous, one-click)

https://mood2know.com/
2•gloussou•19m ago•0 comments

Isolation and Permissiveness of Distributed Transactions in MongoDB

https://www.mongodb.com/company/blog/engineering/formal-methods-beyond-correctness-isolation-perm...
1•PaulHoule•19m ago•0 comments

Polyglot – a Rust/WASM SQL transpilation library

https://tobilg.com/posts/introducing-polyglot-a-rust-wasm-sql-transpilation-library/
2•zX41ZdbW•20m ago•0 comments

Electrobun v1 – Blackboard Blog

https://blackboard.sh/blog/electrobun-v1/
1•josephscott•22m ago•1 comments

Will reward-seekers respond to distant incentives?

https://www.alignmentforum.org/posts/8cyjgrTSxGNdghesE/will-reward-seekers-respond-to-distant-inc...
2•gmays•22m ago•0 comments

Learn AI – Course built for web developers

https://web.dev/learn/ai
1•twapi•24m ago•0 comments

'This is the hill I'm going to die on' – David Baldacci takes on OpenAI

https://www.techradar.com/ai-platforms-assistants/this-is-the-hill-im-going-to-die-on-david-balda...
4•cstever•27m ago•0 comments