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:
[Company Legal Name]— e.g., *Mechanical CAD Studio LLC*[App Domain / URL]— e.g.,https://cad.yourdomain.com[Privacy Email]/[Support Email]— e.g.,[email protected]/[email protected][Company Mailing Address]— Registered mailing address[Effective Date]— Launch date when published[Hosting Provider & Region]— e.g., *Railway / Render / Fly.io (United States)*[Usage Ledger Retention Period]— e.g.,12 monthsor24 months[Minimum Age]— e.g.,13(US COPPA baseline) or16(EEA/UK GDPR baseline)- Google Gemini API Billing Terms Check: Confirm in your Google Cloud / AI Studio billing console that your paid API project uses zero-data-retention / non-training API terms if you represent that prompts are not used to train Google's public models.
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:
- Creating and editing parametric templates, CSG boolean trees, 2D sketches,
.svgimports, Reference Photo 1:1 overlays, Caliper/Hole/Section/Overhang inspections,Auto-Repair, and.json/.STL/.3MFexports occur on your device without uploading your design to our server. - Data leaves your browser only when you:
- Sign up, sign in, or manage your account and billing;
- Save a design to your Cloud Project Library or open a
?share=<slug>link; - Submit a custom prompt to AI CAD Synthesis (
POST /api/cad/synthesize); or - Click an optional outbound affiliate link (e.g., Order 3D Print Quote inside
Verify & Export).
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):
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.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.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.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.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_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_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.
- What does NOT upload automatically:
mcs_draft_v1, local.jsonfiles, imported.svgfiles, and Reference Photo overlay images (refImage) stay on your device unless you explicitly save a Cloud Project (features/snapshots/materialConfig) or run AImodifysynthesis (which transmitsfeaturesJSON andpartNameto the AI endpoint).
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):
Max-Age)Type & Purposecad_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.- No First-Party Ad Trackers: Mechanical CAD Studio does not set third-party advertising, behavioral profiling, or cross-site ad-retargeting cookies. (See Section 3.3 regarding optional outbound affiliate links.)
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.
- Payment card numbers, CVVs, and billing addresses are submitted directly to Stripe over encrypted TLS and are never stored on our servers.
- We transmit your account
userId, email address, and selected plan/price key to initiate Checkout, and receive Stripe customer IDs, subscription IDs, and status webhooks. - See Stripe's Privacy Policy at
https://stripe.com/privacy.
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):
- Standard Text / Modify Synthesis (
1 cr): We transmit your prompt text (and, inmodifymode, yourcurrentPartNameand up to48serialized CSG features) to Google's Gemini API (gemini-4-hydrogen). - OEM Search Grounding & Visual Inspection (
3 cr): When your prompt triggers OEM lookup and is not already in our 7-dayoem_cache, Google Gemini runs Google Search Grounding on your query, and our backend fetches up to4public product web pages (1.5 MBmax HTML) and up to2public product images (512 KBmax per image, filtered against private/local IP ranges viaisSafeExternalUrl) to pass to Gemini as visual context. - Important Caution: Do not enter personal information, customer names/addresses, passwords, proprietary trade secrets, or export-controlled specifications into AI CAD Synthesis prompts.
- See Google's privacy and Gemini API data terms (
[Link to Google Cloud / Gemini API Data Processing Terms configured for your production key]).
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.
- Zero Automatic File Upload: Clicking an outbound link opens that external vendor's website in a new browser tab. Mechanical CAD Studio does not transmit your
.STL/.3MFgeometry, account email, or part name to those vendors—you decide independently whether to upload your exported file or place an order on the vendor's site. - External websites may place their own affiliate attribution parameters or cookies upon visit and are governed solely by their respective privacy policies.
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:
- Performance of a Contract: Operating your Workbench account, syncing Cloud Projects, generating
?share=<slug>links at your direction, executing Stripe Checkout/Portal requests, and fulfilling AI synthesis requests. - Legitimate Interests: Preventing automated scraping, enforcing per-IP rate limits (
6/minanon,15/minauth) and concurrency locks, enforcingDAILY_API_SPEND_CAP_USD, caching public OEM lookup data (oem_cache), and ensuring system reliability/security. - Legal Obligations: Maintaining billing/webhook/tax records and responding to valid legal process.
- No Sale of Personal Data: We do not sell your personal information or share it for cross-context behavioral advertising.
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
users) & Private Cloud Projects (projects)Retained while your account remains active, or until you delete individual projects or request account deletion.sessions)Automatically expire after 30 days or are deleted immediately on Sign Out.oem_cache)Automatically expires after 7 days (expires_at).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.stripe_events & Stripe records)Retained as required for accounting, tax, chargeback defense, and financial audit compliance ([e.g., 7 years]).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
- Export Designs Anytime: Export any model on the build plate locally as
.json,.STL, or.3MFdirectly from the sidebar orVerify & Exportmodal—no account or permission required. - Delete Cloud Projects: Open Cloud Project Library, click Delete (with confirmation) to permanently remove a project from
projects(DELETE /api/projects/:id). - Disable Public Sharing: Toggle any shared project back to Private in Cloud Project Library to deactivate its
?share=<slug>endpoint. - Clear Local Draft & Cookies: Clear site storage (
mcs_draft_v1) and cookies (cad_session,cad_anon) in your browser settings, or click Sign Out to clearcad_session.
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:
- Access / Portability of personal data we hold about you;
- Correction of inaccurate account details;
- Deletion / Erasure of your account (
users,sessions,projects, and disassociation/deletion of personal identifiers from logs where legally permissible); and - Restriction or Objection to certain processing, or lodging a complaint with your local data protection authority.
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:
scryptper-user salted password hashing (timingSafeEqualverification);- HMAC-SHA256-signed
HttpOnlycookies withSameSite=LaxandSecuretransport in production; - Strict SSRF URL/DNS validation blocking private, loopback, and cloud-metadata IPv4/IPv6 ranges (
isSafeExternalUrl), plus bounded HTML (1.5 MB) and image (512 KB) fetch limits; - Bounded prompt sizes (
2,000chars) and isolated database parameterization.
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
- International Transfers: If you access the Service from outside
[Hosting Country, e.g., the United States], your account, AI prompts, and Cloud Projects will be processed in[Hosting Country]and in regions where Google and Stripe operate, subject to applicable transfer safeguards (such as Standard Contractual Clauses where required). - Children's Privacy: Mechanical CAD Studio is not directed to children under
[Minimum Age, e.g., 13 or 16], and we do not knowingly collect personal information from children under that age. If you believe a child has created an account without required consent, contact[Privacy Email]and we will promptly delete it.
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]