Skip to content

docs(interfaces): clarify sandbox limits and add "Use external librar…#9800

Open
micaelakaplan wants to merge 1 commit into
developfrom
docs/interfaces-external-libraries
Open

docs(interfaces): clarify sandbox limits and add "Use external librar…#9800
micaelakaplan wants to merge 1 commit into
developfrom
docs/interfaces-external-libraries

Conversation

@micaelakaplan

@micaelakaplan micaelakaplan commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Applies Ibrahim's proposed Interfaces docs revisions (revisions gist, new-page gist) to close three gaps in the customer-facing Interfaces docs.

The three gaps

  1. Contradiction between two existing pages. The overview said Interfaces have "no external packages" and "no network access," while the admin settings page documents settings that grant exactly those things (API origins for network access, Advanced: external scripts for third-party packages). As written, customers reasonably conclude Interfaces can't do something they actually can.
  2. The SaaS-vs-self-hosted authoring story was undocumented. Two ways to author: Create with Agent (Cloud-only) and Develop Locally (works on any deployment, including air-gapped). No page said so.
  3. No page explained how to use an external library or API, or that calling an API and loading a package are unlocked in different places.

Files changed

File Change
docs/source/guide/interfaces.md Rewrote two Sandboxing bullets to remove the "no packages / no network" absolutes; added Availability callout after the intro.
docs/source/guide/interfaces-agent.md Added Cloud-only-vs-self-hosted callout to the "two ways" list.
docs/source/guide/interfaces-local.md Positioned Develop Locally as a first-class option on any deployment; expanded the source did not compile troubleshooting row to point at the new page.
docs/source/guide/admin-interfaces.md Added "Which section do I need?" callout at the top to prevent allow-listing a host in the wrong section.
docs/source/guide/interfaces-libraries.md NEW page: three paths (API origins / external scripts / bundle locally), worked point-cloud (three.js) example, troubleshooting table. Ordered at order_enterprise: 146, immediately after Interface details.

Nav registration is automatic via frontmatter (section: "Interfaces" + order_enterprise); no _multiconfig.yml/enterprise.yml update needed.

Follow-up (not blocking this PR)

The new interfaces-libraries.md page makes several implementation-specific claims that would benefit from engineering signoff before we take this out of draft:

  • IIFE / global build is the required pattern; ESM is rejected
  • Sandbox require only resolves a fixed set of built-ins
  • CSP permits eval and blob: web workers
  • Canvas/WebGL work inside the sandbox
  • No hard size limit on stored interface body
  • connect-src vs. script-src split between the two settings

Full engineering checklist (E1–E7) is in the source gist.

Test plan

  • Netlify preview builds
  • Interfaces sidebar shows the new "External libraries & APIs" entry after "Interface details"
  • Internal links resolve: interfaces-libraries from the overview, agent, local, and admin pages
  • Admonitions render (info, note, warning callouts)
  • Engineering signoff on the E1–E7 claims before marking ready for review

🤖 Generated with Claude Code

…ies & services" page

Three gaps in the Interfaces docs, from Ibrahim's proposal:

1. Overview claimed "no external packages / no network access" while the
   admin settings page documents exactly those (API origins, external
   scripts). Sandboxing bullets rewritten.
2. Cloud-vs-self-hosted authoring story was undocumented. Create with
   Agent is Cloud-only; Develop Locally works on any deployment
   (including air-gapped). Added Availability callout in the overview and
   a matching note in interfaces-agent.md; positioned Develop Locally as
   first-class rather than a fallback.
3. No page explained how to use an external library or API, or that
   calling one and loading one are unlocked in different places. New page
   interfaces-libraries.md covers the three paths (API origins /
   external scripts / bundle locally) with a worked point-cloud example
   and troubleshooting table.

- interfaces.md          - Sandboxing rewrite + Availability callout
- interfaces-agent.md    - Cloud-vs-self-hosted callout on the two-ways list
- interfaces-local.md    - Positioning sentence + expanded troubleshooting row
- admin-interfaces.md    - Which-section callout at top
- interfaces-libraries.md - NEW page (order_enterprise 146)

Nav registration is automatic via frontmatter; no _multiconfig.yml or
enterprise.yml update needed.

Source proposals:
https://gist.github.com/IbrahimHS-LSE/afa34366108a9cf6f3e4edf765f60dd8
https://gist.github.com/IbrahimHS-LSE/ea7198f65fd6665d423210993bb2cfd8

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-docs-new-theme ready!

Name Link
🔨 Latest commit 388c3c9
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6a47e7bb8f412b0008ef6af1
😎 Deploy Preview https://deploy-preview-9800--label-studio-docs-new-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit 388c3c9
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6a47e7bb41bd4a0008f851c9
😎 Deploy Preview https://deploy-preview-9800--heartex-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-storybook canceled.

Name Link
🔨 Latest commit 388c3c9
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6a47e7bbb589de0008bd6e95

@netlify

netlify Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploy Preview for label-studio-playground canceled.

Name Link
🔨 Latest commit 388c3c9
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6a47e7bb75cd950008aa4653

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant