{"id":37381148,"url":"https://github.com/tuefekci/deta-queue","last_synced_at":"2026-01-16T05:08:15.008Z","repository":{"id":65192611,"uuid":"587060301","full_name":"tuefekci/deta-queue","owner":"tuefekci","description":"Queue for use with deta base.","archived":false,"fork":false,"pushed_at":"2023-05-09T17:27:07.000Z","size":425,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T04:35:30.028Z","etag":null,"topics":["deta","deta-base","deta-micros","deta-space"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tuefekci.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-01-09T21:36:36.000Z","updated_at":"2023-11-21T04:21:14.000Z","dependencies_parsed_at":"2024-11-13T16:51:42.572Z","dependency_job_id":null,"html_url":"https://github.com/tuefekci/deta-queue","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"ryansonshine/typescript-npm-package-template","purl":"pkg:github/tuefekci/deta-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuefekci%2Fdeta-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuefekci%2Fdeta-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuefekci%2Fdeta-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuefekci%2Fdeta-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuefekci","download_url":"https://codeload.github.com/tuefekci/deta-queue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuefekci%2Fdeta-queue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deta","deta-base","deta-micros","deta-space"],"created_at":"2026-01-16T05:08:14.238Z","updated_at":"2026-01-16T05:08:15.003Z","avatar_url":"https://github.com/tuefekci.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deta-queue\n\n[![npm package][npm-img]][npm-url]\n[![Build Status][build-img]][build-url]\n[![Downloads][downloads-img]][downloads-url]\n[![Issues][issues-img]][issues-url]\n\n\u003e Queue for use with deta base.\n\n## Install\n\n```bash\nnpm install deta-queue\n```\n\n## Usage\n\n```ts\nimport { Queue } from 'deta-queue';\nimport { Deta } from 'deta';\n\n// Initialize with a Project Key\nconst deta = Deta(process.env.DETA_PROJECT_KEY); \n\nconst queue = new Queue(deta);\n\nasync function main() {\n\n\tawait queue.empty();\n\n\tconst items = [\"test1\", \"test2\", \"test3\", \"test4\", \"test5\"]\n\n\tfor (let index = 0; index \u003c items.length; index++) {\n\t\tconst element = items[index];\n\t\tawait queue.push(element);\n\t}\n\n\tconst item = queue.pop(1);\n\n\tconsole.log(item);\n}\n\nmain();\n//=\u003e 'test1'\n```\n\n## API\n\n### Queue(deta: Deta, ttl?: number = 60*60*24*14, queueName?: string = \"queue\")\n\n#### deta\n\nType: `object`\n\nDeta object\n\n#### ttl\n\nType: `number`\n\nexpireIn for the Deta Base Item\n\n##### queueName\n\nType: `string`\nDefault: `queue`\n\nBase Name for the Queue Deta Bases\n\n[build-img]:https://github.com/tuefekci/deta-queue/actions/workflows/release.yml/badge.svg\n[build-url]:https://github.com/tuefekci/deta-queue/actions/workflows/release.yml\n[downloads-img]:https://img.shields.io/npm/dt/deta-queue\n[downloads-url]:https://www.npmtrends.com/deta-queue\n[npm-img]:https://img.shields.io/npm/v/deta-queue\n[npm-url]:https://www.npmjs.com/package/deta-queue\n[issues-img]:https://img.shields.io/github/issues/tuefekci/deta-queue\n[issues-url]:https://github.com/tuefekci/deta-queue/issues\n[codecov-img]:https://codecov.io/gh/tuefekci/deta-queue/branch/main/graph/badge.svg\n[codecov-url]:https://codecov.io/gh/tuefekci/deta-queue\n[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release-url]:https://github.com/semantic-release/semantic-release\n[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[commitizen-url]:http://commitizen.github.io/cz-cli/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuefekci%2Fdeta-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuefekci%2Fdeta-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuefekci%2Fdeta-queue/lists"}