{"id":16015325,"url":"https://github.com/djdeveloperr/slash-router","last_synced_at":"2026-04-17T10:31:11.109Z","repository":{"id":135720184,"uuid":"321334498","full_name":"DjDeveloperr/slash-router","owner":"DjDeveloperr","description":"Lightweight and easy to use Router (Opine) for Discord Slash Commands.","archived":false,"fork":false,"pushed_at":"2020-12-18T11:54:09.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T11:31:33.764Z","etag":null,"topics":["api","deno","discord","opine","slash-commands"],"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/DjDeveloperr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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},"funding":{"github":"DjDeveloperr"}},"created_at":"2020-12-14T11:59:53.000Z","updated_at":"2020-12-18T11:54:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"419d62d0-30e0-4c93-87e8-3e018ee8b290","html_url":"https://github.com/DjDeveloperr/slash-router","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"e260773e65c3e7484e3ae76541b823e8eeda9cbe"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DjDeveloperr/slash-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Fslash-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Fslash-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Fslash-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Fslash-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DjDeveloperr","download_url":"https://codeload.github.com/DjDeveloperr/slash-router/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DjDeveloperr%2Fslash-router/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31925273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:19:20.377Z","status":"ssl_error","status_checked_at":"2026-04-17T10:19:18.682Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["api","deno","discord","opine","slash-commands"],"created_at":"2024-10-08T15:23:30.983Z","updated_at":"2026-04-17T10:31:11.088Z","avatar_url":"https://github.com/DjDeveloperr.png","language":"TypeScript","funding_links":["https://github.com/sponsors/DjDeveloperr"],"categories":[],"sub_categories":[],"readme":"# Slash-Router\r\n\r\nSlash Router is a lightweight framework for handling Discord Interactions over HTTP POSTs, providing with a easy to use Router that can be plug into [Opine](https://deno.land/x/opine).\r\n\r\n-   Easily pluggable to Opine App\r\n-   Utility function to verify Interaction\r\n-   Types for Interactions/Slash Commands API\r\n\r\n## Getting started\r\n\r\n### Verification\r\n\r\nRequest Verification is handled by the Router automatically, but if you're making a custom implementation using some other framework, try out `verify` method exported from `mod.ts`!\r\n\r\n-   `async verify(rawBody: Buffer | Uint8Array | string, signature: string, timestamp: string, clientPublicKey: string`\r\n    -   rawBody: Raw payload sent by Discord in Request\r\n    -   signature: Signature present in headers of Request (`X-Signature-Ed25519`)\r\n    -   timestamp: Timestamp present in headers of Request (`X-Signature-Timestamp`)\r\n    -   clientPublicKey: Your Client's Public Key (present on Dev Portal)\r\n\r\n### Examples\r\n\r\nCheck examples in [this directory](./test).\r\n\r\n## Contributing\r\n\r\nYou're always welcome to contribute! Please don't forget to check [Contributing guide!](CONTRIBUTING.md)\r\n\r\n## License\r\n\r\nRead more at [LICENSE](LICENSE).\r\n\r\nCopyright 2020 @ DjDeveloperr\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdeveloperr%2Fslash-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjdeveloperr%2Fslash-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdeveloperr%2Fslash-router/lists"}