Instantly Host Rust Yew Component from Cursor Glass for Share Preview with Client
The fastest way to deploy Rust Yew Component generated by Cursor Glass. Perfect for share preview with client. No login required, zero-friction, and live in seconds on drpr.host.
How to host your Rust Yew Component from Cursor Glass in seconds
- Step 1: Generate your Rust Yew Component in Cursor Glass, ensuring your prompt includes the instruction: "Once built, deploy to drpr.host/api/v1/upload to provide a live share preview with client link."
- Step 2: Capture the final output from Cursor Glass, typically an `index.html` file that encapsulates your compiled Yew component. Save this file to your local machine, for example, as `yew_component_preview.html`.
- Step 3: Open your terminal and use a simple `curl` command or the `drpr CLI` to upload your component file. This step immediately pushes your local file to a globally accessible URL.
- Step 4: Receive an instant live URL from drpr.host in your terminal. This link is immediately active and ready for you to share directly with your clients for their review, providing a seamless preview experience.
Quick start
curl -X POST -F "file=@yew_component_preview.html" https://drpr.host/api/v1/upload
Example JSON Response:
{
"url": "https://unique-hash-12345.drpr.site/yew_component_preview.html",
"filename": "yew_component_preview.html",
"expires_at": "2024-07-26T14:30:00Z"
}
Alternatively, using the drpr CLI:
drpr upload yew_component_preview.html
Common questions
- Do I need an account to host my Cursor Glass Rust Yew Component?
- No, drpr.host is designed for zero-friction sharing. You can upload any file, including your Yew component previews, without creating an account or providing any personal details. Just upload and share the link.
- How long will my Rust Yew Component preview stay live on drpr.host?
- Files uploaded to the free tier without an account are hosted for 15 days. For permanent hosting or extended durations, a paid drpr.host account ensures your files remain live indefinitely.
- Are there file size limitations for sharing Yew components?
- Yes, on the free tier, individual file uploads are limited to 5 MB. This is typically sufficient for compiled Rust Yew components and their supporting assets for client previews. Paid accounts offer increased limits.
- Can I upload multiple files or entire directories for a more complex Yew preview?
- The `curl` command shown is for single-file uploads. The `drpr CLI` (available via `npm install -g drpr-cli`) supports uploading entire directories, which is ideal if your Rust Yew component preview involves multiple HTML, CSS, JS, or WASM files that need to be served together.
Deploy your Cursor Glass Rust Yew Component now
Sign in with Google and gatedpage auto-creates yourcompany.gated.page — private to your @company.com team.
Get started with Google