Connectdocs

1. Run the server

Start the Alchemy Connect server locally. By default it listens on port 3000.

Terminal
git clone https://github.com/x2neptunereal/Alchemy-Connect
cd Alchemy-Connect
npm install
npm run dev

See Server for more.

2. Execute the loader

Paste this into your executor while in game:

Luau
synchronization = {
    port = 3000,
    base_url = "localhost",
    refresh_time = 20
};loadstring(game:HttpGet("https://connect.getalchemy.net/open.luau"))()

The loader connects to your server, links your account and starts sending stats every refresh_time seconds. See Configuration for what each setting does.

Heads up

Keep synchronization global (no local), or the loader can't read your settings.

Supported games

The loader has built-in support for popular games like Blox Fruits and more. In a supported game, your stats, inventory and weapons are sent automatically, so there's nothing else to write.

In other games the loader still links your account. To send stats and items there, use a custom script.

3. Check the dashboard

Open the dashboard in your browser. Your username, display name and current game should appear, followed by your stats and items.

Custom script

For games without built-in support, or to send your own data, write the script yourself. This one connects, links your account and sends one batch of stats:

Luau
-- Setting
local synchronization: {} = {
    port = 3000,
    base_url = "localhost",
    refresh_time = 10,
}

-- Services
local http: HttpService = game:GetService("HttpService")
local plr: Player = game:GetService("Players").LocalPlayer

-- Connect
local ws: {} = WebSocket.connect(
    "ws://" .. synchronization.base_url .. ":" .. tostring(synchronization.port)
    .. "/connect/" .. tostring(plr.UserId)
)

-- Link account
ws:Send(http:JSONEncode({
    types = "link",
    data = {
        username = plr.Name,
        userid = plr.UserId,
        displayname = plr.DisplayName,
        time = os.time(),
        games = game.GameId,
    }
}))

-- Debug: print anything the server sends back
ws.OnMessage:Connect(function(msg: string): nil
    print("Debug: ", msg)
end)

-- Send stats + items
local sendStats = function(): nil
    ws:Send(http:JSONEncode({
        types = "stats",
        stats = {
            { label = "Level", value = 42 },
            { label = "Coins", value = 12000000 },
        },
        items = {
            {
                name = "Backpack",
                types = "inventory",
                data = {
                    { name = "Potion", count = 3, icon = 732391129 },
                }
            },
        }
    }))
end

sendStats()

See Stats and Items for every field you can send.

Tip

Nothing showing? Check the executor console. The OnMessage handler prints everything the server sends back, prefixed with Debug:.