├── .gitignore ├── htmx-ai ├── .gitignore ├── .vscode │ ├── extensions.json │ └── launch.json ├── README.md ├── astro.config.mjs ├── diagrams.excalidraw ├── package-lock.json ├── package.json ├── public │ ├── favicon.svg │ └── htmx.js ├── src │ ├── env.d.ts │ ├── middleware.ts │ ├── openai.ts │ ├── pages │ │ ├── index.astro │ │ └── prompt.astro │ └── request.ts ├── tailwind.config.cjs └── tsconfig.json ├── htmx-express ├── index.js ├── input.css ├── openai.js ├── package.json ├── pnpm-lock.yaml ├── public │ ├── htmx.js │ ├── index.html │ ├── sse.js │ └── tailwind.css └── tailwind.config.js └── nextjs-ai ├── .eslintrc.json ├── .gitignore ├── README.md ├── app ├── _lib │ ├── openai.ts │ └── request.ts ├── api │ └── gpt │ │ ├── [requestId] │ │ └── route.ts │ │ └── route.ts ├── favicon.ico ├── globals.css ├── layout.tsx └── page.tsx ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── tailwind.config.js └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /htmx-ai/.gitignore: -------------------------------------------------------------------------------- 1 | # build output 2 | dist/ 3 | # generated types 4 | .astro/ 5 | 6 | # dependencies 7 | node_modules/ 8 | 9 | # logs 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | pnpm-debug.log* 14 | 15 | 16 | # environment variables 17 | .env 18 | .env.production 19 | 20 | # macOS-specific files 21 | .DS_Store 22 | -------------------------------------------------------------------------------- /htmx-ai/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["astro-build.astro-vscode"], 3 | "unwantedRecommendations": [] 4 | } 5 | -------------------------------------------------------------------------------- /htmx-ai/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "command": "./node_modules/.bin/astro dev", 6 | "name": "Development server", 7 | "request": "launch", 8 | "type": "node-terminal" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /htmx-ai/README.md: -------------------------------------------------------------------------------- 1 | # Astro Starter Kit: Minimal 2 | 3 | ``` 4 | npm create astro@latest -- --template minimal 5 | ``` 6 | 7 | [](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal) 8 | [](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal) 9 | [](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json) 10 | 11 | > 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! 12 | 13 | ## 🚀 Project Structure 14 | 15 | Inside of your Astro project, you'll see the following folders and files: 16 | 17 | ``` 18 | / 19 | ├── public/ 20 | ├── src/ 21 | │ └── pages/ 22 | │ └── index.astro 23 | └── package.json 24 | ``` 25 | 26 | Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. 27 | 28 | There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. 29 | 30 | Any static assets, like images, can be placed in the `public/` directory. 31 | 32 | ## 🧞 Commands 33 | 34 | All commands are run from the root of the project, from a terminal: 35 | 36 | | Command | Action | 37 | | :------------------------ | :----------------------------------------------- | 38 | | `npm install` | Installs dependencies | 39 | | `npm run dev` | Starts local dev server at `localhost:3000` | 40 | | `npm run build` | Build your production site to `./dist/` | 41 | | `npm run preview` | Preview your build locally, before deploying | 42 | | `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | 43 | | `npm run astro -- --help` | Get help using the Astro CLI | 44 | 45 | ## 👀 Want to learn more? 46 | 47 | Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). 48 | -------------------------------------------------------------------------------- /htmx-ai/astro.config.mjs: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "astro/config"; 2 | 3 | import tailwind from "@astrojs/tailwind"; 4 | 5 | // https://astro.build/config 6 | export default defineConfig({ 7 | output: "server", 8 | integrations: [tailwind()], 9 | }); 10 | -------------------------------------------------------------------------------- /htmx-ai/diagrams.excalidraw: -------------------------------------------------------------------------------- 1 | { 2 | "type": "excalidraw", 3 | "version": 2, 4 | "source": "https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor", 5 | "elements": [ 6 | { 7 | "id": "tZ1Tdhkr_7t8gPwRNsvkl", 8 | "type": "arrow", 9 | "x": 264.2513122558594, 10 | "y": 153.84768343508586, 11 | "width": 327.236328125, 12 | "height": 24.92271485120975, 13 | "angle": 0, 14 | "strokeColor": "#000000", 15 | "backgroundColor": "transparent", 16 | "fillStyle": "hachure", 17 | "strokeWidth": 1, 18 | "strokeStyle": "solid", 19 | "roughness": 1, 20 | "opacity": 100, 21 | "groupIds": [], 22 | "roundness": { 23 | "type": 2 24 | }, 25 | "seed": 2020323279, 26 | "version": 452, 27 | "versionNonce": 871905921, 28 | "isDeleted": false, 29 | "boundElements": null, 30 | "updated": 1691330433657, 31 | "link": null, 32 | "locked": false, 33 | "points": [ 34 | [ 35 | 0, 36 | 0 37 | ], 38 | [ 39 | 322.6302185058594, 40 | 1.0178357610287232 41 | ], 42 | [ 43 | 323.8899841308594, 44 | 24.92271485120975 45 | ], 46 | [ 47 | -3.346343994140625, 48 | 24.716606082252603 49 | ] 50 | ], 51 | "lastCommittedPoint": null, 52 | "startBinding": null, 53 | "endBinding": null, 54 | "startArrowhead": null, 55 | "endArrowhead": "arrow" 56 | }, 57 | { 58 | "id": "mfhvUgTRy7ODdCBtTQG7i", 59 | "type": "text", 60 | "x": 287.0279846191406, 61 | "y": 122.98696899414062, 62 | "width": 171.25982666015625, 63 | "height": 25, 64 | "angle": 0, 65 | "strokeColor": "#000000", 66 | "backgroundColor": "transparent", 67 | "fillStyle": "hachure", 68 | "strokeWidth": 1, 69 | "strokeStyle": "solid", 70 | "roughness": 1, 71 | "opacity": 100, 72 | "groupIds": [], 73 | "roundness": null, 74 | "seed": 1279565985, 75 | "version": 145, 76 | "versionNonce": 1386179087, 77 | "isDeleted": false, 78 | "boundElements": null, 79 | "updated": 1691330433657, 80 | "link": null, 81 | "locked": false, 82 | "text": "hx-post=\"/prompt\"", 83 | "fontSize": 20, 84 | "fontFamily": 1, 85 | "textAlign": "left", 86 | "verticalAlign": "top", 87 | "baseline": 18, 88 | "containerId": null, 89 | "originalText": "hx-post=\"/prompt\"", 90 | "lineHeight": 1.25 91 | }, 92 | { 93 | "type": "arrow", 94 | "version": 554, 95 | "versionNonce": 955204193, 96 | "isDeleted": false, 97 | "id": "EQbU4keWRX5MlbwlurhVT", 98 | "fillStyle": "hachure", 99 | "strokeWidth": 1, 100 | "strokeStyle": "solid", 101 | "roughness": 1, 102 | "opacity": 100, 103 | "angle": 0, 104 | "x": 266.69740213845324, 105 | "y": 245.43297186727818, 106 | "strokeColor": "#000000", 107 | "backgroundColor": "transparent", 108 | "width": 327.236328125, 109 | "height": 25.310895370911506, 110 | "seed": 2020323279, 111 | "groupIds": [], 112 | "roundness": { 113 | "type": 2 114 | }, 115 | "boundElements": [], 116 | "updated": 1691330433657, 117 | "link": null, 118 | "locked": false, 119 | "startBinding": null, 120 | "endBinding": null, 121 | "lastCommittedPoint": null, 122 | "startArrowhead": null, 123 | "endArrowhead": "arrow", 124 | "points": [ 125 | [ 126 | 0, 127 | 0 128 | ], 129 | [ 130 | 322.6302185058594, 131 | 1.0336889301977306 132 | ], 133 | [ 134 | 323.8899841308594, 135 | 25.310895370911506 136 | ], 137 | [ 138 | -3.346343994140625, 139 | 25.10157638149778 140 | ] 141 | ] 142 | }, 143 | { 144 | "type": "text", 145 | "version": 294, 146 | "versionNonce": 40194095, 147 | "isDeleted": false, 148 | "id": "cmRDVD72l33GcI4sRz0np", 149 | "fillStyle": "hachure", 150 | "strokeWidth": 1, 151 | "strokeStyle": "solid", 152 | "roughness": 1, 153 | "opacity": 100, 154 | "angle": 0, 155 | "x": 283.0027305075939, 156 | "y": 215.72107032242866, 157 | "strokeColor": "#000000", 158 | "backgroundColor": "transparent", 159 | "width": 335.69976806640625, 160 | "height": 25, 161 | "seed": 1279565985, 162 | "groupIds": [], 163 | "roundness": null, 164 | "boundElements": [], 165 | "updated": 1691330433657, 166 | "link": null, 167 | "locked": false, 168 | "fontSize": 20, 169 | "fontFamily": 1, 170 | "text": "hx-get=\"/prompt/requestID=NNNN\"", 171 | "textAlign": "left", 172 | "verticalAlign": "top", 173 | "containerId": null, 174 | "originalText": "hx-get=\"/prompt/requestID=NNNN\"", 175 | "lineHeight": 1.25, 176 | "baseline": 18 177 | }, 178 | { 179 | "id": "XjFjwfgl2ynxq6HsgCvJa", 180 | "type": "text", 181 | "x": 495.37109375, 182 | "y": 120.79032893099546, 183 | "width": 108.17988586425781, 184 | "height": 25, 185 | "angle": 0, 186 | "strokeColor": "#000000", 187 | "backgroundColor": "transparent", 188 | "fillStyle": "hachure", 189 | "strokeWidth": 1, 190 | "strokeStyle": "solid", 191 | "roughness": 1, 192 | "opacity": 100, 193 | "groupIds": [], 194 | "roundness": null, 195 | "seed": 725740001, 196 | "version": 80, 197 | "versionNonce": 1031425601, 198 | "isDeleted": false, 199 | "boundElements": null, 200 | "updated": 1691330433657, 201 | "link": null, 202 | "locked": false, 203 | "text": "prompt=dog", 204 | "fontSize": 20, 205 | "fontFamily": 1, 206 | "textAlign": "left", 207 | "verticalAlign": "top", 208 | "baseline": 18, 209 | "containerId": null, 210 | "originalText": "prompt=dog", 211 | "lineHeight": 1.25 212 | }, 213 | { 214 | "id": "i8G17JSH0z-KSkR-fD3Ei", 215 | "type": "line", 216 | "x": 252.2005157470703, 217 | "y": 114.765625, 218 | "width": 2.842170943040401e-14, 219 | "height": 280.5695685264637, 220 | "angle": 0, 221 | "strokeColor": "#000000", 222 | "backgroundColor": "transparent", 223 | "fillStyle": "hachure", 224 | "strokeWidth": 1, 225 | "strokeStyle": "dashed", 226 | "roughness": 2, 227 | "opacity": 100, 228 | "groupIds": [], 229 | "roundness": { 230 | "type": 2 231 | }, 232 | "seed": 2038389697, 233 | "version": 180, 234 | "versionNonce": 684290639, 235 | "isDeleted": false, 236 | "boundElements": null, 237 | "updated": 1691330433657, 238 | "link": null, 239 | "locked": false, 240 | "points": [ 241 | [ 242 | 0, 243 | 0 244 | ], 245 | [ 246 | -2.842170943040401e-14, 247 | 280.5695685264637 248 | ] 249 | ], 250 | "lastCommittedPoint": null, 251 | "startBinding": null, 252 | "endBinding": null, 253 | "startArrowhead": null, 254 | "endArrowhead": null 255 | }, 256 | { 257 | "id": "bx1uzfUcCezao1WMQW1o7", 258 | "type": "text", 259 | "x": 213.96938851570866, 260 | "y": 71.90020161066546, 261 | "width": 76.7999267578125, 262 | "height": 25, 263 | "angle": 0, 264 | "strokeColor": "#000000", 265 | "backgroundColor": "transparent", 266 | "fillStyle": "hachure", 267 | "strokeWidth": 1, 268 | "strokeStyle": "dashed", 269 | "roughness": 2, 270 | "opacity": 100, 271 | "groupIds": [], 272 | "roundness": null, 273 | "seed": 141265647, 274 | "version": 55, 275 | "versionNonce": 947445281, 276 | "isDeleted": false, 277 | "boundElements": null, 278 | "updated": 1691330433657, 279 | "link": null, 280 | "locked": false, 281 | "text": "Browser", 282 | "fontSize": 20, 283 | "fontFamily": 1, 284 | "textAlign": "left", 285 | "verticalAlign": "top", 286 | "baseline": 18, 287 | "containerId": null, 288 | "originalText": "Browser", 289 | "lineHeight": 1.25 290 | }, 291 | { 292 | "type": "line", 293 | "version": 223, 294 | "versionNonce": 1319391343, 295 | "isDeleted": false, 296 | "id": "Zv54BSI4jnxu0Ecco9f7j", 297 | "fillStyle": "hachure", 298 | "strokeWidth": 1, 299 | "strokeStyle": "dashed", 300 | "roughness": 2, 301 | "opacity": 100, 302 | "angle": 0, 303 | "x": 650.0320118116124, 304 | "y": 111.03929265693675, 305 | "strokeColor": "#000000", 306 | "backgroundColor": "transparent", 307 | "width": 0, 308 | "height": 275.41165068830554, 309 | "seed": 2038389697, 310 | "groupIds": [], 311 | "roundness": { 312 | "type": 2 313 | }, 314 | "boundElements": [], 315 | "updated": 1691330433657, 316 | "link": null, 317 | "locked": false, 318 | "startBinding": null, 319 | "endBinding": null, 320 | "lastCommittedPoint": null, 321 | "startArrowhead": null, 322 | "endArrowhead": null, 323 | "points": [ 324 | [ 325 | 0, 326 | 0 327 | ], 328 | [ 329 | 0, 330 | 275.41165068830554 331 | ] 332 | ] 333 | }, 334 | { 335 | "type": "text", 336 | "version": 140, 337 | "versionNonce": 416969217, 338 | "isDeleted": false, 339 | "id": "MlaPs2mOsRnB5tCCqSJ9E", 340 | "fillStyle": "hachure", 341 | "strokeWidth": 1, 342 | "strokeStyle": "dashed", 343 | "roughness": 2, 344 | "opacity": 100, 345 | "angle": 0, 346 | "x": 611.4661552354693, 347 | "y": 71.90020161066546, 348 | "strokeColor": "#000000", 349 | "backgroundColor": "transparent", 350 | "width": 61.69993591308594, 351 | "height": 25, 352 | "seed": 141265647, 353 | "groupIds": [], 354 | "roundness": null, 355 | "boundElements": [], 356 | "updated": 1691330433657, 357 | "link": null, 358 | "locked": false, 359 | "fontSize": 20, 360 | "fontFamily": 1, 361 | "text": "Server", 362 | "textAlign": "left", 363 | "verticalAlign": "top", 364 | "containerId": null, 365 | "originalText": "Server", 366 | "lineHeight": 1.25, 367 | "baseline": 18 368 | }, 369 | { 370 | "type": "line", 371 | "version": 329, 372 | "versionNonce": 852508847, 373 | "isDeleted": false, 374 | "id": "0Zul1m5mTo6XtkEbZ49JU", 375 | "fillStyle": "hachure", 376 | "strokeWidth": 1, 377 | "strokeStyle": "dashed", 378 | "roughness": 2, 379 | "opacity": 100, 380 | "angle": 0, 381 | "x": 868.2173596869725, 382 | "y": 112.04224285941908, 383 | "strokeColor": "#000000", 384 | "backgroundColor": "transparent", 385 | "width": 0, 386 | "height": 270.28292109847496, 387 | "seed": 2038389697, 388 | "groupIds": [], 389 | "roundness": { 390 | "type": 2 391 | }, 392 | "boundElements": [], 393 | "updated": 1691330433657, 394 | "link": null, 395 | "locked": false, 396 | "startBinding": null, 397 | "endBinding": null, 398 | "lastCommittedPoint": null, 399 | "startArrowhead": null, 400 | "endArrowhead": null, 401 | "points": [ 402 | [ 403 | 0, 404 | 0 405 | ], 406 | [ 407 | 0, 408 | 270.28292109847496 409 | ] 410 | ] 411 | }, 412 | { 413 | "type": "text", 414 | "version": 250, 415 | "versionNonce": 1372890561, 416 | "isDeleted": false, 417 | "id": "UKr3Y9qNN-vrxABBOfjvR", 418 | "fillStyle": "hachure", 419 | "strokeWidth": 1, 420 | "strokeStyle": "dashed", 421 | "roughness": 2, 422 | "opacity": 100, 423 | "angle": 0, 424 | "x": 829.9862324556109, 425 | "y": 71.90020161066546, 426 | "strokeColor": "#000000", 427 | "backgroundColor": "transparent", 428 | "width": 61.69993591308594, 429 | "height": 25, 430 | "seed": 141265647, 431 | "groupIds": [], 432 | "roundness": null, 433 | "boundElements": [], 434 | "updated": 1691330433657, 435 | "link": null, 436 | "locked": false, 437 | "fontSize": 20, 438 | "fontFamily": 1, 439 | "text": "Server", 440 | "textAlign": "left", 441 | "verticalAlign": "top", 442 | "containerId": null, 443 | "originalText": "Server", 444 | "lineHeight": 1.25, 445 | "baseline": 18 446 | }, 447 | { 448 | "id": "XIPJ_NjlpMGsn7fjo_XxJ", 449 | "type": "arrow", 450 | "x": 658.8162557668018, 451 | "y": 149.7345303687673, 452 | "width": 192.22788573439072, 453 | "height": 0.5229042993720441, 454 | "angle": 0, 455 | "strokeColor": "#000000", 456 | "backgroundColor": "transparent", 457 | "fillStyle": "hachure", 458 | "strokeWidth": 1, 459 | "strokeStyle": "solid", 460 | "roughness": 2, 461 | "opacity": 100, 462 | "groupIds": [], 463 | "roundness": { 464 | "type": 2 465 | }, 466 | "seed": 2125993327, 467 | "version": 64, 468 | "versionNonce": 1602376399, 469 | "isDeleted": false, 470 | "boundElements": null, 471 | "updated": 1691330433657, 472 | "link": null, 473 | "locked": false, 474 | "points": [ 475 | [ 476 | 0, 477 | 0 478 | ], 479 | [ 480 | 192.22788573439072, 481 | 0.5229042993720441 482 | ] 483 | ], 484 | "lastCommittedPoint": null, 485 | "startBinding": null, 486 | "endBinding": null, 487 | "startArrowhead": null, 488 | "endArrowhead": "arrow" 489 | }, 490 | { 491 | "id": "cgdroscIzIrXTtZTIIHXM", 492 | "type": "text", 493 | "x": 712.10626557221, 494 | "y": 115.17250681581527, 495 | "width": 79.87992858886719, 496 | "height": 25, 497 | "angle": 0, 498 | "strokeColor": "#000000", 499 | "backgroundColor": "transparent", 500 | "fillStyle": "hachure", 501 | "strokeWidth": 1, 502 | "strokeStyle": "solid", 503 | "roughness": 2, 504 | "opacity": 100, 505 | "groupIds": [], 506 | "roundness": null, 507 | "seed": 1307342369, 508 | "version": 63, 509 | "versionNonce": 245122465, 510 | "isDeleted": false, 511 | "boundElements": null, 512 | "updated": 1691330433657, 513 | "link": null, 514 | "locked": false, 515 | "text": "Request", 516 | "fontSize": 20, 517 | "fontFamily": 1, 518 | "textAlign": "left", 519 | "verticalAlign": "top", 520 | "baseline": 18, 521 | "containerId": null, 522 | "originalText": "Request", 523 | "lineHeight": 1.25 524 | }, 525 | { 526 | "id": "jBDTjhDB3Epf2qeJ4TRRD", 527 | "type": "arrow", 528 | "x": 850.4885844185607, 529 | "y": 199.33951666812627, 530 | "width": 187.10850729021286, 531 | "height": 1.9033932198536263, 532 | "angle": 0, 533 | "strokeColor": "#000000", 534 | "backgroundColor": "transparent", 535 | "fillStyle": "hachure", 536 | "strokeWidth": 1, 537 | "strokeStyle": "solid", 538 | "roughness": 2, 539 | "opacity": 100, 540 | "groupIds": [], 541 | "roundness": { 542 | "type": 2 543 | }, 544 | "seed": 876352911, 545 | "version": 88, 546 | "versionNonce": 1819091183, 547 | "isDeleted": false, 548 | "boundElements": [], 549 | "updated": 1691330433657, 550 | "link": null, 551 | "locked": false, 552 | "points": [ 553 | [ 554 | 0, 555 | 0 556 | ], 557 | [ 558 | -187.10850729021286, 559 | -1.9033932198536263 560 | ] 561 | ], 562 | "lastCommittedPoint": null, 563 | "startBinding": null, 564 | "endBinding": null, 565 | "startArrowhead": null, 566 | "endArrowhead": "arrow" 567 | }, 568 | { 569 | "id": "cCfyvdM6_FdAymJ0UJszj", 570 | "type": "text", 571 | "x": 726.7739603523269, 572 | "y": 165.60493200011402, 573 | "width": 53.199951171875, 574 | "height": 25, 575 | "angle": 0, 576 | "strokeColor": "#000000", 577 | "backgroundColor": "transparent", 578 | "fillStyle": "hachure", 579 | "strokeWidth": 1, 580 | "strokeStyle": "solid", 581 | "roughness": 2, 582 | "opacity": 100, 583 | "groupIds": [], 584 | "roundness": null, 585 | "seed": 2101882863, 586 | "version": 33, 587 | "versionNonce": 1259940623, 588 | "isDeleted": false, 589 | "boundElements": null, 590 | "updated": 1691330433657, 591 | "link": null, 592 | "locked": false, 593 | "text": "Chunk", 594 | "fontSize": 20, 595 | "fontFamily": 1, 596 | "textAlign": "left", 597 | "verticalAlign": "top", 598 | "baseline": 18, 599 | "containerId": null, 600 | "originalText": "Chunk", 601 | "lineHeight": 1.25 602 | }, 603 | { 604 | "type": "arrow", 605 | "version": 147, 606 | "versionNonce": 1856901473, 607 | "isDeleted": false, 608 | "id": "hkyZn97qH2cYcjmUzuMdH", 609 | "fillStyle": "hachure", 610 | "strokeWidth": 1, 611 | "strokeStyle": "solid", 612 | "roughness": 2, 613 | "opacity": 100, 614 | "angle": 0, 615 | "x": 850.0162748087364, 616 | "y": 245.82471430036577, 617 | "strokeColor": "#000000", 618 | "backgroundColor": "transparent", 619 | "width": 187.10850729021286, 620 | "height": 1.9033932198536263, 621 | "seed": 876352911, 622 | "groupIds": [], 623 | "roundness": { 624 | "type": 2 625 | }, 626 | "boundElements": [], 627 | "updated": 1691330433658, 628 | "link": null, 629 | "locked": false, 630 | "startBinding": null, 631 | "endBinding": null, 632 | "lastCommittedPoint": null, 633 | "startArrowhead": null, 634 | "endArrowhead": "arrow", 635 | "points": [ 636 | [ 637 | 0, 638 | 0 639 | ], 640 | [ 641 | -187.10850729021286, 642 | -1.9033932198536263 643 | ] 644 | ] 645 | }, 646 | { 647 | "type": "text", 648 | "version": 92, 649 | "versionNonce": 277298497, 650 | "isDeleted": false, 651 | "id": "Rviw5kR1Obx6iGpyD55t2", 652 | "fillStyle": "hachure", 653 | "strokeWidth": 1, 654 | "strokeStyle": "solid", 655 | "roughness": 2, 656 | "opacity": 100, 657 | "angle": 0, 658 | "x": 726.3016507425025, 659 | "y": 212.09012963235344, 660 | "strokeColor": "#000000", 661 | "backgroundColor": "transparent", 662 | "width": 53.199951171875, 663 | "height": 25, 664 | "seed": 2101882863, 665 | "groupIds": [], 666 | "roundness": null, 667 | "boundElements": [], 668 | "updated": 1691330433658, 669 | "link": null, 670 | "locked": false, 671 | "fontSize": 20, 672 | "fontFamily": 1, 673 | "text": "Chunk", 674 | "textAlign": "left", 675 | "verticalAlign": "top", 676 | "containerId": null, 677 | "originalText": "Chunk", 678 | "lineHeight": 1.25, 679 | "baseline": 18 680 | }, 681 | { 682 | "type": "arrow", 683 | "version": 207, 684 | "versionNonce": 210170703, 685 | "isDeleted": false, 686 | "id": "sUOEw4wbbKkmQPqEa0Xab", 687 | "fillStyle": "hachure", 688 | "strokeWidth": 1, 689 | "strokeStyle": "solid", 690 | "roughness": 2, 691 | "opacity": 100, 692 | "angle": 0, 693 | "x": 852.8704401882148, 694 | "y": 293.2756398723128, 695 | "strokeColor": "#000000", 696 | "backgroundColor": "transparent", 697 | "width": 187.10850729021286, 698 | "height": 1.9033932198536263, 699 | "seed": 876352911, 700 | "groupIds": [], 701 | "roundness": { 702 | "type": 2 703 | }, 704 | "boundElements": [], 705 | "updated": 1691330433658, 706 | "link": null, 707 | "locked": false, 708 | "startBinding": null, 709 | "endBinding": null, 710 | "lastCommittedPoint": null, 711 | "startArrowhead": null, 712 | "endArrowhead": "arrow", 713 | "points": [ 714 | [ 715 | 0, 716 | 0 717 | ], 718 | [ 719 | -187.10850729021286, 720 | -1.9033932198536263 721 | ] 722 | ] 723 | }, 724 | { 725 | "type": "text", 726 | "version": 152, 727 | "versionNonce": 1091154287, 728 | "isDeleted": false, 729 | "id": "KMfXfKwuQ_FKkwt0WdEMD", 730 | "fillStyle": "hachure", 731 | "strokeWidth": 1, 732 | "strokeStyle": "solid", 733 | "roughness": 2, 734 | "opacity": 100, 735 | "angle": 0, 736 | "x": 729.1558161219808, 737 | "y": 259.5410552043005, 738 | "strokeColor": "#000000", 739 | "backgroundColor": "transparent", 740 | "width": 53.199951171875, 741 | "height": 25, 742 | "seed": 2101882863, 743 | "groupIds": [], 744 | "roundness": null, 745 | "boundElements": [], 746 | "updated": 1691330433658, 747 | "link": null, 748 | "locked": false, 749 | "fontSize": 20, 750 | "fontFamily": 1, 751 | "text": "Chunk", 752 | "textAlign": "left", 753 | "verticalAlign": "top", 754 | "containerId": null, 755 | "originalText": "Chunk", 756 | "lineHeight": 1.25, 757 | "baseline": 18 758 | }, 759 | { 760 | "type": "arrow", 761 | "version": 273, 762 | "versionNonce": 1924636929, 763 | "isDeleted": false, 764 | "id": "sqpkp3ExOlJpQ7FY_EOPS", 765 | "fillStyle": "hachure", 766 | "strokeWidth": 1, 767 | "strokeStyle": "solid", 768 | "roughness": 2, 769 | "opacity": 100, 770 | "angle": 0, 771 | "x": 853.6364049939763, 772 | "y": 341.90079026036074, 773 | "strokeColor": "#000000", 774 | "backgroundColor": "transparent", 775 | "width": 187.10850729021286, 776 | "height": 1.9033932198536263, 777 | "seed": 876352911, 778 | "groupIds": [], 779 | "roundness": { 780 | "type": 2 781 | }, 782 | "boundElements": [], 783 | "updated": 1691330433658, 784 | "link": null, 785 | "locked": false, 786 | "startBinding": null, 787 | "endBinding": null, 788 | "lastCommittedPoint": null, 789 | "startArrowhead": null, 790 | "endArrowhead": "arrow", 791 | "points": [ 792 | [ 793 | 0, 794 | 0 795 | ], 796 | [ 797 | -187.10850729021286, 798 | -1.9033932198536263 799 | ] 800 | ] 801 | }, 802 | { 803 | "type": "text", 804 | "version": 218, 805 | "versionNonce": 1744689377, 806 | "isDeleted": false, 807 | "id": "o0LsQcCUCsxP7eVytgK8v", 808 | "fillStyle": "hachure", 809 | "strokeWidth": 1, 810 | "strokeStyle": "solid", 811 | "roughness": 2, 812 | "opacity": 100, 813 | "angle": 0, 814 | "x": 729.9217809277417, 815 | "y": 308.16620559234843, 816 | "strokeColor": "#000000", 817 | "backgroundColor": "transparent", 818 | "width": 53.199951171875, 819 | "height": 25, 820 | "seed": 2101882863, 821 | "groupIds": [], 822 | "roundness": null, 823 | "boundElements": [], 824 | "updated": 1691330433658, 825 | "link": null, 826 | "locked": false, 827 | "fontSize": 20, 828 | "fontFamily": 1, 829 | "text": "Chunk", 830 | "textAlign": "left", 831 | "verticalAlign": "top", 832 | "containerId": null, 833 | "originalText": "Chunk", 834 | "lineHeight": 1.25, 835 | "baseline": 18 836 | }, 837 | { 838 | "type": "arrow", 839 | "version": 588, 840 | "versionNonce": 34693551, 841 | "isDeleted": false, 842 | "id": "O9htuWnm3V5Xott_eKFX6", 843 | "fillStyle": "hachure", 844 | "strokeWidth": 1, 845 | "strokeStyle": "solid", 846 | "roughness": 1, 847 | "opacity": 100, 848 | "angle": 0, 849 | "x": 268.337276711934, 850 | "y": 341.717015481894, 851 | "strokeColor": "#000000", 852 | "backgroundColor": "transparent", 853 | "width": 327.236328125, 854 | "height": 25.310895370911506, 855 | "seed": 2020323279, 856 | "groupIds": [], 857 | "roundness": { 858 | "type": 2 859 | }, 860 | "boundElements": [], 861 | "updated": 1691330433658, 862 | "link": null, 863 | "locked": false, 864 | "startBinding": null, 865 | "endBinding": null, 866 | "lastCommittedPoint": null, 867 | "startArrowhead": null, 868 | "endArrowhead": "arrow", 869 | "points": [ 870 | [ 871 | 0, 872 | 0 873 | ], 874 | [ 875 | 322.6302185058594, 876 | 1.0336889301977306 877 | ], 878 | [ 879 | 323.8899841308594, 880 | 25.310895370911506 881 | ], 882 | [ 883 | -3.346343994140625, 884 | 25.10157638149778 885 | ] 886 | ] 887 | }, 888 | { 889 | "type": "text", 890 | "version": 340, 891 | "versionNonce": 1802638529, 892 | "isDeleted": false, 893 | "id": "PwQ4l4YAHb9qarM8MR2H6", 894 | "fillStyle": "hachure", 895 | "strokeWidth": 1, 896 | "strokeStyle": "solid", 897 | "roughness": 1, 898 | "opacity": 100, 899 | "angle": 0, 900 | "x": 284.64260508107475, 901 | "y": 300.0051139370445, 902 | "strokeColor": "#000000", 903 | "backgroundColor": "transparent", 904 | "width": 335.69976806640625, 905 | "height": 25, 906 | "seed": 1279565985, 907 | "groupIds": [], 908 | "roundness": null, 909 | "boundElements": [], 910 | "updated": 1691330433658, 911 | "link": null, 912 | "locked": false, 913 | "fontSize": 20, 914 | "fontFamily": 1, 915 | "text": "hx-get=\"/prompt/requestID=NNNN\"", 916 | "textAlign": "left", 917 | "verticalAlign": "top", 918 | "containerId": null, 919 | "originalText": "hx-get=\"/prompt/requestID=NNNN\"", 920 | "lineHeight": 1.25, 921 | "baseline": 18 922 | }, 923 | { 924 | "type": "arrow", 925 | "version": 535, 926 | "versionNonce": 1790508655, 927 | "isDeleted": false, 928 | "id": "1oNFWffh13MwWUn0O7tiQ", 929 | "fillStyle": "hachure", 930 | "strokeWidth": 1, 931 | "strokeStyle": "solid", 932 | "roughness": 1, 933 | "opacity": 100, 934 | "angle": 0, 935 | "x": 269.7836362017575, 936 | "y": 512.9120389992769, 937 | "strokeColor": "#000000", 938 | "backgroundColor": "#fd7e14", 939 | "width": 327.236328125, 940 | "height": 24.92271485120975, 941 | "seed": 2020323279, 942 | "groupIds": [], 943 | "roundness": { 944 | "type": 2 945 | }, 946 | "boundElements": [], 947 | "updated": 1691330610215, 948 | "link": null, 949 | "locked": false, 950 | "startBinding": null, 951 | "endBinding": null, 952 | "lastCommittedPoint": null, 953 | "startArrowhead": null, 954 | "endArrowhead": "arrow", 955 | "points": [ 956 | [ 957 | 0, 958 | 0 959 | ], 960 | [ 961 | 322.6302185058594, 962 | 1.0178357610287232 963 | ], 964 | [ 965 | 323.8899841308594, 966 | 24.92271485120975 967 | ], 968 | [ 969 | -3.346343994140625, 970 | 24.716606082252603 971 | ] 972 | ] 973 | }, 974 | { 975 | "type": "text", 976 | "version": 234, 977 | "versionNonce": 2016388097, 978 | "isDeleted": false, 979 | "id": "cK9Dg3iHLA8Ni0ltstKS9", 980 | "fillStyle": "hachure", 981 | "strokeWidth": 1, 982 | "strokeStyle": "solid", 983 | "roughness": 1, 984 | "opacity": 100, 985 | "angle": 0, 986 | "x": 292.5603085650387, 987 | "y": 485.33385917342815, 988 | "strokeColor": "#000000", 989 | "backgroundColor": "#fd7e14", 990 | "width": 159.267578125, 991 | "height": 23, 992 | "seed": 1279565985, 993 | "groupIds": [], 994 | "roundness": null, 995 | "boundElements": [], 996 | "updated": 1691330610215, 997 | "link": null, 998 | "locked": false, 999 | "fontSize": 20, 1000 | "fontFamily": 2, 1001 | "text": "hx-post=\"/prompt\"", 1002 | "textAlign": "left", 1003 | "verticalAlign": "top", 1004 | "containerId": null, 1005 | "originalText": "hx-post=\"/prompt\"", 1006 | "lineHeight": 1.15, 1007 | "baseline": 18 1008 | }, 1009 | { 1010 | "type": "arrow", 1011 | "version": 660, 1012 | "versionNonce": 520968335, 1013 | "isDeleted": false, 1014 | "id": "NfGdU2Zmgs6_CRWh93Jh8", 1015 | "fillStyle": "hachure", 1016 | "strokeWidth": 1, 1017 | "strokeStyle": "solid", 1018 | "roughness": 1, 1019 | "opacity": 100, 1020 | "angle": 0, 1021 | "x": 272.5122193145621, 1022 | "y": 582.2147928163727, 1023 | "strokeColor": "#000000", 1024 | "backgroundColor": "#fd7e14", 1025 | "width": 327.236328125, 1026 | "height": 25.310895370911506, 1027 | "seed": 2020323279, 1028 | "groupIds": [], 1029 | "roundness": { 1030 | "type": 2 1031 | }, 1032 | "boundElements": [], 1033 | "updated": 1691330610215, 1034 | "link": null, 1035 | "locked": false, 1036 | "startBinding": null, 1037 | "endBinding": null, 1038 | "lastCommittedPoint": null, 1039 | "startArrowhead": null, 1040 | "endArrowhead": "arrow", 1041 | "points": [ 1042 | [ 1043 | 0, 1044 | 0 1045 | ], 1046 | [ 1047 | 322.6302185058594, 1048 | 1.0336889301977306 1049 | ], 1050 | [ 1051 | 323.8899841308594, 1052 | 25.310895370911506 1053 | ], 1054 | [ 1055 | -3.346343994140625, 1056 | 25.10157638149778 1057 | ] 1058 | ] 1059 | }, 1060 | { 1061 | "type": "text", 1062 | "version": 438, 1063 | "versionNonce": 628980705, 1064 | "isDeleted": false, 1065 | "id": "bfOBIawez-YEn6X6qP4aY", 1066 | "fillStyle": "hachure", 1067 | "strokeWidth": 1, 1068 | "strokeStyle": "solid", 1069 | "roughness": 1, 1070 | "opacity": 100, 1071 | "angle": 0, 1072 | "x": 365.2652186808823, 1073 | "y": 554.7854258866198, 1074 | "strokeColor": "#000000", 1075 | "backgroundColor": "#fd7e14", 1076 | "width": 149.267578125, 1077 | "height": 23, 1078 | "seed": 1279565985, 1079 | "groupIds": [], 1080 | "roundness": null, 1081 | "boundElements": [], 1082 | "updated": 1691330610215, 1083 | "link": null, 1084 | "locked": false, 1085 | "fontSize": 20, 1086 | "fontFamily": 2, 1087 | "text": "hx-get=\"/prompt\"", 1088 | "textAlign": "left", 1089 | "verticalAlign": "top", 1090 | "containerId": null, 1091 | "originalText": "hx-get=\"/prompt\"", 1092 | "lineHeight": 1.15, 1093 | "baseline": 18 1094 | }, 1095 | { 1096 | "type": "text", 1097 | "version": 215, 1098 | "versionNonce": 403795631, 1099 | "isDeleted": false, 1100 | "id": "YLTqkMAHZ33l-3KvJ0_NT", 1101 | "fillStyle": "hachure", 1102 | "strokeWidth": 1, 1103 | "strokeStyle": "solid", 1104 | "roughness": 1, 1105 | "opacity": 100, 1106 | "angle": 0, 1107 | "x": 473.90341769589816, 1108 | "y": 484.137219110283, 1109 | "strokeColor": "#000000", 1110 | "backgroundColor": "#fd7e14", 1111 | "width": 107.294921875, 1112 | "height": 23, 1113 | "seed": 725740001, 1114 | "groupIds": [], 1115 | "roundness": null, 1116 | "boundElements": [], 1117 | "updated": 1691330610215, 1118 | "link": null, 1119 | "locked": false, 1120 | "fontSize": 20, 1121 | "fontFamily": 2, 1122 | "text": "prompt=dog", 1123 | "textAlign": "left", 1124 | "verticalAlign": "top", 1125 | "containerId": null, 1126 | "originalText": "prompt=dog", 1127 | "lineHeight": 1.15, 1128 | "baseline": 18 1129 | }, 1130 | { 1131 | "type": "line", 1132 | "version": 282, 1133 | "versionNonce": 1057314753, 1134 | "isDeleted": false, 1135 | "id": "9RecD00waicbu6REPpvte", 1136 | "fillStyle": "hachure", 1137 | "strokeWidth": 1, 1138 | "strokeStyle": "dashed", 1139 | "roughness": 2, 1140 | "opacity": 100, 1141 | "angle": 0, 1142 | "x": 257.7328396929684, 1143 | "y": 482.8299805641911, 1144 | "strokeColor": "#000000", 1145 | "backgroundColor": "#fd7e14", 1146 | "width": 2.842170943040401e-14, 1147 | "height": 280.5695685264637, 1148 | "seed": 2038389697, 1149 | "groupIds": [], 1150 | "roundness": { 1151 | "type": 2 1152 | }, 1153 | "boundElements": [], 1154 | "updated": 1691330610215, 1155 | "link": null, 1156 | "locked": false, 1157 | "startBinding": null, 1158 | "endBinding": null, 1159 | "lastCommittedPoint": null, 1160 | "startArrowhead": null, 1161 | "endArrowhead": null, 1162 | "points": [ 1163 | [ 1164 | 0, 1165 | 0 1166 | ], 1167 | [ 1168 | -2.842170943040401e-14, 1169 | 280.5695685264637 1170 | ] 1171 | ] 1172 | }, 1173 | { 1174 | "type": "text", 1175 | "version": 129, 1176 | "versionNonce": 544063695, 1177 | "isDeleted": false, 1178 | "id": "-BXIVo0DZuDy39_jvhSIS", 1179 | "fillStyle": "hachure", 1180 | "strokeWidth": 1, 1181 | "strokeStyle": "dashed", 1182 | "roughness": 2, 1183 | "opacity": 100, 1184 | "angle": 0, 1185 | "x": 219.50171246160676, 1186 | "y": 439.96455717485657, 1187 | "strokeColor": "#000000", 1188 | "backgroundColor": "#fd7e14", 1189 | "width": 76.7999267578125, 1190 | "height": 25, 1191 | "seed": 141265647, 1192 | "groupIds": [], 1193 | "roundness": null, 1194 | "boundElements": [], 1195 | "updated": 1691330610215, 1196 | "link": null, 1197 | "locked": false, 1198 | "fontSize": 20, 1199 | "fontFamily": 1, 1200 | "text": "Browser", 1201 | "textAlign": "left", 1202 | "verticalAlign": "top", 1203 | "containerId": null, 1204 | "originalText": "Browser", 1205 | "lineHeight": 1.25, 1206 | "baseline": 18 1207 | }, 1208 | { 1209 | "type": "line", 1210 | "version": 297, 1211 | "versionNonce": 921089953, 1212 | "isDeleted": false, 1213 | "id": "jFODt25008dI3Kluo65nl", 1214 | "fillStyle": "hachure", 1215 | "strokeWidth": 1, 1216 | "strokeStyle": "dashed", 1217 | "roughness": 2, 1218 | "opacity": 100, 1219 | "angle": 0, 1220 | "x": 655.5643357575104, 1221 | "y": 479.10364822112786, 1222 | "strokeColor": "#000000", 1223 | "backgroundColor": "#fd7e14", 1224 | "width": 0, 1225 | "height": 275.41165068830554, 1226 | "seed": 2038389697, 1227 | "groupIds": [], 1228 | "roundness": { 1229 | "type": 2 1230 | }, 1231 | "boundElements": [], 1232 | "updated": 1691330610215, 1233 | "link": null, 1234 | "locked": false, 1235 | "startBinding": null, 1236 | "endBinding": null, 1237 | "lastCommittedPoint": null, 1238 | "startArrowhead": null, 1239 | "endArrowhead": null, 1240 | "points": [ 1241 | [ 1242 | 0, 1243 | 0 1244 | ], 1245 | [ 1246 | 0, 1247 | 275.41165068830554 1248 | ] 1249 | ] 1250 | }, 1251 | { 1252 | "type": "text", 1253 | "version": 214, 1254 | "versionNonce": 431673071, 1255 | "isDeleted": false, 1256 | "id": "249QOK2801bbT5bMRo0aX", 1257 | "fillStyle": "hachure", 1258 | "strokeWidth": 1, 1259 | "strokeStyle": "dashed", 1260 | "roughness": 2, 1261 | "opacity": 100, 1262 | "angle": 0, 1263 | "x": 616.9984791813674, 1264 | "y": 439.96455717485657, 1265 | "strokeColor": "#000000", 1266 | "backgroundColor": "#fd7e14", 1267 | "width": 61.69993591308594, 1268 | "height": 25, 1269 | "seed": 141265647, 1270 | "groupIds": [], 1271 | "roundness": null, 1272 | "boundElements": [], 1273 | "updated": 1691330610215, 1274 | "link": null, 1275 | "locked": false, 1276 | "fontSize": 20, 1277 | "fontFamily": 1, 1278 | "text": "Server", 1279 | "textAlign": "left", 1280 | "verticalAlign": "top", 1281 | "containerId": null, 1282 | "originalText": "Server", 1283 | "lineHeight": 1.25, 1284 | "baseline": 18 1285 | }, 1286 | { 1287 | "type": "arrow", 1288 | "version": 734, 1289 | "versionNonce": 256973697, 1290 | "isDeleted": false, 1291 | "id": "tBGtGiL2bl8MIOxAIJxrG", 1292 | "fillStyle": "hachure", 1293 | "strokeWidth": 1, 1294 | "strokeStyle": "solid", 1295 | "roughness": 1, 1296 | "opacity": 100, 1297 | "angle": 0, 1298 | "x": 276.30866693037655, 1299 | "y": 645.6770657694974, 1300 | "strokeColor": "#000000", 1301 | "backgroundColor": "#fd7e14", 1302 | "width": 327.236328125, 1303 | "height": 25.310895370911506, 1304 | "seed": 2020323279, 1305 | "groupIds": [], 1306 | "roundness": { 1307 | "type": 2 1308 | }, 1309 | "boundElements": [], 1310 | "updated": 1691330610215, 1311 | "link": null, 1312 | "locked": false, 1313 | "startBinding": null, 1314 | "endBinding": null, 1315 | "lastCommittedPoint": null, 1316 | "startArrowhead": null, 1317 | "endArrowhead": "arrow", 1318 | "points": [ 1319 | [ 1320 | 0, 1321 | 0 1322 | ], 1323 | [ 1324 | 322.6302185058594, 1325 | 1.0336889301977306 1326 | ], 1327 | [ 1328 | 323.8899841308594, 1329 | 25.310895370911506 1330 | ], 1331 | [ 1332 | -3.346343994140625, 1333 | 25.10157638149778 1334 | ] 1335 | ] 1336 | }, 1337 | { 1338 | "type": "text", 1339 | "version": 536, 1340 | "versionNonce": 511777039, 1341 | "isDeleted": false, 1342 | "id": "RotnmZphMKJ6SIlhmugVz", 1343 | "fillStyle": "hachure", 1344 | "strokeWidth": 1, 1345 | "strokeStyle": "solid", 1346 | "roughness": 1, 1347 | "opacity": 100, 1348 | "angle": 0, 1349 | "x": 369.0660530945875, 1350 | "y": 620.1626823963662, 1351 | "strokeColor": "#000000", 1352 | "backgroundColor": "#fd7e14", 1353 | "width": 149.267578125, 1354 | "height": 23, 1355 | "seed": 1279565985, 1356 | "groupIds": [], 1357 | "roundness": null, 1358 | "boundElements": [], 1359 | "updated": 1691330610215, 1360 | "link": null, 1361 | "locked": false, 1362 | "fontSize": 20, 1363 | "fontFamily": 2, 1364 | "text": "hx-get=\"/prompt\"", 1365 | "textAlign": "left", 1366 | "verticalAlign": "top", 1367 | "containerId": null, 1368 | "originalText": "hx-get=\"/prompt\"", 1369 | "lineHeight": 1.15, 1370 | "baseline": 18 1371 | }, 1372 | { 1373 | "type": "arrow", 1374 | "version": 828, 1375 | "versionNonce": 1485046625, 1376 | "isDeleted": false, 1377 | "id": "QV6dIEjF2o5cGzTJDOIsd", 1378 | "fillStyle": "hachure", 1379 | "strokeWidth": 1, 1380 | "strokeStyle": "solid", 1381 | "roughness": 1, 1382 | "opacity": 100, 1383 | "angle": 0, 1384 | "x": 277.59242608671076, 1385 | "y": 707.9111189747364, 1386 | "strokeColor": "#000000", 1387 | "backgroundColor": "#fd7e14", 1388 | "width": 327.236328125, 1389 | "height": 25.310895370911506, 1390 | "seed": 2020323279, 1391 | "groupIds": [], 1392 | "roundness": { 1393 | "type": 2 1394 | }, 1395 | "boundElements": [], 1396 | "updated": 1691330610215, 1397 | "link": null, 1398 | "locked": false, 1399 | "startBinding": null, 1400 | "endBinding": null, 1401 | "lastCommittedPoint": null, 1402 | "startArrowhead": null, 1403 | "endArrowhead": "arrow", 1404 | "points": [ 1405 | [ 1406 | 0, 1407 | 0 1408 | ], 1409 | [ 1410 | 322.6302185058594, 1411 | 1.0336889301977306 1412 | ], 1413 | [ 1414 | 323.8899841308594, 1415 | 25.310895370911506 1416 | ], 1417 | [ 1418 | -3.346343994140625, 1419 | 25.10157638149778 1420 | ] 1421 | ] 1422 | }, 1423 | { 1424 | "type": "text", 1425 | "version": 622, 1426 | "versionNonce": 1681465135, 1427 | "isDeleted": false, 1428 | "id": "4nMS8Yr5xwWLlIbDgtLnQ", 1429 | "fillStyle": "hachure", 1430 | "strokeWidth": 1, 1431 | "strokeStyle": "solid", 1432 | "roughness": 1, 1433 | "opacity": 100, 1434 | "angle": 0, 1435 | "x": 370.34542545303094, 1436 | "y": 681.6356771835632, 1437 | "strokeColor": "#000000", 1438 | "backgroundColor": "#fd7e14", 1439 | "width": 149.267578125, 1440 | "height": 23, 1441 | "seed": 1279565985, 1442 | "groupIds": [], 1443 | "roundness": null, 1444 | "boundElements": [], 1445 | "updated": 1691330610215, 1446 | "link": null, 1447 | "locked": false, 1448 | "fontSize": 20, 1449 | "fontFamily": 2, 1450 | "text": "hx-get=\"/prompt\"", 1451 | "textAlign": "left", 1452 | "verticalAlign": "top", 1453 | "containerId": null, 1454 | "originalText": "hx-get=\"/prompt\"", 1455 | "lineHeight": 1.15, 1456 | "baseline": 18 1457 | }, 1458 | { 1459 | "id": "t3BTB_IpDKyxBDb8Qnbdh", 1460 | "type": "arrow", 1461 | "x": 119.09676891007024, 1462 | "y": 508.4940223166074, 1463 | "width": 118.17756238978194, 1464 | "height": 0.39286672053776783, 1465 | "angle": 0, 1466 | "strokeColor": "#000000", 1467 | "backgroundColor": "#fd7e14", 1468 | "fillStyle": "hachure", 1469 | "strokeWidth": 1, 1470 | "strokeStyle": "solid", 1471 | "roughness": 2, 1472 | "opacity": 100, 1473 | "groupIds": [], 1474 | "roundness": { 1475 | "type": 2 1476 | }, 1477 | "seed": 1219944463, 1478 | "version": 303, 1479 | "versionNonce": 1859055425, 1480 | "isDeleted": false, 1481 | "boundElements": null, 1482 | "updated": 1691330610215, 1483 | "link": null, 1484 | "locked": false, 1485 | "points": [ 1486 | [ 1487 | 0, 1488 | 0 1489 | ], 1490 | [ 1491 | 118.17756238978194, 1492 | -0.39286672053776783 1493 | ] 1494 | ], 1495 | "lastCommittedPoint": null, 1496 | "startBinding": { 1497 | "elementId": "krFCl6XBNQ47F5H02XbQf", 1498 | "focus": 1.542179362045189, 1499 | "gap": 7.2587396076770005 1500 | }, 1501 | "endBinding": null, 1502 | "startArrowhead": null, 1503 | "endArrowhead": "arrow" 1504 | }, 1505 | { 1506 | "id": "krFCl6XBNQ47F5H02XbQf", 1507 | "type": "text", 1508 | "x": 118.62440182398382, 1509 | "y": 476.2352827089304, 1510 | "width": 111.1328125, 1511 | "height": 23, 1512 | "angle": 0, 1513 | "strokeColor": "#000000", 1514 | "backgroundColor": "#fd7e14", 1515 | "fillStyle": "hachure", 1516 | "strokeWidth": 1, 1517 | "strokeStyle": "solid", 1518 | "roughness": 2, 1519 | "opacity": 100, 1520 | "groupIds": [], 1521 | "roundness": null, 1522 | "seed": 668400111, 1523 | "version": 68, 1524 | "versionNonce": 1565221199, 1525 | "isDeleted": false, 1526 | "boundElements": [ 1527 | { 1528 | "id": "t3BTB_IpDKyxBDb8Qnbdh", 1529 | "type": "arrow" 1530 | } 1531 | ], 1532 | "updated": 1691330610215, 1533 | "link": null, 1534 | "locked": false, 1535 | "text": "Click Submit", 1536 | "fontSize": 20, 1537 | "fontFamily": 2, 1538 | "textAlign": "left", 1539 | "verticalAlign": "top", 1540 | "baseline": 18, 1541 | "containerId": null, 1542 | "originalText": "Click Submit", 1543 | "lineHeight": 1.15 1544 | }, 1545 | { 1546 | "type": "arrow", 1547 | "version": 294, 1548 | "versionNonce": 2022792993, 1549 | "isDeleted": false, 1550 | "id": "IF5ujMJ9opuF1ZnXTCtF_", 1551 | "fillStyle": "hachure", 1552 | "strokeWidth": 1, 1553 | "strokeStyle": "solid", 1554 | "roughness": 2, 1555 | "opacity": 100, 1556 | "angle": 0, 1557 | "x": 121.07442844597438, 1558 | "y": 583.8136104162263, 1559 | "strokeColor": "#000000", 1560 | "backgroundColor": "#fd7e14", 1561 | "width": 116.17540159421804, 1562 | "height": 0, 1563 | "seed": 1219944463, 1564 | "groupIds": [], 1565 | "roundness": { 1566 | "type": 2 1567 | }, 1568 | "boundElements": [], 1569 | "updated": 1691330610215, 1570 | "link": null, 1571 | "locked": false, 1572 | "startBinding": { 1573 | "elementId": "LdFRHzmarEzcZlgKJn4T7", 1574 | "focus": 2.0448647401583275, 1575 | "gap": 13.060809251979094 1576 | }, 1577 | "endBinding": null, 1578 | "lastCommittedPoint": null, 1579 | "startArrowhead": null, 1580 | "endArrowhead": "arrow", 1581 | "points": [ 1582 | [ 1583 | 0, 1584 | 0 1585 | ], 1586 | [ 1587 | 116.17540159421804, 1588 | 0 1589 | ] 1590 | ] 1591 | }, 1592 | { 1593 | "type": "text", 1594 | "version": 164, 1595 | "versionNonce": 454057839, 1596 | "isDeleted": false, 1597 | "id": "LdFRHzmarEzcZlgKJn4T7", 1598 | "fillStyle": "hachure", 1599 | "strokeWidth": 1, 1600 | "strokeStyle": "solid", 1601 | "roughness": 2, 1602 | "opacity": 100, 1603 | "angle": 0, 1604 | "x": 120.08312878210933, 1605 | "y": 545.7528011642472, 1606 | "strokeColor": "#000000", 1607 | "backgroundColor": "#fd7e14", 1608 | "width": 108.3984375, 1609 | "height": 23, 1610 | "seed": 668400111, 1611 | "groupIds": [], 1612 | "roundness": null, 1613 | "boundElements": [ 1614 | { 1615 | "id": "IF5ujMJ9opuF1ZnXTCtF_", 1616 | "type": "arrow" 1617 | } 1618 | ], 1619 | "updated": 1691330610215, 1620 | "link": null, 1621 | "locked": false, 1622 | "fontSize": 20, 1623 | "fontFamily": 2, 1624 | "text": "delay=50ms", 1625 | "textAlign": "left", 1626 | "verticalAlign": "top", 1627 | "containerId": null, 1628 | "originalText": "delay=50ms", 1629 | "lineHeight": 1.15, 1630 | "baseline": 18 1631 | }, 1632 | { 1633 | "type": "arrow", 1634 | "version": 428, 1635 | "versionNonce": 607834881, 1636 | "isDeleted": false, 1637 | "id": "TsjGxoE2szClsEh32KdM_", 1638 | "fillStyle": "hachure", 1639 | "strokeWidth": 1, 1640 | "strokeStyle": "solid", 1641 | "roughness": 2, 1642 | "opacity": 100, 1643 | "angle": 0, 1644 | "x": 122.40944207968043, 1645 | "y": 647.3450737580084, 1646 | "strokeColor": "#000000", 1647 | "backgroundColor": "#fd7e14", 1648 | "width": 116.17540159421804, 1649 | "height": 0, 1650 | "seed": 1219944463, 1651 | "groupIds": [], 1652 | "roundness": { 1653 | "type": 2 1654 | }, 1655 | "boundElements": [], 1656 | "updated": 1691330610215, 1657 | "link": null, 1658 | "locked": false, 1659 | "startBinding": { 1660 | "elementId": "cmdcry4sPvZ_tQ9yxdzAG", 1661 | "focus": 2.0448647401583187, 1662 | "gap": 13.06080925197898 1663 | }, 1664 | "endBinding": null, 1665 | "lastCommittedPoint": null, 1666 | "startArrowhead": null, 1667 | "endArrowhead": "arrow", 1668 | "points": [ 1669 | [ 1670 | 0, 1671 | 0 1672 | ], 1673 | [ 1674 | 116.17540159421804, 1675 | 0 1676 | ] 1677 | ] 1678 | }, 1679 | { 1680 | "type": "text", 1681 | "version": 231, 1682 | "versionNonce": 1875941775, 1683 | "isDeleted": false, 1684 | "id": "cmdcry4sPvZ_tQ9yxdzAG", 1685 | "fillStyle": "hachure", 1686 | "strokeWidth": 1, 1687 | "strokeStyle": "solid", 1688 | "roughness": 2, 1689 | "opacity": 100, 1690 | "angle": 0, 1691 | "x": 121.41814241581532, 1692 | "y": 609.2842645060294, 1693 | "strokeColor": "#000000", 1694 | "backgroundColor": "#fd7e14", 1695 | "width": 108.3984375, 1696 | "height": 23, 1697 | "seed": 668400111, 1698 | "groupIds": [], 1699 | "roundness": null, 1700 | "boundElements": [ 1701 | { 1702 | "id": "TsjGxoE2szClsEh32KdM_", 1703 | "type": "arrow" 1704 | } 1705 | ], 1706 | "updated": 1691330610215, 1707 | "link": null, 1708 | "locked": false, 1709 | "fontSize": 20, 1710 | "fontFamily": 2, 1711 | "text": "delay=50ms", 1712 | "textAlign": "left", 1713 | "verticalAlign": "top", 1714 | "containerId": null, 1715 | "originalText": "delay=50ms", 1716 | "lineHeight": 1.15, 1717 | "baseline": 18 1718 | }, 1719 | { 1720 | "type": "arrow", 1721 | "version": 550, 1722 | "versionNonce": 642435809, 1723 | "isDeleted": false, 1724 | "id": "Z5YtutYl9IZV0WxIhDrMk", 1725 | "fillStyle": "hachure", 1726 | "strokeWidth": 1, 1727 | "strokeStyle": "solid", 1728 | "roughness": 2, 1729 | "opacity": 100, 1730 | "angle": 0, 1731 | "x": 123.8520778124547, 1732 | "y": 710.8098720809203, 1733 | "strokeColor": "#000000", 1734 | "backgroundColor": "#fd7e14", 1735 | "width": 116.17540159421804, 1736 | "height": 0, 1737 | "seed": 1219944463, 1738 | "groupIds": [], 1739 | "roundness": { 1740 | "type": 2 1741 | }, 1742 | "boundElements": [], 1743 | "updated": 1691330610215, 1744 | "link": null, 1745 | "locked": false, 1746 | "startBinding": { 1747 | "elementId": "m0dSu4vbhIEyBwQDmjabX", 1748 | "focus": 2.0448647401583004, 1749 | "gap": 13.060809251978753 1750 | }, 1751 | "endBinding": null, 1752 | "lastCommittedPoint": null, 1753 | "startArrowhead": null, 1754 | "endArrowhead": "arrow", 1755 | "points": [ 1756 | [ 1757 | 0, 1758 | 0 1759 | ], 1760 | [ 1761 | 116.17540159421804, 1762 | 0 1763 | ] 1764 | ] 1765 | }, 1766 | { 1767 | "type": "text", 1768 | "version": 292, 1769 | "versionNonce": 1355059119, 1770 | "isDeleted": false, 1771 | "id": "m0dSu4vbhIEyBwQDmjabX", 1772 | "fillStyle": "hachure", 1773 | "strokeWidth": 1, 1774 | "strokeStyle": "solid", 1775 | "roughness": 2, 1776 | "opacity": 100, 1777 | "angle": 0, 1778 | "x": 122.86077814858959, 1779 | "y": 672.7490628289415, 1780 | "strokeColor": "#000000", 1781 | "backgroundColor": "#fd7e14", 1782 | "width": 108.3984375, 1783 | "height": 23, 1784 | "seed": 668400111, 1785 | "groupIds": [], 1786 | "roundness": null, 1787 | "boundElements": [ 1788 | { 1789 | "id": "Z5YtutYl9IZV0WxIhDrMk", 1790 | "type": "arrow" 1791 | } 1792 | ], 1793 | "updated": 1691330610215, 1794 | "link": null, 1795 | "locked": false, 1796 | "fontSize": 20, 1797 | "fontFamily": 2, 1798 | "text": "delay=50ms", 1799 | "textAlign": "left", 1800 | "verticalAlign": "top", 1801 | "containerId": null, 1802 | "originalText": "delay=50ms", 1803 | "lineHeight": 1.15, 1804 | "baseline": 18 1805 | } 1806 | ], 1807 | "appState": { 1808 | "gridSize": null, 1809 | "viewBackgroundColor": "#ffffff" 1810 | }, 1811 | "files": {} 1812 | } -------------------------------------------------------------------------------- /htmx-ai/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "htmx-ai", 3 | "type": "module", 4 | "version": "0.0.1", 5 | "scripts": { 6 | "dev": "astro dev", 7 | "start": "astro dev", 8 | "build": "astro build", 9 | "preview": "astro preview", 10 | "astro": "astro" 11 | }, 12 | "dependencies": { 13 | "@astrojs/tailwind": "^4.0.0", 14 | "astro": "^2.10.1", 15 | "tailwindcss": "^3.3.3" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /htmx-ai/public/favicon.svg: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /htmx-ai/public/htmx.js: -------------------------------------------------------------------------------- 1 | (function(e,t){if(typeof define==="function"&&define.amd){define([],t)}else if(typeof module==="object"&&module.exports){module.exports=t()}else{e.htmx=e.htmx||t()}})(typeof self!=="undefined"?self:this,function(){return function(){"use strict";var G={onLoad:t,process:Nt,on:ue,off:fe,trigger:oe,ajax:mr,find:b,findAll:f,closest:d,values:function(e,t){var r=Qt(e,t||"post");return r.values},remove:B,addClass:V,removeClass:n,toggleClass:j,takeClass:W,defineExtension:Er,removeExtension:Cr,logAll:F,logNone:U,logger:null,config:{historyEnabled:true,historyCacheSize:10,refreshOnHistoryMiss:false,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:true,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:true,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:false,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:false,scrollBehavior:"smooth",defaultFocusScroll:false,getCacheBusterParam:false,globalViewTransitions:false,methodsThatUseUrlParams:["get"]},parseInterval:v,_:e,createEventSource:function(e){return new EventSource(e,{withCredentials:true})},createWebSocket:function(e){var t=new WebSocket(e,[]);t.binaryType=G.config.wsBinaryType;return t},version:"1.9.3"};var C={addTriggerHandler:bt,bodyContains:re,canAccessLocalStorage:D,findThisElement:de,filterValues:ir,hasAttribute:q,getAttributeValue:Z,getClosestAttributeValue:Y,getClosestMatch:c,getExpressionVars:vr,getHeaders:nr,getInputValues:Qt,getInternalData:ee,getSwapSpecification:or,getTriggerSpecs:Ge,getTarget:ve,makeFragment:l,mergeObjects:ne,makeSettleInfo:S,oobSwap:xe,querySelectorExt:ie,selectAndSwap:Xe,settleImmediately:Wt,shouldCancel:Qe,triggerEvent:oe,triggerErrorEvent:ae,withExtensions:w};var R=["get","post","put","delete","patch"];var O=R.map(function(e){return"[hx-"+e+"], [data-hx-"+e+"]"}).join(", ");function v(e){if(e==undefined){return undefined}if(e.slice(-2)=="ms"){return parseFloat(e.slice(0,-2))||undefined}if(e.slice(-1)=="s"){return parseFloat(e.slice(0,-1))*1e3||undefined}if(e.slice(-1)=="m"){return parseFloat(e.slice(0,-1))*1e3*60||undefined}return parseFloat(e)||undefined}function J(e,t){return e.getAttribute&&e.getAttribute(t)}function q(e,t){return e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function Z(e,t){return J(e,t)||J(e,"data-"+t)}function u(e){return e.parentElement}function K(){return document}function c(e,t){while(e&&!t(e)){e=u(e)}return e?e:null}function T(e,t,r){var n=Z(t,r);var i=Z(t,"hx-disinherit");if(e!==t&&i&&(i==="*"||i.split(" ").indexOf(r)>=0)){return"unset"}else{return n}}function Y(t,r){var n=null;c(t,function(e){return n=T(t,e,r)});if(n!=="unset"){return n}}function h(e,t){var r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;return r&&r.call(e,t)}function H(e){var t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var r=t.exec(e);if(r){return r[1].toLowerCase()}else{return""}}function i(e,t){var r=new DOMParser;var n=r.parseFromString(e,"text/html");var i=n.body;while(t>0){t--;i=i.firstChild}if(i==null){i=K().createDocumentFragment()}return i}function L(e){return e.match(/
"+e+"",0);return r.querySelector("template").content}else{var n=H(e);switch(n){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return i("