> For the complete documentation index, see [llms.txt](https://docs.arcadiagames.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arcadiagames.io/developers/arcadia-dev-portal-overview/javascipt.md).

# Javascipt

#### **JavaScript Integration**

**JavaScript Game Integration**

Follow these 3 steps to integrate your multiplayer JavaScript-based game with Arcadia:

1. **Receive Players**

   * Launch your game via URL parameters including:
     * Player IDs
     * Stake amount
     * Webhook endpoint
     * Developer token

   ```js
   https://your-game.com?participants=[
       { "id": "9375639", "name": "Alice" },
       { "id": "1049983", "name": "Bob" }
   ]&currentPlayerId=9375639
   &potAmount=$1.00
   &webhookUrl=https://staging.arcadiagames.com/api/webhook-test/room-result
   &token=AUTH_TOKEN
   ```
2. **Process Webhook**
   * Your server will receive match results.
   * Use the data to validate the match and update Arcadia accordingly.
3. **Finalize Match**
   * Return a response containing the result, winner, and confirmation hash.

Development section is in staging right now, will move to production in the coming period.
