HackerTrans
TopNewTrendsCommentsPastAskShowJobs

matteo1782

no profile record

Submissions

[untitled]

1 points·by matteo1782·vorige maand·0 comments

[untitled]

1 points·by matteo1782·6 maanden geleden·0 comments

[untitled]

1 points·by matteo1782·6 maanden geleden·0 comments

Show HN: Phantom Guard – Detect AI-hallucinated package attacks

github.com
2 points·by matteo1782·6 maanden geleden·2 comments

EdgeVec – Vector search in the browser, no server (Rust/WASM)

github.com
2 points·by matteo1782·6 maanden geleden·1 comments

Show HN: EdgeVec v0.4.0 – Sub-millisecond vector search in WASM (Rust)

github.com
1 points·by matteo1782·7 maanden geleden·0 comments

Show HN: EdgeVec – Sub-millisecond vector search in the browser (Rust/WASM)

github.com
7 points·by matteo1782·7 maanden geleden·3 comments

comments

matteo1782
·6 maanden geleden·discuss
Great question! No, Phantom Guard won't flag legit packages like openai, langchain-openai, or gpt-engineer.

  The primary signal is whether the package exists on the registry. We query PyPI/npm directly:
  - If a package exists → it gets a low/safe risk score
  - If a package doesn't exist → that's the main red flag for slopsquatting

  Pattern matching (like AI-related terms) is just one of many weighted signals, and it's far outweighed by existence. In fact, popular packages get a negative weight that actively reduces their risk score.

  The attack we're detecting is when an LLM hallucinates a package name like flask-gpt-utils that sounds plausible but doesn't exist. A real attacker could then register that name and wait for developers to pip install it.

  We test against the top 1000 PyPI packages and target <5% false positive rate. If you're importing openai or transformers, you're fine.
matteo1782
·6 maanden geleden·discuss
I built a vector database that runs entirely in WebAssembly. No server, no API calls, no data leaves the browser.

Why? Most vector DBs require a server. If you're building privacy-sensitive apps (medical notes, legal docs, personal journals) or offline-first tools, that's a problem. EdgeVec solves it.

What it does: - Semantic search on embeddings from OpenAI, Cohere, HuggingFace, etc. - Binary quantization: 32x memory reduction (1M vectors in ~125MB) - SIMD acceleration: 8.75x faster Hamming distance - IndexedDB persistence: index survives page reloads - Filter expressions: SQL-like metadata queries

Technical details: - 220KB gzipped, 494KB raw - Chrome 91+, Firefox 89+, Safari 16.4+ - Brute force search (HNSW coming in v0.8) - MIT licensed

Live demo: https://matte1782.github.io/edgevec/demo/

This release includes our first community contribution – @jsonMartin implemented the SIMD Hamming kernel that delivered 8.75x speedup.

Happy to discuss architecture decisions, WASM/SIMD tradeoffs, or binary quantization details.
matteo1782
·7 maanden geleden·discuss
https://github.com/matte1782/edgevec/blob/main/docs/benchmar...
matteo1782
·7 maanden geleden·discuss
Hey thanks for taking the time to read this. I will post new info soon including comparison to other in-browser libraries with benchmarks in v 0.3.0