
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
snowflake-id-js
Advanced tools
docker pull firassasin/snowflake-id
| ENV | default |
|---|---|
| PORT | 3000 |
| MACHINE_ID | 0-1023 randomly assigned |
| url | description |
|---|---|
| /api/uint64 | generates a new 64 bit uint snowflake id using epoch time, a random or assigned machine id, and a sequential increment. |
Install npm i snowflake-id-js
Usage
import {snowflakeGenerator} from 'snowflake-id-js';
const generator = snowflakeGenerator(512);
let id = generator.next().value;
Autocannon results running locally on an AMD 3700x
Running 10s test @ http://localhost:3000/api/uint64
10 connections
┌─────────┬──────┬──────┬───────┬──────┬─────────┬─────────┬──────┐
│ Stat │ 2.5% │ 50% │ 97.5% │ 99% │ Avg │ Stdev │ Max │
├─────────┼──────┼──────┼───────┼──────┼─────────┼─────────┼──────┤
│ Latency │ 0 ms │ 0 ms │ 0 ms │ 0 ms │ 0.01 ms │ 0.04 ms │ 7 ms │
└─────────┴──────┴──────┴───────┴──────┴─────────┴─────────┴──────┘
┌───────────┬────────┬────────┬────────┬─────────┬──────────┬─────────┬────────┐
│ Stat │ 1% │ 2.5% │ 50% │ 97.5% │ Avg │ Stdev │ Min │
├───────────┼────────┼────────┼────────┼─────────┼──────────┼─────────┼────────┤
│ Req/Sec │ 41887 │ 41887 │ 46847 │ 47615 │ 46427.64 │ 1494.62 │ 41876 │
├───────────┼────────┼────────┼────────┼─────────┼──────────┼─────────┼────────┤
│ Bytes/Sec │ 6.7 MB │ 6.7 MB │ 7.5 MB │ 7.62 MB │ 7.43 MB │ 239 kB │ 6.7 MB │
└───────────┴────────┴────────┴────────┴─────────┴──────────┴─────────┴────────┘
Req/Bytes counts sampled once per second.
511k requests in 11.01s, 81.7 MB read
FAQs
TypeScript service to generate snowflake ids.
We found that snowflake-id-js demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.