Run PartyRock Locally

No install. No backend. Just an HTML file calling Bedrock with an API key.

Start →

How It Works

index.html (your computer)
    │  fetch() + Bearer API key
    â–ŧ
Amazon Bedrock Converse API (Claude Haiku 4.5)
    │
    â–ŧ
AI Response → displayed in browser

Prerequisites

Steps

#StepTime
✨App Planner — generate your Kiro prompt5 min
1Generate index.html with Kiro10 min
2Open in browser1 min
💡 No Python, no Node, no terminal commands. Just a browser and a text editor. The API key connects directly to Bedrock.
✨
Start Here — App Planner
Fill in your PartyRock widget details → get a ready-to-paste Kiro prompt for local development.
â€ē

✨ App Planner — PartyRock Slicing

Fill in your PartyRock app details below to generate a ready-to-paste Kiro prompt for local development.

💡 Open each widget's âœī¸ edit panel in PartyRock and copy the details here. The prompt builds itself as you type.

App Info

API Endpoint

Endpoint: https://bedrock-runtime.ap-southeast-5.amazonaws.com/model/global.anthropic.claude-haiku-4-5-20251001-v1:0/converse
Model: Claude Haiku 4.5 only

Widgets (from PartyRock edit panels)

Extra Notes (optional)

Generated Kiro Prompt

Fill in the fields above...
How to use: Copy the prompt → open Kiro → paste → drag your PartyRock screenshots into the same message → send. Kiro generates your index.html.

Step 1 — Generate index.html

Your app calls Bedrock directly using an API key. No Lambda or API Gateway needed.

Your API Details

SettingValue
Endpointhttps://bedrock-runtime.ap-southeast-5.amazonaws.com/model/global.anthropic.claude-haiku-4-5-20251001-v1:0/converse
Auth HeaderAuthorization: Bearer YOUR_API_KEY
Modelglobal.anthropic.claude-haiku-4-5-20251001-v1:0 (Claude Haiku 4.5 only)

Paste This Into Kiro

Build me a single index.html that calls Amazon Bedrock directly.

APP: [Your App Name]
DESCRIPTION: [What it does]

API:
- Endpoint: https://bedrock-runtime.ap-southeast-5.amazonaws.com/model/global.anthropic.claude-haiku-4-5-20251001-v1:0/converse
- Auth: Authorization: Bearer [YOUR_API_KEY]
- Content-Type: application/json
- Body format (Bedrock Converse API):
  {
    "messages": [{"role": "user", "content": [{"text": "..."}]}],
    "system": [{"text": "system prompt here"}],
    "inferenceConfig": {"maxTokens": 2048, "temperature": 0.7}
  }

WIDGETS:
- [List your input widgets: name, type, placeholder]
- [List your AI output widgets: name, system prompt, which inputs they use]

REQUIREMENTS:
1. Single index.html — no build tools, no server needed
2. All CSS and JS inline
3. Each AI widget calls the Bedrock endpoint with its own system prompt
4. Build the user message by combining input widget values
5. "Run All" button fires all AI calls simultaneously
6. Loading spinners per output, error messages if call fails
7. Mobile-responsive, dark theme
8. Markdown rendering via marked.js CDN
9. Copy button on each output, Reset button
10. Works by double-clicking the file (file:// protocol)

IMPORTANT:
- Only model available: global.anthropic.claude-haiku-4-5-20251001-v1:0
- Use the Converse API format (not InvokeModel)
- API key goes in Authorization: Bearer header

NO server-side code. Everything runs in the browser.

Drag your PartyRock screenshots into the same Kiro message → send.

Save

Save the generated index.html anywhere on your computer. That's the only file you need.

Step 2 — Run

Double-click index.html to open it in your browser. That's it.

💡 On macOS: right-click → Open With → Chrome/Firefox. On Windows: just double-click.

Fill in the inputs → click Run All → AI responds.

If Streaming Doesn't Work on file://

Some browsers block streaming fetch on file:// protocol. Quick fix — use any tiny server:

# Pick one (all do the same thing):
npx serve .                      # if you have Node
python3 -m http.server 5000      # if you have Python
php -S localhost:5000             # if you have PHP

Then open http://localhost:5000

Troubleshooting

ProblemFix
CORS errorBedrock API may block file:// origin. Use a local server: npx serve .
401 UnauthorizedWrong API key — check the Bearer token in index.html
403 / AccessDeniedAPI key doesn't have permission for this model
Model not foundOnly global.anthropic.claude-haiku-4-5-20251001-v1:0 is available
Empty responseOpen DevTools (F12) → Network tab → click the failed request → read error

Making Changes

Open index.html in any text editor → edit → save → refresh browser.

Or share the file with Kiro and ask: "Change the background to dark blue" / "Add a reset button"

Sharing

MethodHow
Send the fileEmail or message the index.html to someone — they open it and it works
Same WiFinpx serve . → share your IP:port
Temporary publicngrok http 5000
PermanentUpload to S3 (already done if you followed the main tutorial)
🎉

Done!

One HTML file. No installation. Edit → refresh → iterate.