Security
How LoomCode handles code and data
Where your prompts, images, keys and generated code go in LoomCode, what the server logs, how sandboxes and share links work, and which protections exist.
When you generate an app, your prompt and any images go from your browser to the LoomCode server. LoomCode sends requests to OpenAI for its models and through OpenRouter for other hosted models. E2B runs the generated code in a temporary cloud sandbox. LoomCode logs operational metadata. Projects are stored when you choose to save them.
Data flow
| Data | Goes from | Goes to | Notes |
|---|---|---|---|
| Prompt text and conversation | Your browser | LoomCode server, then the selected model provider | Each request carries the conversation so far (up to 40 messages). |
| Images you attach | Your browser | LoomCode server, then the model provider | Sent as base64 data URLs; only for vision-capable models. |
| Generated project | Model provider | LoomCode server, then your browser | Streamed to you; also sent to E2B to run. |
| Generated files and dependencies | LoomCode server | E2B sandbox | The sandbox runs the code and serves the preview. |
| Preview traffic | Your browser (and anyone with the link) | E2B sandbox at *.e2b.app | Not routed through the LoomCode server. |
| Full-project export | E2B sandbox | LoomCode server, then your browser or your private GitHub repo | Packaged on request. GitHub App access is limited to repositories selected during installation. |
| Supabase connection | Your browser | LoomCode, Supabase and the E2B preview | Uses a publishable key. Exports include placeholders for your host's environment variables. |
Generation does not automatically save a project. Use Workspace → Projects to save generated source and project settings to your account or to this browser when using the guest library. Saving excludes conversations, attachments, preview links and integration keys.
Optional services
A deployment may enable any of these. Whether the hosted site enables each one is up to the operator; each item applies only if enabled by the operator.
- Supabase as an optional database for a generated project. LoomCode accounts and project saves use PostgreSQL.
- GitHub and Vercel for publishing. LoomCode encrypts stored publishing credentials.
- Stripe for checkout and subscription management.
- PostHog product analytics. Session recording is off by default and all on-screen text and element attributes are masked. Events record actions such as a generation being submitted or a sandbox being created, with the template and model id. Signed-in users are identified by an opaque user id, not their email address.
- Vercel Web Analytics for page views, when the site is hosted on Vercel with that feature on.
- Resend for verification and password reset email when configured.
- Upstash or Vercel KV for rate-limit counters and share-link records. Counters are keyed by a hashed identity; a share record holds only the preview URL and its expiry time.
What the server logs
LoomCode's own server logs record metadata only: the model id, the template id, timings, status codes and whether a sandbox run succeeded. The code never logs prompts, generated code, API keys or user ids.
For rate limiting, the server identifies you by a salted SHA-256 hash of your user id (when signed in) or of your IP address (when sign-in is off). The hash, not the raw value, is used as the counter key and as an ownership marker on the sandboxes you start.
The hosting platform that runs a LoomCode deployment may keep its own request logs, such as IP addresses and URLs. That is outside the application code and depends on the operator's setup.
Sandbox isolation
Generated code never runs on the LoomCode server. It runs in an E2B sandbox, which E2B describes as "a fast, secure Linux VM created on demand" and as "isolated cloud sandboxes" (E2B documentation, checked 2026-11-22). LoomCode starts a new sandbox for every generation and does not reuse sandboxes between users.
Sandboxes are temporary: about 10 minutes by default (about 30 for Nuxt/Vue), extended to at most 24 hours if you share the preview, then deleted along with any data entered into the app. We make no claims about E2B's infrastructure beyond what E2B documents.
Share links and previews are public
A preview URL and a share link let anyone who has the link open the running app until it expires. There is no password or sign-in on the preview itself. Treat a share link like a public URL, and do not share apps that display private data. Details are in Preview, share, export and deploy.
Protections in the code
These are implemented in LoomCode's server code as of 2026-11-22:
- Authentication verified on the server. The server verifies a Better Auth session before generation and account operations, and scopes account data to that session.
- Request validation. Requests are checked against strict schemas: at most 40 messages, 24,000 characters per text part, 4 images of at most 5 MB each in PNG, JPEG, WebP or GIF, and a 30 MB body limit.
- Model ids resolved on the server. The model and provider are looked up in LoomCode's own catalog; the browser cannot choose an arbitrary provider or endpoint.
- Usage limits on generations by account and plan, with separate limits on sandbox starts, share links and exports.
- Origin check. Browser requests from other websites are rejected with "Cross-site requests are not allowed."
- Generated projects validated before they run. File paths must be relative (no absolute paths, no
.., no.envfiles), and the total project size is capped. - Dependency installs built on the server. Extra package names from the model must match a strict npm, PyPI or Composer name pattern. The server builds and quotes the install command itself; any install command the model suggests is never executed.
- Sandbox ownership checks. Each sandbox is tagged with a hash of the identity that started it. Share links and full-project exports are only allowed for sandboxes you started.
- Share links restricted. Only
https://*.e2b.appURLs of your own sandbox can be shared, for at most 24 hours. - Exports exclude secrets. Full-project exports leave out
.envfiles, SQLite databases, dependencies and build output. - Server keys stay on the server. Provider and E2B keys are server-only environment variables and are not exposed to browser code.
What LoomCode does not provide
- No security certifications or audits. LoomCode has no SOC 2, ISO 27001 or similar certification, and has not had a published third-party audit.
- No data retention guarantees from third parties. Model providers and E2B process the data you send under their own terms and policies. Read them before sending anything sensitive:
- OpenAI: openai.com/policies
- OpenRouter: openrouter.ai/privacy
- Anthropic: anthropic.com/legal/privacy
- E2B: e2b.dev/privacy-policy
- Google, xAI, DeepSeek and Groq: see each provider's own privacy and data-use policies.
- No review of generated code. Generated code can contain bugs and security problems. Review it, and work through the before real users checklist before deploying it.
To ask about data handling or report a security issue privately, use the LoomCode contact page.
Reporting a security issue
Send suspected vulnerabilities to the LoomCode AI operator and keep the details private while they investigate. See the Privacy Policy for privacy requests and the Terms of Service for acceptable use.