- Script tier: a bare
.lua/.luaufile, norebind.tomlanywhere above it. The modeline comment at the top of the file owns all configuration. - Package tier: a directory (or any ancestor of the script) containing
rebind.toml. The toml is package truth: it owns identity and can set every runtime option, overriding the entry’s modeline.
rebind init a package and move it in. Nothing about the code changes.
Layout
main.luau, then main.lua. requires resolve inside
the package root: <mod>.luau, <mod>.lua, <mod>/init.luau, <mod>/init.lua.
rebind.toml
[runtime] values are checked by the same rules as modeline values, so an
unknown instance or a tick_rate above 8000 is an error, not a silent
default. name, version, and min_sdk belong under [package] and are
refused under [runtime]. A list key such as window replaces the modeline’s
list instead of adding to it. A key Rebind does not know is ignored, with a
warning in the script’s log and in rebind check.
The manifest has three tables: [package], [runtime], and [marketplace].
Rebind ignores any other table at runtime, rebind check warns about it, and
publishing refuses it. A [permissions] table is the usual mistake:
permissions go under [runtime].
Permissions in a package
The toml key ispermissions, a list. Leaving it out grants every permission
except observe; permissions = [] declares that the script needs none.
What each permission covers, scoped entries such as net:poe.ninja, and how
the modeline spells them are in
Permissions.
A package you intend to publish must declare the key, even as []. The
registry refuses a version that leaves it undeclared, and rebind check fails
it offline once [marketplace] is present. A listing also explains its
sensitive permissions with permission_reasons, one "<family>: <reason>"
string each, for exec, net, screen or screen:target, and observe (see
Reasons and approval).
The [marketplace] table is read only by the CLI (rebind check,
rebind preview, rebind pack, and rebind publish), never by the runtime:
see the marketplace listing.
Precedence: toml over modeline
Inside a package, the entry’s modeline still works (an entry can run standalone during development), but any key also set inrebind.toml wins. A modeline
name, version, or min_sdk that differs from the manifest is surfaced as a
warning on the script’s log channel; [runtime] keys override without one. A
bare script outside any package declares name, version, and min_sdk in
its modeline:
Scripts inside a package
Any script under a package root (for examplescripts/wiggle.luau) runs in that
package’s context, with deliberate limits:
So a one-shot helper needs no boilerplate:
rb.script.exit() ends the script cleanly when it’s done.
Importing from GitHub
A package in a public GitHub repository installs from the app with Import from a link; Sharing and backups walks through the dialog. To be importable, therebind.toml must sit at the
top of the repository. A /tree/<ref> link takes a branch or a tag, and the
ref may contain slashes. Packages inside a folder are not supported. The
download is capped at 10 MiB compressed.
A single script from a gist or a paste
The same dialog takes agist.github.com or pastebin.com link to one
standalone script of up to 512 KiB. The gist must hold exactly one .luau or
.lua file. The script must declare -- rebind: name= and compile, otherwise
it is not importable.
Add an import button to your README
GitHub removesrebind:// links from a README, so the button points at a
rebind.gg page that hands the link to the desktop app. Replace OWNER/REPO:
url can also be a gist or a paste link. The button only opens the import
dialog with the link filled in. Nothing is fetched until the user presses
Check, and nothing installs until Import.
Link reference
Every link brings Rebind to the front. None of them installs, runs, sends, or
buys anything on its own.
The .rbp artifact
rebind pack produces the registry artifact: a gzipped tarball of the
package’s files. It leaves out hidden files and folders (names starting with a
dot), target and node_modules folders, any .rbp file, and the listing
media declared in [marketplace], which is uploaded separately at publish. A
DRM listing ships no archive at all: see DRM packages.
For validation and repacking after extraction, see
Installed and extracted packages.
The marketplace listing
[marketplace] is publish-time configuration. A package without it is a valid
dev package; rebind publish refuses without it. rebind init scaffolds the
block commented out. Unknown keys inside [marketplace] or
[marketplace.price] are errors.
Prices are USD with at most two decimals. A subscriber keeps the price they
subscribed at; see
Buy once or subscribe.
rebind check validates the shape and caps of whatever the block declares,
offline, against the limits below. Presence is rebind publish’s
job: it refuses a listing without a summary or without at least one PNG
image in media. rebind preview renders the listing as a local HTML page
before anything is uploaded. The server re-validates everything at publish.
A listing whose code uses rb.ai, rb.phone or require("@rebind/pro") is
marked as using Rebind Pro features when it is published;
anyone can install it. One whose entry declares hardware_only or
mouse_block, or handles mouse movement, is marked as needing a Rebind Link or
Rebind BYOH. Neither flag is set by hand.
Categories
Category is what the script does for the buyer. File a game, streaming, or accessibility tool under that domain first; file everything else by mechanism. Tags carry the other axis: a rapid-fire script filed undergaming can carry
tags = ["macro"].
Listing media
Bothicon and media are file paths inside the package, under assets/.
You never supply a URL; publish uploads the files and the marketplace stores
its own keys.
The first PNG image in media becomes the cover used by the grid and
product page. Publish removes it from the remaining gallery so it does not
appear twice. At least one PNG image is required, even when icon is set.
The optional icon is a separate listing asset and never becomes a gallery
slide. Remaining media entries keep their declaration order.
A cover can illustrate the package’s behavior or show a screenshot. Label
generated illustrations clearly; they are not evidence of runtime behavior.
Screenshots and demo video must come from the running script or its real UI.
Keep editable artwork source outside the packed package directory and declare
the exported listing images under assets/.
Overview
AREADME.md at the package root is the listing’s long description. When the
package root also has a MARKETPLACE.md, the listing uses that file instead,
so a README written for a code host can stay as it is. Only the chosen file is
sent and checked. In a plaintext listing both files are packed into the .rbp
and install with the script. A DRM listing ships neither: the buyer gets the
sealed script only.
- Rendered as Markdown in the product page overview card.
- Images are refused; listing images belong in
media. - Packages only. A bare script never picks one up.
- Without the chosen file, or when it is empty, the product page falls back to
summary. An emptyMARKETPLACE.mdstill takes the place ofREADME.md.
MARKETPLACE.md needs Rebind 3.21.1 or later. An earlier rebind publish
sends README.md and ignores MARKETPLACE.md without an error, or, for a DRM
listing, refuses to publish while the file is in the package.
DRM packages
drm = true needs a price and changes how the package ships. rebind publish
resolves the require graph and bundles every module into one file, so the
buyer receives a single sealed script instead of a directory of source (see
The .rbp artifact). The buyer’s Rebind applies the
permissions and targeting the manifest declared.
Two things cannot survive the flattening, and rebind check refuses them
once drm is set:
-
require()with a non-literal argument. A sealed file resolves its modules before it runs, so every module name must be a string literal. -
Data files a module reads at runtime (
rb.file.read,rb.config.read_toml,rb.audio.play,rb.screen.find_image), including any file underassets/thaticonormediadoes not declare. They would not reach the buyer. Inline the data into a.luaumodule, or publish without DRM. A call that takes a path, such asrb.screen.find_imageorrb.audio.play, can still use an inlined file: keep its base64 in the module and write it to the data folder when the script starts. The data folder needsmin_sdk = "3.13.0".Base64 makes a file about a third larger, and it counts toward the sealed file’s size limit.
drm = false
downloads only for buyers, as plain source. A sealed
script is tied to the buyer’s account, not a device; see
protected scripts.
Limits
The one home for every cap.rebind check enforces the ones it can see
offline; the server enforces all of them at publish.