← Back to 3D Workbench

Mechanical CAD Studio — Privacy Policy (Starter Draft)

DRAFT TEMPLATE NOTICE — NOT LEGAL ADVICE
This document is a practical starter template draft prepared for customization by the Founder and must be reviewed and approved by a qualified privacy/tech attorney in your jurisdiction (especially regarding GDPR/UK GDPR, CCPA/CPRA, and international data transfers) before publishing. Replace every bracketed placeholder ([...]) with your finalized details prior to go-live.

Founder Customization Checklist (Remove Before Publishing)

Before publishing this Privacy Policy on [App Domain / URL], customize and verify:


Effective Date: [Effective Date]

Data Controller / Operator: [Company Legal Name] ("we," "us," or "our")

Service: Mechanical CAD Studio at [App Domain / URL]

Privacy Contact: [Privacy Email] (or [Support Email])


1. Local-First Privacy Architecture Overview

Mechanical CAD Studio is engineered so that deterministic 3D CAD modeling runs locally in your web browser:


2. Information We Collect & Where It Is Stored

2.1 Embedded Server Database (data/cad_studio.db — SQLite)

When you interact with authenticated, metered, or cloud features on our backend server ([Hosting Provider & Region]), we store the following categories of records in our embedded SQLite database (data/cad_studio.db):

Table / RecordExact Data StoredPurpose
Account Records (users)Account ID (usr_...), email address (lowercased), display name, salted scrypt password hash (crypto.scryptSync with 16-byte random salt—plaintext passwords are never stored), plan tier (free, pro, shop), monthly credit quota & reset timestamp, bonus credit balance, stripe_customer_id, stripe_subscription_id, and created_at timestamp.Account creation, authentication, credit/storage quota management, and Stripe billing linkage.
Session Records (sessions)SHA-256 hash (token_hash) of your active session token, user_id, expires_at (30-day TTL), and created_at.Maintaining authenticated logins securely without storing raw session tokens in the database.
Anonymous Trial Records (anon_trials)Pseudonymous trial actor ID (anon_<uuid> from your cad_anon cookie, or an IP-derived SHA-256 bucket ip_<hash> when no cookie is present), count of trial AI credits used (0–3), and updated_at.Enforcing the 3-credit anonymous AI trial without requiring registration.
Cloud Projects (projects)Project ID, owner user_id, part_name, feature_count, material_id, unit_system, is_public flag, optional share_slug, full project JSON (payload_json containing partName, curveSegments, unitSystem, materialConfig, features, and up to 40 snapshots), created_at, and updated_at.Cross-device cloud sync and optional public ?share=<slug> design sharing.
AI Usage Ledger (usage_ledger)actor_key (user:<id> or anon:<id>), user_id (if signed in), client IP address, synthesis mode (new or modify), prompt preview (first 180 characters of your prompt), used_grounding / cache_hit flags, credits charged, token counts (prompt_tokens, candidates_tokens, thoughts_tokens), estimated USD cost, HTTP status code, and created_at.Quota auditing, preventing automated abuse, reconciling AI spend, and enforcing our hard daily spend circuit breaker (DAILY_API_SPEND_CAP_USD).
OEM Lookup Cache (oem_cache)Normalized OEM lookup query key (oem_v1:...), synthesized Search Grounding engineering brief (summary), public web source titles/URLs (sources_json), and downloaded public product images (images_json), with a 7-day expiration (expires_at).Avoiding redundant web search lookups and reducing latency/cost on popular OEM part codes.
Stripe Event Log (stripe_events)Stripe webhook event_id, event_type, and processed_at.Webhook idempotency so payment retries never double-credit or misapply plan changes.

2.2 Transient In-Memory Security Controls (RAM Only)

To protect POST /api/cad/synthesize from scraping and burst abuse, our server temporarily tracks per-IP sliding-window request timestamps (6 req/min anonymous, 15 req/min authenticated) and active single-flight concurrency=1 actor locks in server RAM. These rate-limit buckets automatically expire after 60 seconds and are not written to disk.

2.3 Browser Local Storage (localStorage: mcs_draft_v1)

Your browser saves your active workbench draft automatically under the localStorage key mcs_draft_v1. This stores partName, curveSegments, unitSystem, materialConfig, features, and snapshots solely on your local device so browser refreshes do not lose unsaved modeling work.

2.4 Strictly Necessary HttpOnly Cookies (cad_session, cad_anon)

We use two first-party HttpOnly, SameSite=Lax, Path=/ cookies (marked Secure over HTTPS in production):

Cookie NameLifespan (Max-Age)Type & Purpose
cad_session30 days (2,592,000s) or cleared on Sign OutHMAC-SHA256-signed authentication cookie linking your browser to your active session in sessions.
cad_anon365 days (31,536,000s)HMAC-SHA256-signed pseudonymous trial token tracking your 3 free guest AI synthesis credits in anon_trials.

3. Third-Party Processors & External Data Flows

3.1 Stripe (Payment Processing & Billing Portal)

We use Stripe, Inc. to process payments (Maker Pro, Shop & Team, and Repair Credit Pack), calculate/collect taxes where enabled, and host the Stripe Customer Portal.

3.2 Google Gemini API & Google Search Grounding (AI Synthesis)

When you submit a custom AI synthesis prompt (excluding $0 cached Starter Demo Chips served locally from server/starterCache.ts):

3.3 Optional Outbound Affiliate & Print-on-Demand Links (Verify & Export)

Inside the Verify & Export modal (and optional material/hardware guides), we may display an outbound referral link such as "Order 3D Print Quote →" (ORDER_PRINT_AFFILIATE_URL, e.g., Craftcloud, JLC3DP, PCBWay, or Xometry) or optional filament/fastener partner links.

3.4 Infrastructure & Hosting

Our Node.js application and persistent SQLite volume (/app/data/cad_studio.db) run on [Hosting Provider & Region, e.g., Railway / Render / Fly.io], which acts as our infrastructure subprocessor with encrypted transport (HTTPS/TLS) and host-level volume snapshots.


4. How We Use Your Data & Legal Bases (EEA/UK GDPR Reference)

Where GDPR/UK GDPR applies, we process personal data under the following legal bases:


5. Public Share Links (?share=<slug>) Notice

Cloud Projects are Private by default. If you toggle Public Share Link (is_public = true) on a project, anyone who possesses the generated /?share=<slug> URL can view the partName, your account displayName, and the project's parametric geometry JSON (GET /api/shared/:slug). Avoid placing sensitive personal information in your displayName, partName, feature labels, or snapshot names on publicly shared parts. Toggling the project back to Private or deleting it disables GET /api/shared/:slug immediately.


6. Data Retention

Data CategoryRetention Period
Account Profile (users) & Private Cloud Projects (projects)Retained while your account remains active, or until you delete individual projects or request account deletion.
Session Tokens (sessions)Automatically expire after 30 days or are deleted immediately on Sign Out.
OEM Lookup Cache (oem_cache)Automatically expires after 7 days (expires_at).
AI Usage Ledger (usage_ledger)Retained for [Usage Ledger Retention Period, e.g., 12–24 months] for quota verification, cost monitoring, and abuse audits, then purged or anonymized.
Billing / Webhook Logs (stripe_events & Stripe records)Retained as required for accounting, tax, chargeback defense, and financial audit compliance ([e.g., 7 years]).
Browser Draft (mcs_draft_v1)Stored locally in your browser until you clear browser site storage or overwrite it.

7. Your Rights: Data Export, Deletion & Privacy Controls

7.1 Self-Serve Controls Inside the App

7.2 Account Deletion & Statutory Rights Requests

Depending on your jurisdiction (including the EEA/UK under GDPR and California under CCPA/CPRA), you may have the right to request:

To exercise any of these rights or request full account deletion, email [Privacy Email] (or [Support Email]) from your registered account email address. We will verify ownership and respond within [30] days (or shorter statutory deadlines where applicable), subject only to minimal retention required by tax/accounting law or active fraud/security investigations (and normal rolling expiration of encrypted host disk backups).


8. Security Safeguards

We implement practical technical safeguards aligned with our architecture, including:

No internet transmission or electronic storage is 100% immune from risk; please choose a unique, strong password (minimum 8 characters) and keep your account email secure.


9. International Data Transfers & Children's Privacy


10. Updates & Contact Information

We may revise this Privacy Policy to reflect product updates or legal requirements by posting the updated version with a new Effective Date (and notifying registered users by email or in-app banner for material changes).

Privacy & Data Requests:

[Company Legal Name]

Email: [Privacy Email] / [Support Email]

Address: [Company Mailing Address]