{"id":25441175,"url":"https://github.com/binary-blazer/distivity","last_synced_at":"2025-05-15T16:11:21.667Z","repository":{"id":277907524,"uuid":"932356665","full_name":"binary-blazer/distivity","owner":"binary-blazer","description":"A modern RESTful API to get presence details of a discord account by ID","archived":false,"fork":false,"pushed_at":"2025-02-16T22:18:13.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T23:22:00.514Z","etag":null,"topics":["api","discord","docker","go","golang","presence","rest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binary-blazer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-13T19:28:49.000Z","updated_at":"2025-02-16T22:20:13.000Z","dependencies_parsed_at":"2025-02-16T23:22:09.952Z","dependency_job_id":"a35bf799-5150-45cc-a69b-d44a64a68678","html_url":"https://github.com/binary-blazer/distivity","commit_stats":null,"previous_names":["binary-blazer/distivity"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-blazer%2Fdistivity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-blazer%2Fdistivity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-blazer%2Fdistivity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binary-blazer%2Fdistivity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binary-blazer","download_url":"https://codeload.github.com/binary-blazer/distivity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239286310,"owners_count":19613699,"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":["api","discord","docker","go","golang","presence","rest"],"created_at":"2025-02-17T12:19:53.223Z","updated_at":"2025-02-17T12:19:54.096Z","avatar_url":"https://github.com/binary-blazer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distivity\n\nDistivity is a modern RESTful API that allows you to get presence details of a Discord account by ID. It provides endpoints to fetch user information, avatars, banners, and status.\n\n## API Capabilities\n\n### Endpoints\n\n- **GET /**: Returns basic information about the API.\n- **GET /user/:id**: Fetches detailed information about a user by their Discord ID.\n- **GET /avatar/:id**: Retrieves the avatar of a user by their Discord ID.\n- **GET /banner/:id**: Retrieves the banner of a user by their Discord ID.\n- **GET /status**: Returns the status of the API.\n\n### Features\n\n- Fetch user information including username, discriminator, avatar, banner, and activity.\n- Retrieve user avatars and banners in high resolution.\n- Get the current status of the API.\n\n## Self-Hosting Requirements and Setup Instructions\n\n### Requirements\n\n- Go 1.23.3 or higher\n- A Discord bot token\n- A server or local machine to run the API\n\n### Setup Instructions\n\n1. Clone the repository:\n\n   ```sh\n   git clone https://github.com/binary-blazer/distivity.git\n   cd distivity\n   ```\n\n2. Update the configuration in `./config/variables.go`\n\n3. Rename the `.env.example` file to `.env` and update the values:\n\n   ```sh\n   # On Unix\n   cp .env.example .env\n\n   # On Windows\n   ren .env.example .env\n   ```\n   \n   The `.env` file should look like this with your values:\n   ```env\n   PORT=8080 # Port\n   DISCORD_BOT_TOKEN=\"\" # Bot token\n   DISCORD_GUILD_ID=\"\" # Guild ID\n   DISCORD_GUILD_INVITE=\"\" # Guild invite\n   ```\n\n4. Install the dependencies:\n\n   ```sh\n   go mod tidy\n   ```\n\n5. Run the API:\n\n   ```sh\n   go run main.go\n   ```\n\n6. The API should now be running on `http://localhost:3000`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-blazer%2Fdistivity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinary-blazer%2Fdistivity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinary-blazer%2Fdistivity/lists"}