{"id":17926001,"url":"https://github.com/zone-eu/seq-index","last_synced_at":"2026-05-14T09:02:15.614Z","repository":{"id":65412245,"uuid":"64858780","full_name":"zone-eu/seq-index","owner":"zone-eu","description":"Generate sequential indexes","archived":false,"fork":false,"pushed_at":"2025-12-09T08:38:27.000Z","size":154,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-12T04:59:35.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zone-eu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-08-03T15:49:42.000Z","updated_at":"2025-12-09T08:38:23.000Z","dependencies_parsed_at":"2025-02-28T15:32:35.432Z","dependency_job_id":"4a4f29a4-9873-483b-911c-96687c1ac2a6","html_url":"https://github.com/zone-eu/seq-index","commit_stats":null,"previous_names":["zone-eu/seq-index"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zone-eu/seq-index","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-eu%2Fseq-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-eu%2Fseq-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-eu%2Fseq-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-eu%2Fseq-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zone-eu","download_url":"https://codeload.github.com/zone-eu/seq-index/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-eu%2Fseq-index/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29392819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:53:09.511Z","status":"online","status_checked_at":"2026-02-13T02:00:10.076Z","response_time":78,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T20:58:39.355Z","updated_at":"2026-02-13T02:02:36.347Z","avatar_url":"https://github.com/zone-eu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seq-index\n\nGenerate sequential ID values. The generated value is a 18-byte hex string. The value consists of current timestamp, an incrementing counter and the instance id.\n\n## Install\n\nInstall from npm\n\n```\nnpm install seq-index\n```\n\n## Usage\n\nCreate `SeqIndex` instance\n\n```javascript\nvar SeqIndex = require('seq-index');\nvar indexer = new SeqIndex();\n```\n\n### get()\n\nGenerate a sequential ID using `get()`\n\n```javascript\nvar id = indexer.get();\n// 15654036c1709f68f2\n```\n\n### short()\n\nGenerate a sequential ID without instance suffix using `short()`\n\n```javascript\nvar shortId = indexer.short();\n// 15654036c1709f\n```\n\n### getByTime()\n\nUse to convert a timestamp into a short ID for comparison\n\n```javascript\nvar shortId = indexer.getByTime(1470300906242, 0);\n// 15654c36302000\nvar id = shortId + indexer.suffix;\n// 15654c3630200068f2\n```\n\n## License\n\nDual license **MIT or EUPL-1.1+**\n\n\u003e `seq-index` is part of the Zone Mail Suite (ZMS). Suite of programs and modules for an efficient, fast and modern email server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzone-eu%2Fseq-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzone-eu%2Fseq-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzone-eu%2Fseq-index/lists"}