No install. No backend. Just an HTML file calling Bedrock with an API key.
Start âindex.html (your computer)
â fetch() + Bearer API key
âŧ
Amazon Bedrock Converse API (Claude Haiku 4.5)
â
âŧ
AI Response â displayed in browser
| # | Step | Time |
|---|---|---|
| ⨠| App Planner â generate your Kiro prompt | 5 min |
| 1 | Generate index.html with Kiro | 10 min |
| 2 | Open in browser | 1 min |
Fill in your PartyRock app details below to generate a ready-to-paste Kiro prompt for local development.
https://bedrock-runtime.ap-southeast-5.amazonaws.com/model/global.anthropic.claude-haiku-4-5-20251001-v1:0/converseFill in the fields above...
Your app calls Bedrock directly using an API key. No Lambda or API Gateway needed.
| Setting | Value |
|---|---|
| Endpoint | https://bedrock-runtime.ap-southeast-5.amazonaws.com/model/global.anthropic.claude-haiku-4-5-20251001-v1:0/converse |
| Auth Header | Authorization: Bearer YOUR_API_KEY |
| Model | global.anthropic.claude-haiku-4-5-20251001-v1:0 (Claude Haiku 4.5 only) |
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 the generated index.html anywhere on your computer. That's the only file you need.
Double-click index.html to open it in your browser. That's it.
Fill in the inputs â click Run All â AI responds.
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
| Problem | Fix |
|---|---|
| CORS error | Bedrock API may block file:// origin. Use a local server: npx serve . |
| 401 Unauthorized | Wrong API key â check the Bearer token in index.html |
| 403 / AccessDenied | API key doesn't have permission for this model |
| Model not found | Only global.anthropic.claude-haiku-4-5-20251001-v1:0 is available |
| Empty response | Open DevTools (F12) â Network tab â click the failed request â read error |
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"
| Method | How |
|---|---|
| Send the file | Email or message the index.html to someone â they open it and it works |
| Same WiFi | npx serve . â share your IP:port |
| Temporary public | ngrok http 5000 |
| Permanent | Upload to S3 (already done if you followed the main tutorial) |
One HTML file. No installation. Edit â refresh â iterate.