# DataStore Explorer

> Browse, inspect and safely edit live DataStore entries through Roblox Open Cloud, with previews, conflict checks, version history and an audit trail.

The **DataStore Explorer** reads and writes your experience's standard DataStores through Roblox Open Cloud. Every write is previewed before it is sent, checked against the revision you loaded so it never overwrites a newer save from a live server, and recorded in a dedicated DataStore audit log.

Open it from **DataStore Explorer** in the project sidebar. It has two tabs: **Browse** and **Audit log**.

## What you need

The Explorer works entirely server-side through the Open Cloud API key connected to the project. The key is never sent to your browser or to game servers. Two things gate every action: the Open Cloud scopes on the key, and your Bloxlytics permissions.

### Open Cloud scopes

Connect a key in **Integrations** (see [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud)). Bloxlytics reads the key's scopes when you connect it and enables each feature separately:

| Capability | Open Cloud scope | Used for |
| --- | --- | --- |
| List DataStores | `universe-datastores.control:list` | The **DataStores** pane |
| List entries | `universe-datastores.objects:list` | The keys pane |
| Read entries | `universe-datastores.objects:read` | Opening an entry or an earlier revision |
| Update entries | `universe-datastores.objects:update` | Saving edits and restoring revisions |
| Create entries | `universe-datastores.objects:create` | **New entry** |
| Delete entries | `universe-datastores.objects:delete` | **Delete entry…** |
| List versions | `universe-datastores.versions:list` | The **Version history** tab |

Browsing needs the first three. If one is missing, the Explorer shows a callout naming the missing scope with a link to **Open integrations**, rather than failing silently. If Open Cloud isn't connected at all, you'll see **Connect Roblox Open Cloud to browse DataStores**.

### Bloxlytics permissions

| Permission | Allows | Default roles |
| --- | --- | --- |
| `datastore.read` | Browse DataStores and ordered DataStores, read entries and revisions, view the DataStore audit log | Owner, Admin, Developer |
| `datastore.write` | Create, edit, delete and restore entries, and set or increment ordered DataStore values (also needs `datastore.read`) | Owner, Admin, Developer |

Analyst and Viewer roles have neither by default, and analytics permissions never imply DataStore access. Owners and admins can change this per workspace; see [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions). The API enforces both permissions on every request — hiding a button in the app is only a convenience.

When you can read but not write, the entry toolbar shows **Read only** with a tooltip explaining why: either your role lacks `datastore.write`, or the key lacks `universe-datastores.objects:update`.

## Browsing

The **Browse** tab has three panes: **DataStores**, keys and the entry. On narrow screens they stack, with a back button on each.

The current selection (DataStore, scope, key and tab) is kept in the page address, so you can bookmark an entry or send the link to a teammate who has access.

### DataStores

The **DataStores** pane lists the experience's standard DataStores, 100 at a time; use **Load more** for the next page. **Filter by name** narrows the DataStores already loaded (it matches anywhere in the name, ignoring case). A DataStore whose state isn't active shows its state as a badge. **Reload DataStores** fetches the list again.

> **Note:** Ordered DataStores have their own tab; see [Ordered DataStores](#ordered-datastores). Sorted maps and queues are in the [MemoryStore Explorer](https://docs.bloxlytics.app/operations/memorystores).

### Scopes

Roblox DataStores are divided into scopes, and Open Cloud has no endpoint for listing which scopes exist. So the keys pane asks you for one:

- **Scope** defaults to `global`, the scope Roblox uses when a game doesn't set one. Type another scope (up to 50 characters) and press Enter, or click away, to list it.
- **All scopes** lists keys across every scope at once. Each key then shows its scope as a badge, and opening it opens the entry in that scope.

### Keys and prefix search

Keys are listed 100 at a time, with **Load more keys** for more. Type in **Key prefix** to ask Roblox for keys that start with that text (up to 50 characters). Matching is a prefix match done by Roblox, not a substring search. Use the arrow keys to move through the list and **Reload keys** to refresh it.

Keys that end in a number of three or more digits — `Player_123456789`, for example — get a person icon linking to that user's [player profile](https://docs.bloxlytics.app/operations/player-lookup#player-profile). This is a guess from the key's name, so it only appears when the key looks like it holds a user ID.

Deleted keys aren't listed.

## Reading an entry

Selecting a key opens the entry. Its header shows the key (with **Copy key**), its scope, and badges for a deleted entry or a [profile-shaped value](#profile-view). The metadata row shows:

| Field | What it is |
| --- | --- |
| **Revision** | The revision ID you're viewing, with **Copy revision id** |
| **Revision time** | When that revision was written |
| **Created** | When the entry was first created |
| **Size** | The value's size against the 4 MB DataStore limit, with a meter that turns amber above 75% |
| **Users** | User IDs associated with the entry (used for GDPR data requests), each linking to the player profile |
| **Attributes** | The entry's metadata attributes, viewable in a popover |

The entry has three tabs: **Value**, **Version history** and **Audit log**. The **Entry actions** menu offers the same plus **Copy entry JSON** and **Delete entry…**. **Reload entry** fetches the latest revision; if you have unsaved edits it asks before discarding them.

### Views

Choose a view with the **View** control:

- **Tree** — a structured, collapsible view of objects and arrays. Large objects and arrays show 200 children at a time, with a link to show more.
- **Profile** — offered only for profile-shaped values (see below).
- **Raw JSON** — the value as formatted JSON with line numbers, syntax highlighting and validation.

#### Profile view

Values saved by profile libraries such as ProfileService and ProfileStore are detected automatically: an object with a `Data` key and at least one other of `MetaData`, `GlobalUpdates`, `RobloxMetaData`, `UserIds` and `WasCorrupted`. These open in the **Profile** view by default, with each section labelled:

| Section | Shown as |
| --- | --- |
| `Data` | The player's saved data |
| `MetaData` | Session locks, load counts and tags managed by the profile library |
| `GlobalUpdates` | Cross-server updates waiting to be processed |
| `RobloxMetaData` | Metadata stored alongside the profile |
| `UserIds` | Roblox users associated with this profile (GDPR), each linking to the player profile |

Any other top-level keys appear under **Other keys**. The header shows **Was corrupted** or **Not corrupted** from the profile's `WasCorrupted` flag.

### Search and copy

In the tree and profile views, **Search keys and values** finds keys and primitive values containing your text, ignoring case. Matches are highlighted and their parents expand automatically. Press Enter for the next match and Shift+Enter for the previous one, or use **Previous match** and **Next match**. **Expand all** and **Collapse all** open or close every container.

Each row's actions menu has **Copy value** and **Copy JSON path**. Paths use a JSONPath style rooted at `$`: object keys that are valid identifiers are written `.Coins`, others are quoted (`["Weird key"]`), and array indices are `[0]`. For example:

```text
$.Data.Inventory[2].Name
```

The **Raw JSON** view has its own **Find in JSON**, **Format** (re-indents valid JSON) and **Copy JSON**.

## Editing

Edits are made in your browser first and sent to Roblox only when you confirm them.

**1. Turn on editing**

In the tree or profile view, select **Edit**. (The raw view is editable straight away.) Select **Done editing** to return to read-only browsing; your pending changes are kept.

**2. Make your changes**

In the tree:

- Double-click a value, or press Enter on it, to edit it inline. Numbers must be valid numbers.
- Use a row's actions menu to **Edit value**, **Rename key** (F2), **Add key** or **Add item**, **Replace with JSON…**, change its type under **Change type** (**Object**, **Array**, **String**, **Number**, **Boolean**, **Null**), or delete it.
- Arrow keys move between rows; Left and Right collapse and expand.

In **Raw JSON**, edit the text directly. Tab inserts two spaces. The status line shows **Valid JSON** or the parse error with its line and column. You can't switch back to another view while the JSON is invalid.

Changed rows are marked with a dot. Ctrl+Z (Cmd+Z on macOS) undoes the last change, up to 50 steps.

**3. Review the changes**

A bar at the bottom summarises your unsaved changes (for example `3 changes · 2 changed, 1 added, 0 removed`) with **Undo**, **Revert** and **Review and save**. Ctrl+S (Cmd+S) also opens the review.

The **Review changes** dialog lists every changed path with its before and after values, or shows the whole **Original and modified** values side by side. Add an optional **Reason** (up to 300 characters); it's recorded in the project audit log with your name.

**4. Save to Roblox**

Select **Save to Roblox**. On success you'll see the new revision ID, and the entry reloads.

> **This writes to your live game data:** Saving changes the value your live servers read the next time they load this key. Nothing guards against an edit that is valid JSON but wrong for your game's code — check types and key names carefully, particularly inside profile `Data`.

Some details of how saves behave:

- **Size limit.** Values over 4 MB (4,194,304 bytes) can't be saved; the bar shows **Over 4 MB** and the API rejects the value.
- **No-op saves.** If the value is unchanged, the API returns **Nothing changed.** and writes nothing.
- **Users and attributes.** The editor changes only the value. The entry's associated user IDs and attributes are carried over unchanged on every save, because Roblox clears them if a write omits them.
- **Rate limit.** Saves are limited to 60 a minute from the same IP address.
- **Leaving with unsaved edits.** Selecting another key or DataStore asks **Discard unsaved changes?** before continuing, and the browser warns if you close or reload the tab.

## Conflicts

A live game server may save the same key while you're editing it. Bloxlytics never overwrites that save silently. It checks twice:

1. **Revision check.** The editor sends the revision ID it loaded. The API re-reads the entry first; if the current revision is different, nothing is written.
2. **Etag check.** The update request to Roblox carries the entry's etag, so a save that lands between Bloxlytics' check and its write is rejected by Roblox itself.

Either way, the **This entry changed while you were editing** dialog opens. Nothing was saved. It shows:

- **Changed remotely** — what changed between the revision you loaded and the latest one.
- **Your changes** — your edits, with any that touch a path that also changed remotely highlighted as **Also changed remotely**.

Then choose:

- **Discard mine and load latest** — drop your edits and reload the entry.
- **Reapply my changes on top of latest** — copy each of your changes onto the latest value, then open **Review changes** again so you can check the result before it is written.

> **Warning:** Reapplying works path by path: each value you set is written at the same path in the latest value, and each key you removed is removed if it's still there. Array items are matched by position, so if the remote change inserted or removed array items, your edits may land on different items. Read the review carefully, especially for paths marked **Also changed remotely**.

If the entry was deleted while you were editing, the dialog says **The entry was deleted** and only offers to discard your changes.

While your edits are based on an older revision (after a background refresh found a newer one), the unsaved-changes bar shows **Based on revision … — a newer one exists**.

## Creating entries

With a DataStore selected, **New entry** opens a dialog with:

- **Key** — up to 50 characters.
- **Scope** — defaults to the scope you're browsing.
- **Value** — any JSON value, validated as you type, up to 4 MB.
- **Associated user ids** — optional; up to 4 Roblox user IDs separated by commas, used for GDPR data requests.

Creating fails with **An entry with this key already exists.** if the key is taken, so live data is never replaced from this dialog. To change an existing entry, open it and edit it.

## Deleting entries

**Delete entry…** in the **Entry actions** menu asks you to type the key exactly to confirm. It's unavailable while you have unsaved edits, and the API refuses the delete if the entry changed since you opened it (**This entry changed since you opened it. Reload before deleting.**).

> **Danger:** Deleting marks the entry as deleted on Roblox immediately. Live servers that read the key get no data — for a player save, that usually means the player starts over the next time they join. Roblox keeps deleted entries recoverable through version history for 30 days, but the Explorer doesn't list deleted keys, so plan recovery before you delete.

## Version history

The **Version history** tab lists the entry's revisions, newest first, as Roblox returns them (up to 50). Roblox keeps earlier revisions for a limited time. The current revision is marked **Current**, and deleted revisions **Deleted**. This tab needs the `universe-datastores.versions:list` scope; without it you'll see **Version history isn't available**.

Select a revision to see it:

- **Compare with current** — every path that differs between that revision and the current value.
- **Value** — the revision's full value in the tree view.

### Restoring a revision

**Restore** replaces the current value with the selected revision's value. The confirmation, **Restore revision?**, shows what will change (up to 20 paths). Restoring writes the old value as a new revision — history is never rewritten, so a restore can be undone by restoring again.

Restoring goes through the same save path as an edit: it needs `datastore.write` and the update scope, it's conflict-checked against the current revision, and it's recorded as **Restored** in the audit logs. You can't restore while you have unsaved edits; save or revert them first.

## DataStore audit log

Every write attempt made through Bloxlytics — successful, conflicted or failed — is recorded in a DataStore-specific audit log. Open it from the **Audit log** tab at the top of the Explorer (filtered to the selected DataStore, if any, with **Show all DataStores** to widen it) or from an entry's **Audit log** tab (that entry only). It shows the 100 most recent records.

| Column | Shows |
| --- | --- |
| **When** | Relative time; hover for the exact time |
| **By** | The team member, or **Deleted user** |
| **Action** | **Updated**, **Created**, **Deleted** or **Restored** |
| **Entry** | `datastore/scope/key`; select it to open the entry |
| **Changes** | Number of changed paths; hover to see up to 12 of them |
| **Revision** | Previous and new revision IDs |
| **Result** | **Saved**, **Conflict — not saved** or **Failed** (hover for the error) |

Behind the table, Bloxlytics also stores the before and after values of each successful write. Values larger than 256 KB are stored as a size marker instead, and up to 500 changed paths are kept per record. Conflicts and failures are logged for edits and restores; creations and deletions are logged when they succeed.

Viewing the DataStore audit log needs `datastore.read`. Successful writes also appear in the [workspace audit log](https://docs.bloxlytics.app/workspaces/audit-log) as `datastore.entry_updated`, `datastore.entry_restored`, `datastore.entry_created` and `datastore.entry_deleted`, with the reason you gave.

> **Info:** The audit log only covers changes made through Bloxlytics. Saves made by your game servers show up as new revisions in **Version history**, not here.

## Ordered DataStores

The **Ordered** tab works with ordered DataStores: integer values that Roblox keeps sorted, usually leaderboards and counters. It needs different Open Cloud scopes from standard DataStores:

| Capability | Open Cloud scope | Used for |
| --- | --- | --- |
| Read ordered DataStores | `universe.ordered-data-store.scope.entry:read` | Listing entries by value and opening an entry |
| Edit ordered DataStores | `universe.ordered-data-store.scope.entry:write` | **Increment**, **Set value**, **New entry** and deleting |

Your Bloxlytics permissions are the same as for standard DataStores: `datastore.read` to browse and `datastore.write` to change anything.

### Opening an ordered DataStore

Roblox can't list ordered DataStores, so type the name under **Open by name** and select **Open**. To keep it in the list for everyone on the project, select **Save** under the name. Removing a saved name only takes it off the list; nothing changes on Roblox. If you open a name that doesn't exist, Roblox returns an empty list rather than an error, so check the spelling and scope when a store looks empty.

### Browsing entries

The entries pane shows the scope's entries sorted by value, 50 at a time, with each entry's position. Choose **Highest first** or **Lowest first**, and narrow to a range with **Min value** and **Max value** (both inclusive). Change the scope at the top; it defaults to `global`. When a key ends in a user id, a person icon opens that player's profile.

### Changing a value

Open an entry to see its current value. There are two ways to change it, and both show the value before and after for you to confirm, with an optional reason for the audit log:

- **Increment** adds an amount (negative to subtract). Roblox applies it atomically, so it can't overwrite a change a game server makes at the same moment. Use this for refunds and corrections.
- **Set value** replaces the value. Bloxlytics reads the entry again just before writing and saves nothing if it no longer matches what you saw. Roblox gives ordered entries no version tag, so a server write in the instant between that check and the save can still be overwritten. Prefer **Increment** while servers are writing to the entry.

If the value changed, you're shown the newer value and nothing is saved. Values are whole numbers.

**New entry** (the plus button on the entries pane) creates an entry and fails if the key already exists. Deleting asks you to type the key. Ordered DataStores keep no version history on Roblox, so a delete can't be undone there; the audit log keeps the value it removed.

### Ordered DataStore changes

Each entry's **Changes** tab, and **Audit log → Ordered DataStores**, list every change made through Bloxlytics with the value before and after, who made it, and whether it was saved.

## Opening a player's entry from their profile

Each player profile has a **DataStore** tab that opens that player's entry in the same editor, using a DataStore name, scope and key template you set once per project. See [Player Lookup](https://docs.bloxlytics.app/operations/player-lookup#datastore).

## Related

- [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud): Create an API key with the DataStore scopes.

- [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis): The Open Cloud APIs the Explorer calls and the scopes they need.

- [MemoryStore Explorer](https://docs.bloxlytics.app/operations/memorystores): Sorted maps and queues shared by your servers.
