プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

cloudflare

Kohei Watanabe (Dec 23, 2025, 4:58 PM +0900) 3df730bf ba75691d

+60
+5
hono/README.md
··· 6 6 ``` 7 7 open http://localhost:3000 8 8 ``` 9 + 10 + [![Deploy to Cloudflare][cloudflare-button]][cloudflare-deploy] 11 + 12 + [cloudflare-button]: https://deploy.workers.cloudflare.com/button 13 + [cloudflare-deploy]: https://deploy.workers.cloudflare.com/?url=https://github.com/kou029w/_/tree/main/hono
+22
hono/package-lock.json
··· 1 + { 2 + "name": "hono", 3 + "lockfileVersion": 3, 4 + "requires": true, 5 + "packages": { 6 + "": { 7 + "devDependencies": { 8 + "hono": "^4.11.1" 9 + } 10 + }, 11 + "node_modules/hono": { 12 + "version": "4.11.1", 13 + "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.1.tgz", 14 + "integrity": "sha512-KsFcH0xxHes0J4zaQgWbYwmz3UPOOskdqZmItstUG93+Wk1ePBLkLGwbP9zlmh1BFUiL8Qp+Xfu9P7feJWpGNg==", 15 + "dev": true, 16 + "license": "MIT", 17 + "engines": { 18 + "node": ">=16.9.0" 19 + } 20 + } 21 + } 22 + }
+5
hono/package.json
··· 1 + { 2 + "devDependencies": { 3 + "hono": "^4.11.1" 4 + } 5 + }
+20
hono/worker.ts
··· 1 + import { Hono } from "hono"; 2 + import { html } from "hono/html"; 3 + 4 + const app = new Hono(); 5 + 6 + const Html = html`<!DOCTYPE html> 7 + <html> 8 + <head> 9 + <title>Hello</title> 10 + </head> 11 + <body> 12 + hello from worker.ts 13 + </body> 14 + </html>`; 15 + 16 + app.get("/", (c) => { 17 + return c.html(Html); 18 + }); 19 + 20 + export default app;
+8
hono/wrangler.json
··· 1 + { 2 + "name": "hono-wrangler", 3 + "main": "worker.ts", 4 + "compatibility_date": "2025-01-23", 5 + "observability": { 6 + "enabled": true 7 + } 8 + }