{"id":20791298,"url":"https://github.com/lavaclient/lavadeno","last_synced_at":"2025-07-07T01:07:00.716Z","repository":{"id":48074337,"uuid":"269603753","full_name":"lavaclient/lavadeno","owner":"lavaclient","description":"lavadeno is a simple, easy-to-use, and flexible lavalink client built on the Deno Runtime.","archived":false,"fork":false,"pushed_at":"2023-03-05T14:59:06.000Z","size":111,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-05T21:28:37.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lavaclient.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":"2020-06-05T10:40:56.000Z","updated_at":"2025-02-23T20:48:51.000Z","dependencies_parsed_at":"2024-11-17T15:46:00.545Z","dependency_job_id":"f2fadee8-e75c-48a3-9606-f24af20032ae","html_url":"https://github.com/lavaclient/lavadeno","commit_stats":{"total_commits":59,"total_committers":11,"mean_commits":5.363636363636363,"dds":0.6440677966101696,"last_synced_commit":"22c88554cfc6f06dee7838eca0b00960cf47477a"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/lavaclient/lavadeno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavaclient%2Flavadeno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavaclient%2Flavadeno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavaclient%2Flavadeno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavaclient%2Flavadeno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lavaclient","download_url":"https://codeload.github.com/lavaclient/lavadeno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lavaclient%2Flavadeno/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263996081,"owners_count":23541400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-17T15:43:07.316Z","updated_at":"2025-07-07T01:07:00.684Z","avatar_url":"https://github.com/lavaclient.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"center\" src=\"./assets/banner.png\" alt=\"lavadeno banner\"\u003e\n\n---\n\n\u003e A powerful lavalink client built on the **Deno** Runtime  \n\u003e [Discord Server](https://discord.gg/8R4d8RydT4) \u0026bull; [GitHub](https://github.com/lavaclient/lavadeno)\n\n- **Flexible:** Lavadeno is a generic library, meaning you can use it with just a connection to the discord gateway, no library restriction.\n- **Easy-to-Use**: Lavadeno has a neat and user-friendly promise-based api.\n- **Lightweight:** Designed to be small and performant, it's a great choice for any sized project.\n\n\u003ch2 align=\"center\"\u003eSetup\u003c/h2\u003e\n\nRequirements\n- Deno Runtime\n- [Lavalink v3.x](https://github.com/freyacodes/lavalink)\n- Connection to the Discord Gateway.\n\n#### Single Node\n\n```ts\nimport { Node } from \"https://deno.land/x/lavadeno/mod.ts\";\n\nconst node = new Node({\n    connection: {\n        host: \"localhost\",\n        port: 2333,\n        password: \"youshallnotpass\",\n    },\n    sendGatewayPayload: (id, payload) =\u003e sendPayloadToDiscord(),\n});\n\nnode.on(\"connect\", node =\u003e console.log(`now connected...`));\n\nnode.connect(870267613635309618n);\n```\n#### Multiple Nodes\n\n```ts\nimport { Cluster } from \"https://deno.land/x/lavadeno/mod.ts\";\n\nconst cluster = new Cluster({\n    nodes: [\n        {\n            id: \"main\",\n            host: \"localhost\",\n            port: 2333,\n            password: \"youshallnotpass\",\n        },\n    ],\n    sendGatewayPayload: (id, payload) =\u003e sendPayloadToDiscord(),\n});\n\ncluster.on(\"nodeConnect\", node =\u003e console.log(`node \"${node.id}\" is now connected...`));\n\ncluster.init(870267613635309618n);\n```\n\n### Resuming / Reconnecting\n\nLavaDeno supports exponential backoff and basic reconnection types, along with *manual* reconnecting as reconnecting isn't automatic.\n\n```ts\nconst node = new Node({\n    connection: {\n        // resuming, a key must be supplied or else it wont work.\n        resuming: {\n           key: \"lavad3n0ftw\" \n        },\n\n        // exponential backoff\n        reconnect: {\n            type: \"exponential\",\n            maxDelay: 15000,\n            initialDelay: 1000,\n            tries: -1 // unlimited\n        },\n\n        // basic \n        reconnect: {\n            type: \"basic\",\n            delay: 5000.\n            tries: 5\n        },\n    }\n}) \n```\n\n---\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://dimensional.fun\"\u003emelike2d\u003c/a\u003e \u0026copy; 2018 - 2021\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavaclient%2Flavadeno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flavaclient%2Flavadeno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flavaclient%2Flavadeno/lists"}