MagicWorlds V3 is the next-generation web experience for immersive digital adventures. Built with Next.js, it combines performance, scalability, and modular architecture to power a connected world of creativity, gaming, and community.
- ⚡ Next.js 14 Framework – Fast, modern, and optimized for performance
- 🎨 Dynamic UI Components – Modular and reusable interface blocks
- 🔗 API-Ready Structure – Built to integrate with backend and third-party APIs
- 🪙 Web3-Ready (Optional) – Supports blockchain-based features for in-game tokens and rewards
- 🧩 Developer Friendly – Organized codebase with clear folder structure and environment setup
Follow these steps to install and set up the project on your local environment.
-
Download and extract the template from Next.js Templates
-
Navigate to the project directory:
cd magicworlds-v3-
Install all dependencies:
npm install
or
yarn install
-
Start the development server:
npm run dev
Once it’s ready, the app will be available at: 👉 http://localhost:3000
Comprehensive documentation is included with the template, covering:
- Integration guides
- API setup and configuration
- Environment variables
- Deployment best practices
We welcome contributions! Please fork the repository, create a new branch for your feature or bug fix, and submit a pull request.
This project is licensed under the MIT License — free to use, modify, and distribute with attribution.
MagicWorlds is a digital universe — blending technology, creativity, and community. Stay tuned for new module updates, in-game integrations, and ecosystem tools.
“Where imagination meets innovation — welcome to MagicWorlds.”
Use this runbook to validate the /api/tapfiliate/events route against the Tapfiliate v1.7 API. The dev server (npm run dev) must be running and the following environment variables configured:
TAPFILIATE_API_KEY– Required, provided by Tapfiliate dashboard.TAPFILIATE_BASE_URL– Optional. Defaults tohttps://tapfiliate.com/api/1.7.
Visit the play page with the referral query parameter so the browser stores it locally:
http://localhost:3000/play?ref=TESTPOC_DAMI_001
Replace the host with your deployed URL if you are testing in staging or production.
Run the helper script to trigger both S2S calls through the Next.js route:
npm run tapfiliate:poc -- \
--base-url http://localhost:3000 \
--wallet 0xYourWalletHere \
--ref TESTPOC_DAMI_001 \
--amount 10 \
--currency USDThe script performs three actions:
GET /play?ref=…(sanity check)POST /api/tapfiliate/eventswitheventType="wallet_connect"POST /api/tapfiliate/eventswitheventType="conversion"
Every request logs a trace ID plus Tapfiliate status in the Next.js server console. Confirm that both events return HTTP 200 and then verify the Tapfiliate dashboard shows a customer and a $10 conversion attributed to TESTPOC_DAMI_001.
To customize values, pass --conversion-id, --amount, or set the corresponding TAPFILIATE_POC_* environment variables before running the script.