Docs
How Sync works
Installing, publishing, the API, and hooking up your AI.
Installing packages
There are four ways in, and they all install the same files into the same place.
Ask your AI
With Sync connected (see below), say install profilestore or add a promise library. The assistant resolves the package, checks its scan and installs it. If it can also run code in Studio, it does the whole thing itself.
Studio command bar
No plugin needed. Turn on HTTP requests (Game Settings › Security), then paste:
-- Paste into Studio's command bar. Needs Game Settings > Security > Allow HTTP Requests.local Http = game:GetService("HttpService")local function build(node, parent) local inst = Instance.new(node.className) inst.Name = node.name if node.source then inst.Source = node.source end for _, child in node.children do build(child, inst) end inst.Parent = parentendlocal function place(pkg) local service, folder = string.match(pkg.target, "^(%w+)%.(%w+)$") local root = game:GetService(service) local packages = root:FindFirstChild(folder) or Instance.new("Folder") packages.Name, packages.Parent = folder, root local old = packages:FindFirstChild(pkg.tree.name) if old then old:Destroy() end build(pkg.tree, packages) for _, dep in pkg.dependencies do place(dep) end print(("Sync: installed %s@%s"):format(pkg.name, pkg.version))endplace(Http:JSONDecode(Http:GetAsync("https://sync.synitx.dev/api/sync/v1/install/profilestore")))The Sync plugin
Search, install, update and remove packages from a panel in Studio. Get it on the Creator Store or read the plugin page. It uses the plugin protocol at the end of this page.
Where packages go
Shared and client packages go to ReplicatedStorage.Packages, server packages to ServerScriptService.Packages. Dependencies are installed beside them. Require them like any module:
local ProfileStore = require(game.ServerScriptService.Packages.ProfileStore)local Promise = require(game.ReplicatedStorage.Packages.Promise)AI assistants and MCP
Sync runs an MCP server at https://sync.synitx.dev/mcp (Streamable HTTP, no key). Any MCP client can search, inspect, scan and install packages with it.
Cursor, Windsurf, VS Code and other clients
{ "mcpServers": { "sync": { "url": "https://sync.synitx.dev/mcp" } }}Straight into Roblox Studio
install_package returns studio_luau: one Luau script with every source embedded that creates the package and its dependencies. Connect your assistant to Roblox Studio's own MCP server as well, and it runs that script in your open place, so “install profilestore” ends with ProfileStore in ServerScriptService. Without Studio access, the assistant hands you the script for the command bar.
Tools
resolve_requestTurn what the user said ("install profilestore", "I need a datastore library", "add promise") into the best Sync package, alternatives, and the install URL. Call this first when the user asks for a Roblox package in plain words.
search_packagesSearch Sync's Roblox/Luau package registry by name, keyword or purpose. Returns packages with installs, likes, realm and malware-scan verdict.
get_packageFull details of one package: description, author, versions, dependencies, malware-scan verdict and README.
install_packageInstall a Sync package into Roblox Studio. Returns `studio_luau`: one self-contained Luau script (all sources embedded, no HTTP) that creates the package and its dependencies in the right service. If you can run Luau in Studio (e.g. Roblox Studio MCP's execute_luau / run_code tool), run studio_luau exactly as given. Otherwise give it to the user to paste in Studio's command bar. Refuses versions blocked by the malware scan.
scan_codeCheck Luau source for Roblox backdoors and malware patterns (remote requires, webhooks, Studio detection, obfuscation). Returns verdict, score and line-level findings.
Without MCP
Assistants that read the web find /llms.txt, the OpenAPI spec at /openapi.json, and JSON-LD on every package page. The resolver turns a sentence into an install:
GET https://sync.synitx.dev/api/sync/v1/resolve?q=install+profilestoreGET https://sync.synitx.dev/api/sync/v1/install/profilestore?format=luausync.json
Put it beside your package's code (the repo root, or the package's folder in a monorepo). Only name and version are required.
{ "name": "my-datastore", "version": "1.2.0", "description": "Session-locked saves with retries.", "realm": "server", "category": "data", "license": "MIT", "keywords": ["datastore", "save"], "entry": "src/init.luau", "include": ["src"], "dependencies": { "promise": "^4.0.0", "goodsignal": "~0.3" }, "author": { "discord": "123456789012345678" }}| Field | Meaning |
|---|---|
| name | 2 to 40 lowercase letters, digits or dashes. Unique on Sync. |
| version | Semver. Used when the repo has no release tags. |
| realm | shared, server, client or plugin. Decides where it installs. |
| entry | The module require() loads. Guessed when missing (init.luau, then a file named after the package). |
| include | Folders to publish. Defaults to every .lua/.luau file, minus tests, docs, examples and vendored Packages. |
| dependencies | Other Sync packages and semver ranges (^, ~, x, >=, exact). |
| author.discord | Your Discord user ID. Proves the repo is yours when you publish or claim it. |
Have a wally.toml? Sync reads its name, version, realm and dependencies; you only need the author line.
Publishing
From GitHub (recommended)
Sign in with Discord, connect GitHub on the Publish page, and pick a repo: any repo you can push to counts as yours, so no sync.json is needed. (Without a GitHub link, paste the URL and add author.discord to sync.json instead.) Every semver tag (v1.4.0, 1.4.0, or trove@1.4.0 in monorepos) becomes a version pinned to its commit. Push a new tag and the next visit to the package picks it up. GitHub stays the source of truth; Sync never copies your repo.
Uploading files
Drop a folder instead and Sync commits it to its GitHub storage repo under packages/<name>/<version>/, tagged <name>@<version>. Folders follow Rojo's rules: init.luau turns a folder into a ModuleScript, .server.luau and .client.luau become Scripts and LocalScripts.
Rules
- Versions are immutable. Publish a new one instead of changing an old one.
- Versions blocked by the scanner are never served.
- Packages Sync indexed from GitHub can be claimed by their author through sync.json.
Malware scanning
Every version is scanned before it can be installed. Critical findings block the version; high ones mark it “review before using”. The scanner reads code with comments removed and reports the exact line. Try it on any script at /scanner.
- critical Requires a module by asset id
require(<number>) downloads and runs a module from the Roblox library at runtime. Its code can change at any time and is the most common way backdoors get into games.
- critical Runs code downloaded from the internet
Fetching text and passing it to loadstring lets whoever controls that URL run any code in your server.
- critical Uses exploit-only APIs
These functions exist only in exploit executors, never in Roblox. A package that calls them is an exploit script or is pretending to be one.
- high Inserts assets from the library at runtime
LoadAsset pulls models (and their scripts) from Roblox at runtime, outside the package you reviewed.
- high Behaves differently outside Studio
Skipping code only in Studio is how backdoors avoid being noticed while you test. Libraries rarely need this.
- high Sends data to a webhook
A package that posts to a chat webhook can leak player data, server info or your place's code.
- high Reads or rewrites function environments
getfenv/setfenv tricks are used to hide which globals code really calls, and they turn off Luau's optimisations.
- high Builds strings from character codes
Long string.char(…) lists hide text such as asset ids or URLs from anyone reading the source.
- high Long escaped byte string
Strings written entirely as escape codes are a common way to smuggle hidden code.
- medium Compiles code at runtime
loadstring needs ServerScriptService.LoadStringEnabled and runs text as code. Fine in a REPL tool, odd in a library.
- medium Prompts players to buy something
A library prompting purchases can sell the author's products inside your game. Check it's only called when you ask.
- medium Teleports players
Teleporting players to another place is a known way to steal traffic. Make sure the place id is yours.
- medium Hides or deletes its own script
Scripts that remove themselves from the Explorer are hard to find later.
- medium Waits for a date before acting
Code that only runs after a fixed date can pass review and turn on later.
- medium Very long line
Thousands of characters on one line usually means minified or obfuscated code you can't review.
- low Large encoded blob
A long base64-like string can be data, or hidden code waiting to be decoded.
- low Makes HTTP requests
Network access is normal for some packages (analytics, APIs). Know which hosts it talks to.
- low Kicks players
Fine in admin and anti-cheat packages, unexpected anywhere else.
- info Writes to _G or shared
Global state can clash with other code in your game.
REST API
JSON over HTTPS, CORS open, no key for reads. The full description is at /openapi.json.
| Endpoint | What it returns |
|---|---|
| GET /api/sync/v1/resolve?q= | A plain-language request resolved to a package, alternatives and install links |
| GET /api/sync/v1/search | Packages, filtered by q, category, realm; sorted by relevance, installs, trending, likes, updated, new |
| GET /api/sync/v1/packages/:name | Details, versions, scan verdicts, README, 30-day installs |
| GET /api/sync/v1/packages/:name/versions | Every version with its verdict |
| GET /api/sync/v1/packages/:name/files?v= | Source of every file in a version |
| GET /api/sync/v1/install/:name[@range] | Install plan with files and Instance tree; ?format=luau for a script; ?dry=1 to not count |
| POST /api/sync/v1/scan | Malware scan of { source } or { files } |
| POST /api/sync/v1/updates | Newer versions for { installed: { name: version } } |
| GET /api/sync/v1/stats | Registry totals |
| GET /api/sync/badge/:name | An SVG installs badge for your README |
Plugin protocol
What a Studio plugin needs, all of it from the endpoints above:
- Search with
/search; showverdictnext to every result. - Install with
/install/:name@range. Createtree(and each dependency's) undertarget. - Remember what was installed (an attribute like
SyncVersionon the root works), and post it to/updatesto offer upgrades.
// InstallPlan{ "name": "profilestore", "version": "1.0.3", "realm": "server", "target": "ServerScriptService.Packages", "verdict": "clean", "tree": { "name": "ProfileStore", "className": "ModuleScript", "source": "…", "children": [] }, "files": [{ "path": "ProfileStore.luau", "source": "…" }], "dependencies": [ /* InstallPlan… */ ], "source": { "repo": "MadStudioRoblox/ProfileStore", "ref": "v1.0.3", "commit": "…" }}