Nu

NumPy for Browser, Node.js, Deno and Bun

Hacker News

NumPy for Browser, Node.js, Deno and Bun

I've been spending some time on a side project, `numpy-ts`, which is a TypeScript numerical library inspired by NumPy. It aims to bring the same NumPy API (where possible) to Node.js/Browser/Deno/Bun with full .npy/.npz compatibility (read & write). It currently has 476 of NumPy's 507 functions implemented, all cross-validated against NumPy with >6,000 validation tests. The lib is about 93 kB minified+gzipped and has zero dependencies, and it's fully tree-shakeable. Since it's written in TypeScript, it's on average 15x slower than NumPy. I just tagged 1.0.0, and will begin performance optimization soon (both algorithmic and selective WASM for fused kernels). You can try it in your browser here: https://numpyts.dev/playground Disclaimer that this was a mix of hand-written code (API, deterministic tooling) and AI-assisted (functional implementations, validation test implementations).

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: code · Missing: mac, agents, macos
75%75% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
64%64% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, 000, io · Missing: https docs, excited, just released
47%47% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: soon · Missing: plus, platform, intuitive
38%38% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
37%37% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
3%3% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ch
CheerpX – x86 Node.js/python3/Ruby REPL in browser via WebAssembly JIT77%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CheerpX – x86 Node.js/python3/Ruby REPL in browser via WebAssembly JIT

Hacker News88
N-
N-clark – a LUIS.ai wrapper for Node.js/browser31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

N-clark – a LUIS.ai wrapper for Node.js/browser

Hacker News1
Vi
Vim2html for node.js43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Vim2html for node.js

Hacker News2
TD
TDD Given-When-Then for Node.js48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

TDD Given-When-Then for Node.js

Hacker News1
Co
Coolx5 - Node.js, Websockets, MongoDB and a clickable zombie50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Coolx5 - Node.js, Websockets, MongoDB and a clickable zombie

Hacker News2
Ye
Yet Another Node.js Logger – femto-logger37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Yet Another Node.js Logger – femto-logger

Hacker News1
HT
HTML5 MMORPG – Node.js54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

HTML5 MMORPG – Node.js

Hacker News11
Re
Regex Expansion in Node.js47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Regex Expansion in Node.js

Hacker News1
No
Norby – Call your Ruby libraries from Node.js47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Norby – Call your Ruby libraries from Node.js

Hacker News5
A
A Node.js delta encoder43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Node.js delta encoder

Hacker News3