{"library":"simple-flakeid","type":"library","category":null,"description":"simple-flakeid is a JavaScript/TypeScript library for generating unique, time-ordered Snowflake IDs. Currently at version 0.0.5, it's in early development, aiming to provide robust ID generation with careful consideration for JavaScript's `Number.MAX_SAFE_INTEGER` limitation. It offers methods to generate IDs as standard `number` types (which can throw an error if exceeding `Number.MAX_SAFE_INTEGER`), `BigInt` types, or a dynamic type (`number` or `BigInt`) based on the ID's magnitude and configuration. The core algorithm is derived from yitter/idgenerator. While no explicit release cadence is stated, its recent low version indicates active and continuous development. A key differentiator is the explicit control and automatic handling of ID types to prevent overflow issues commonly found in JavaScript with large integer IDs.","language":"javascript","status":"active","version":"0.0.5","tags":["javascript","typescript"],"install":[{"cmd":"npm install simple-flakeid","imports":["import { SnowflakeIdv1 } from 'simple-flakeid'","new SnowflakeIdv1({ workerId: 1 })","generator.NextId()\ngenerator.NextNumber()\ngenerator.NextBigId()"]},{"cmd":"yarn add simple-flakeid","imports":[]},{"cmd":"pnpm add simple-flakeid","imports":[]}],"homepage":null,"github":"https://github.com/zhupengfeivip/simple-flakeId","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/simple-flakeid","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/simple-flakeid/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}