Navigation

Share JSON via Compressed URL

Learn how to share your JSON data, editor state, or transformation config with teammates using DataLensia's stateless sharing.

Last updated:

DataLensia lets you share your entire working state โ€” data, transformations, and configurations โ€” through a single URL. No accounts, no uploads, no databases.

๐Ÿšฉ The Use Case

You've set up a complex transformation in the Transform Builder and want your colleague to review it. Instead of exporting files and writing instructions, you can share a single link.

๐Ÿ› ๏ธ How to Share

You can share your work from both the integrated Workspace and individual Standalone Tools.

Sharing from a Workspace

  1. Open or create a Workspace from the Tools panel.
  2. Load your JSON data and optionally configure transformations, comparisons, etc.
  3. Click the Share icon in the top-right of the workspace header.
  4. The Share dialog generates a public link. Click Copy to copy it.
  5. Send the link to your colleague via Slack, Teams, or email โ€” they can open it and see the exact same state you shared.

Sharing from Standalone Tools

  1. Open any standalone tool (e.g., Editor, Comparator, Mermaid).
  2. Input your data or configure your diagram, diff, or conversion.
  3. Click the Share icon (๐Ÿ”—) found in the tool's action bar or toolbar.
  4. Send the generated link to your colleague โ€” they will see your exact data and configuration instantly.

Optional Password Protection

Public sharing remains the default for both workspaces and standalone tools.

  1. In the Share dialog, enable Protect with password.
  2. Enter and confirm a password of at least 12 characters.
  3. Click Generate protected link, then Copy.
  4. Send the link and share its password separately.

Recipients must enter the password before the shared data loads. Reloading a protected link asks for the password again. Changing either password field invalidates the generated link; disabling protection restores the public link. Closing the dialog resets the next Share to public mode.

The password protects the shared copy in that link. Saving or importing unlocked data uses the usual browser storage. Forgotten passwords cannot be recovered, and generating a new link does not revoke an older one.

Saving the unlocked view as your standalone version opens the normal tool URL with that saved content. Refreshing that normal URL does not ask for the share password. A cancelled replacement or failed save keeps the shared view open.

โš™๏ธ How It Works Under the Hood

  1. Serialize: Your data and configuration are serialized to a JSON string.
  2. Compress: The string is compressed using multiple algorithms simultaneously:
    • V1: LZ-String (URI-safe) โ€” best for very small payloads.
    • V2: Pako Deflate + Base64url โ€” best for general data (40-60% smaller than V1).
    • V3: Columnar encoding + Pako Deflate โ€” best for arrays of objects (tabular data).
    • V4: Columnar + Key aliasing + Pako Deflate with Custom Static Dictionary โ€” best overall, producing up to 15% shorter URLs for any workspace configuration.
  3. Select: The shortest output among V1, V2, V3, and V4 is automatically selected.
  4. URL: Smaller public tokens use the query string; public tokens over 8,000 characters use the hash fragment (#). The query reaches the hosting server when opened; the fragment is not sent with the page request.

When someone opens a public link:

  1. The query or hash fragment is read.
  2. The version prefix is detected (V1 has no prefix, V2 starts with 2., V3 starts with 3., V4 starts with 4.).
  3. The string is decoded and decompressed.
  4. The workspace state is reconstructed locally.

Protected links use a separate p1 format: the same shared snapshot is compressed and encrypted in the browser using a key derived from the password. They always use a URL fragment, regardless of size. The password is never included in the link. Opening one validates the envelope, asks for the password, authenticates and decrypts it, then decompresses and loads the data.

๐Ÿ“ Size Limits

ScenarioApproximate Limit
Small JSON (< 5KB)Always works
Medium JSON (5-50KB)Works on most platforms
Large JSON (50-100KB)May be truncated by messaging apps
Very large JSON (> 100KB)Use file export instead

Protected links additionally enforce a 512 KiB token limit and a 16 MiB limit on the serialized shared snapshot, including data and metadata. Browsers and messaging applications may impose lower URL limits. If a link is too long for your sharing channel, export a file instead.

๐Ÿ›ก๏ธ Privacy and Sharing

  • Public links contain compressed, unencrypted data. Anyone with the link can open it.
  • A public link using a query sends that encoded payload to the hosting server when opened.
  • Protected links encrypt the shared copy and keep the ciphertext in the URL fragment, outside the page request.
  • A strong password matters because someone with the ciphertext can guess passwords offline.
  • Once unlocked, recipients can copy or save the data. Protecting Share does not change local storage or add access control to generated mock endpoints.

๐Ÿš€ Try it now

Open or create a Workspace, load any JSON, and click the Share icon in the top-right of the workspace header to generate your first compressed link.