{"id":21311531,"url":"https://github.com/wonderlandengine/discord-activity-example","last_synced_at":"2025-03-15T20:42:50.667Z","repository":{"id":257107661,"uuid":"857342762","full_name":"WonderlandEngine/discord-activity-example","owner":"WonderlandEngine","description":"Example of a Discord Activity built with Wonderland Engine.","archived":false,"fork":false,"pushed_at":"2025-02-11T04:53:47.000Z","size":71,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T05:29:14.056Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WonderlandEngine.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":"2024-09-14T12:01:11.000Z","updated_at":"2024-10-09T21:52:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ff36a6f-3b6b-4a14-a9cd-0dc6c121ddaf","html_url":"https://github.com/WonderlandEngine/discord-activity-example","commit_stats":null,"previous_names":["wonderlandengine/discord-activity-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WonderlandEngine%2Fdiscord-activity-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WonderlandEngine%2Fdiscord-activity-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WonderlandEngine%2Fdiscord-activity-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WonderlandEngine%2Fdiscord-activity-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WonderlandEngine","download_url":"https://codeload.github.com/WonderlandEngine/discord-activity-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790945,"owners_count":20348378,"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-21T17:18:45.265Z","updated_at":"2025-03-15T20:42:50.662Z","avatar_url":"https://github.com/WonderlandEngine.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wonderland Engine - Discord Activity Example\n\n[![Build \u0026 Test](https://github.com/WonderlandEngine/discord-activity-example/actions/workflows/github-pages.yml/badge.svg)](https://github.com/WonderlandEngine/discord-activity-example/actions/workflows/github-pages.yml)\n[![Discord][discord]](https://discord.wonderlandengine.com)\n\nExample of a Discord Activity built with the [fastest 3D engine for the web](https://wonderlandengine.com).\n\n![demo-gif](https://github.com/WonderlandEngine/discord-activity-example/blob/main/images/wonderland-engine-discord-activity.gif)\n\n## Setup\n\nRetrieve a \"Discord Client ID\" and \"Discord Client Secret\" via the [Discord Developer Portal](https://discord.com/developers/docs/activities/overview),\nby [creating a new app](https://discord.com/developers/docs/activities/building-an-activity#step-1-creating-a-new-app).\n\n1. Copy the `example.env` as `.env`\n2. Replace the `DISCORD_CLIENT_ID` and `DISCORD_CLIENT_SECRET` in the `.env` file with your app's.\n3. `npm i` to install package dependencies\n\n### Run\n\n1. Run via `cd server \u0026\u0026 npm run dev` and `cd server \u0026\u0026 npm run tunnel`\n2. Update URL mapping of your Discord app to map `/` to the URL provided by the cloudflare tunnel.\n2. Open `DiscordActivityExample.wlp` in Wonderland Editor.\n3. [Enable developer mode](https://discord.com/developers/docs/activities/building-an-activity#enable-developer-mode-in-your-client) on your Discord client.\n\nThe npm server run via `npm run dev` will reverse proxy Wonderland Editor's webserver and websockets\nthrough the cloudflare tunnel.\n\n[discord]: https://img.shields.io/discord/669166325456699392\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderlandengine%2Fdiscord-activity-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwonderlandengine%2Fdiscord-activity-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonderlandengine%2Fdiscord-activity-example/lists"}