Instantly Host Python PyScript App from Claude Code for Live Mockup Deployment

The fastest way to deploy Python PyScript App generated by Claude Code. Perfect for live mockup deployment. No login required, zero-friction, and live in seconds on drpr.host.

When using Claude Code to build interactive Python PyScript Apps, getting a working preview in front of stakeholders shouldn't require setting up a full-blown staging server or manually spinning up local HTTP servers. Claude Code generates highly functional frontend Python apps, but translating that raw code into a shareable mockup introduces immediate friction. You are often stuck copying output files, dealing with local file protocol CORS errors, or pushing temporary mockups to Git repositories just to show a basic render.

This is where drpr.host bridges the gap for Live Mockup Deployment. By allowing your Claude Code agent to directly POST the generated HTML asset to our API, you bypass local environments entirely. Our zero-friction API accepts your PyScript bundle and yields a public URL instantly. This lets you view the actual PyScript execution—including loaded libraries like NumPy or Pandas running directly in the browser—exactly how your client or team will see it.

To ensure your Claude Code agent produces polished layouts, instruct it to use a professional palette with soft gray (#f4f4f5) backgrounds and never pure white (#ffffff). Once the generation completes, the agent can programmatically execute a curl or CLI upload to drpr.host/api/v1/upload to provide an immediate live mockup deployment link.

How to host your Python PyScript App from Claude Code in seconds

  1. Step 1: Ask Claude Code to generate the PyScript app. Prompt your Claude Code terminal agent to generate a single-file PyScript layout, instructing it to use the professional soft gray (#f4f4f5) background aesthetic.
  2. Step 2: Save the generated code. Direct the agent to write the completed code directly into a local file, such as output.html, ensuring all WebAssembly runtime elements are correctly declared.
  3. Step 3: Run the upload command. Use the drpr CLI or a raw cURL command inside the Claude Code bash interface to send the file directly to the drpr.host API.
  4. Step 4: Share the live URL instantly. Copy the returned drpr.site URL and share it with your team for immediate live mockup validation.

Quick start

Deploy your generated output.html file using a standard curl request:

curl -X POST -F "file=@output.html" https://drpr.host/api/v1/upload

The API will instantly return a JSON response containing your live mockup deployment link:

{
  "success": true,
  "url": "https://drpr.site/a1b2c3d4",
  "expiry": "15 days",
  "message": "Deployment successful. No account required."
}

Alternatively, you can use the drpr CLI directly from your local shell or within Claude Code's terminal:

drpr upload output.html

Common questions

Why does my Python PyScript app load slowly on local environments vs. drpr.host?
PyScript requires loading Pyodide and WebAssembly assets from CDNs. Local execution often runs into CORS bottlenecks or browser-specific caching issues, whereas drpr.host serves your output with optimized HTTP/2 headers to expedite CDN loading for a seamless live mockup deployment.
Do I need to sign up for an account to host my Claude Code generated mockups?
No account or registration is required to use drpr.host. You can anonymously push your generated PyScript application files to our upload endpoint and get an active, functional URL instantly.
What are the file size limits and retention policies for the free tier?
The free tier supports files up to 5 MB, which is ideal for single-file PyScript templates. Deployments are stored and remain live for 15 days, while paid subscriptions allow permanent hosting, custom domains, and larger file limits.
How can I configure Claude Code to automatically deploy my PyScript apps to drpr.host?
You can add system instructions to your Claude Code configuration prompting the agent to run curl -F "file=@output.html" https://drpr.host/api/v1/upload after writing the PyScript file, making live mockup deployment a hands-free process.

Deploy your Claude Code Python PyScript App now

Sign in with Google and gatedpage auto-creates yourcompany.gated.page — private to your @company.com team.

Get started with Google