{"id":20510600,"url":"https://github.com/Karitham/corde","last_synced_at":"2025-05-09T07:32:04.440Z","repository":{"id":42227783,"uuid":"441312056","full_name":"karitham/corde","owner":"karitham","description":"A high level discord interactions wrapper, simple, idiomatic, testable and extensible. Based on outgoing webhooks, and designed from scratch for excellence","archived":false,"fork":false,"pushed_at":"2024-10-16T13:21:31.000Z","size":123,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T20:11:24.067Z","etag":null,"topics":["discord","go","golang","hacktoberfest","outgoing-webhooks","testing","webhook"],"latest_commit_sha":null,"homepage":"https://github.com/Karitham/corde","language":"Go","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/karitham.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":"2021-12-23T22:46:30.000Z","updated_at":"2024-12-17T18:14:29.000Z","dependencies_parsed_at":"2024-05-01T00:28:58.406Z","dependency_job_id":"d9c5aacf-f891-4a39-a2c9-fe5ed7f6cee6","html_url":"https://github.com/karitham/corde","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fcorde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fcorde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fcorde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fcorde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karitham","download_url":"https://codeload.github.com/karitham/corde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253209431,"owners_count":21871651,"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":["discord","go","golang","hacktoberfest","outgoing-webhooks","testing","webhook"],"created_at":"2024-11-15T20:30:10.806Z","updated_at":"2025-05-09T07:32:04.105Z","avatar_url":"https://github.com/karitham.png","language":"Go","funding_links":[],"categories":["Libraries"],"sub_categories":["Go"],"readme":"#\n\n\u003cspan align=\"center\"\u003e\n\n```txt\n                        _       \n                       | |      \n  ___   ___   _ __   __| |  ___ \n / __| / _ \\ | '__| / _` | / _ \\\n| (__ | (_) || |   | (_| ||  __/\n \\___| \\___/ |_|    \\__,_| \\___|\n                                \n```\n\n\u003c/span\u003e\n\n\u003cspan align=\"center\"\u003e\n\n[![report card](https://goreportcard.com/badge/github.com/Karitham/corde)](https://goreportcard.com/report/github.com/Karitham/corde)\n[![badge](https://pkg.go.dev/badge/github.com/Karitham/corde)](https://pkg.go.dev/github.com/Karitham/corde)\n\n\u003c/span\u003e\n\n---\n\ncorde is a discord webhook callback API wrapper. It aims to have an high level API to simplify the user's life as much as possible.\n\nIt contains many functions to help write as clean and concise code as possible, such as `f` suffixed functions which act like `Sprintf`.\n\nIt also has builders of some kinds, such as embed and response builders, which make error handling and responding a breeze.\n\nAll those don't hinder the fact that you can use corde with as much control as you want.\n\nBe aware that breaking changes will happen as of now, at least until v1.\n\n## Install\n\n```sh\ngo get github.com/Karitham/corde\n```\n\n### Usage\n\nThe easiest way to run the examples, or even to run your own is to use [ngrok](https://ngrok.com/) no login or domain required, and the product itself is great.\n\n## Examples\n\nThe most basic one is [**bongo**](0_example/bongo/main.go)\n\nThen comes [**todo**](0_example/todo/) that shows off subcommands routing and options\n\nAnd then we have [**moderate-myself**](0_example/moderate-myself/main.go) which is able to show and delete currently available commands.\nIt demonstrates the usage of components such as buttons.\n\nFinally, we have [**nft**](0_example/nft/main.go) which is a simple example using user commands \u0026 message commands.\n\nCorde is also actively used to rewrite and develop another discord bot of mine called [**WaifuBot**](https://github.com/Karitham/WaifuBot/) (for now see the corde branch)\n\n## Why\n\nHaving used most go discord libs available, I wanted something very lightweight yet high-level, that could just run on a lambda without state, caching or long start-up times.\n\nCorde has a single *runtime* dependency as of yet, a radix tree for routing purposes (and it's epic, you should check it out).\n\nThe common libs out there didn't really fit that purpose, and neither did they implement the webhook callback API available.\n\nCorde means *rope* in french, because discord's API inspires exactly that */s*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaritham%2Fcorde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKaritham%2Fcorde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKaritham%2Fcorde/lists"}