Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# リソース

必要に応じて、以下のリソースを参照してください。

| 項目 | URL |
|------|-----|
| Hono | .github\instructions\hono.instructions.md |
| Website | .github\instructions\website.instructions.md |
99 changes: 99 additions & 0 deletions .github/instructions/hono.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Hono

> Hono - means flame🔥 in Japanese - is a small, simple, and ultrafast web framework built on Web Standards. It works on any JavaScript runtime: Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Netlify, AWS Lambda, Lambda@Edge, and Node.js.

## Docs

- [Full Docs](https://hono.dev/llms-full.txt) Full documentation of Hono. (without examples)
- [Tiny Docs](https://hono.dev/llms-small.txt): Tiny documentation of Hono. (includes only desciption of core)

## Examples

- [Examples](https://github.com/honojs/website/tree/main/examples): List of example files.

## Optional

- [Index](https://hono.dev/docs/index)
- [Third Party](https://hono.dev/docs/middleware/third-party)
- [Basic Auth](https://hono.dev/docs/middleware/builtin/basic-auth)
- [Bearer Auth](https://hono.dev/docs/middleware/builtin/bearer-auth)
- [Body Limit](https://hono.dev/docs/middleware/builtin/body-limit)
- [Cache](https://hono.dev/docs/middleware/builtin/cache)
- [Combine](https://hono.dev/docs/middleware/builtin/combine)
- [Compress](https://hono.dev/docs/middleware/builtin/compress)
- [Context Storage](https://hono.dev/docs/middleware/builtin/context-storage)
- [Cors](https://hono.dev/docs/middleware/builtin/cors)
- [Csrf](https://hono.dev/docs/middleware/builtin/csrf)
- [Etag](https://hono.dev/docs/middleware/builtin/etag)
- [Ip Restriction](https://hono.dev/docs/middleware/builtin/ip-restriction)
- [Jsx Renderer](https://hono.dev/docs/middleware/builtin/jsx-renderer)
- [Jwk](https://hono.dev/docs/middleware/builtin/jwk)
- [Jwt](https://hono.dev/docs/middleware/builtin/jwt)
- [Language](https://hono.dev/docs/middleware/builtin/language)
- [Logger](https://hono.dev/docs/middleware/builtin/logger)
- [Method Override](https://hono.dev/docs/middleware/builtin/method-override)
- [Pretty Json](https://hono.dev/docs/middleware/builtin/pretty-json)
- [Request Id](https://hono.dev/docs/middleware/builtin/request-id)
- [Secure Headers](https://hono.dev/docs/middleware/builtin/secure-headers)
- [Timeout](https://hono.dev/docs/middleware/builtin/timeout)
- [Timing](https://hono.dev/docs/middleware/builtin/timing)
- [Trailing Slash](https://hono.dev/docs/middleware/builtin/trailing-slash)
- [Accepts](https://hono.dev/docs/helpers/accepts)
- [Adapter](https://hono.dev/docs/helpers/adapter)
- [Conninfo](https://hono.dev/docs/helpers/conninfo)
- [Cookie](https://hono.dev/docs/helpers/cookie)
- [Css](https://hono.dev/docs/helpers/css)
- [Dev](https://hono.dev/docs/helpers/dev)
- [Factory](https://hono.dev/docs/helpers/factory)
- [Html](https://hono.dev/docs/helpers/html)
- [Jwt](https://hono.dev/docs/helpers/jwt)
- [Proxy](https://hono.dev/docs/helpers/proxy)
- [Route](https://hono.dev/docs/helpers/route)
- [Ssg](https://hono.dev/docs/helpers/ssg)
- [Streaming](https://hono.dev/docs/helpers/streaming)
- [Testing](https://hono.dev/docs/helpers/testing)
- [Websocket](https://hono.dev/docs/helpers/websocket)
- [Best Practices](https://hono.dev/docs/guides/best-practices)
- [Create Hono](https://hono.dev/docs/guides/create-hono)
- [Examples](https://hono.dev/docs/guides/examples)
- [Faq](https://hono.dev/docs/guides/faq)
- [Helpers](https://hono.dev/docs/guides/helpers)
- [Jsx Dom](https://hono.dev/docs/guides/jsx-dom)
- [Jsx](https://hono.dev/docs/guides/jsx)
- [Middleware](https://hono.dev/docs/guides/middleware)
- [Others](https://hono.dev/docs/guides/others)
- [Rpc](https://hono.dev/docs/guides/rpc)
- [Testing](https://hono.dev/docs/guides/testing)
- [Validation](https://hono.dev/docs/guides/validation)
- [Ali Function-Compute](https://hono.dev/docs/getting-started/ali-function-compute)
- [Aws Lambda](https://hono.dev/docs/getting-started/aws-lambda)
- [Azure Functions](https://hono.dev/docs/getting-started/azure-functions)
- [Basic](https://hono.dev/docs/getting-started/basic)
- [Bun](https://hono.dev/docs/getting-started/bun)
- [Cloudflare Pages](https://hono.dev/docs/getting-started/cloudflare-pages)
- [Cloudflare Workers](https://hono.dev/docs/getting-started/cloudflare-workers)
- [Deno](https://hono.dev/docs/getting-started/deno)
- [Fastly](https://hono.dev/docs/getting-started/fastly)
- [Google Cloud-Run](https://hono.dev/docs/getting-started/google-cloud-run)
- [Lambda Edge](https://hono.dev/docs/getting-started/lambda-edge)
- [Netlify](https://hono.dev/docs/getting-started/netlify)
- [Nextjs](https://hono.dev/docs/getting-started/nextjs)
- [Nodejs](https://hono.dev/docs/getting-started/nodejs)
- [Service Worker](https://hono.dev/docs/getting-started/service-worker)
- [Supabase Functions](https://hono.dev/docs/getting-started/supabase-functions)
- [Vercel](https://hono.dev/docs/getting-started/vercel)
- [Webassembly Wasi](https://hono.dev/docs/getting-started/webassembly-wasi)
- [Benchmarks](https://hono.dev/docs/concepts/benchmarks)
- [Developer Experience](https://hono.dev/docs/concepts/developer-experience)
- [Middleware](https://hono.dev/docs/concepts/middleware)
- [Motivation](https://hono.dev/docs/concepts/motivation)
- [Routers](https://hono.dev/docs/concepts/routers)
- [Stacks](https://hono.dev/docs/concepts/stacks)
- [Web Standard](https://hono.dev/docs/concepts/web-standard)
- [Context](https://hono.dev/docs/api/context)
- [Exception](https://hono.dev/docs/api/exception)
- [Hono](https://hono.dev/docs/api/hono)
- [Index](https://hono.dev/docs/api/index)
- [Presets](https://hono.dev/docs/api/presets)
- [Request](https://hono.dev/docs/api/request)
- [Routing](https://hono.dev/docs/api/routing)
3 changes: 3 additions & 0 deletions .github/instructions/website.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Website

- `route.ts` は、ルートを管理またはまとめる為のファイルです。機能をこのファイルには実装しないでください。
12 changes: 5 additions & 7 deletions .vscode/terminals.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"autorun": true,
"autokill": true,
"terminals": [
{
"name": "root",
"cwd": "."
},
{
"name": "backend",
"cwd": "./backend"
},
{
"name": "frontend",
"cwd": "./frontend"
"name": "website",
"cwd": "./website"
}
]
}
}
33 changes: 33 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# prod
dist/

# dev
.yarn/
!.yarn/releases
.vscode/*
!.vscode/launch.json
!.vscode/*.code-snippets
.idea/workspace.xml
.idea/usage.statistics.xml
.idea/shelf

# deps
node_modules/
.wrangler

# env
.env
.env.production
.dev.vars

# logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# misc
.DS_Store
21 changes: 21 additions & 0 deletions app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
```txt
npm install
npm run dev
```

```txt
npm run deploy
```

[For generating/synchronizing types based on your Worker configuration run](https://developers.cloudflare.com/workers/wrangler/commands/#types):

```txt
npm run cf-typegen
```

Pass the `CloudflareBindings` as generics when instantiation `Hono`:

```ts
// src/index.ts
const app = new Hono<{ Bindings: CloudflareBindings }>()
```
23 changes: 23 additions & 0 deletions app/dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Scratch Status Monitor with Cloudflare

## 前提

| 項目 | 値 |
| ---------------------- | ---- |
| パッケージマネージャー | pnpm |

### 構成

- Hono
- TypeScript
- Cloudflare Workers

### 機能

- [cf kv](https://developers.cloudflare.com/kv/)
- [cf cron-triggers](https://developers.cloudflare.com/workers/configuration/cron-triggers/)

## 概要

[Scratch](https://scratch.mit.edu/) サービスの非公式ステータスモニターサービスです。`cron` で定期的に計測を行い、`kv` でデータの管理をします。
サーバーと、クライアントを Hono で完結させるために、[HTML Helper](https://hono.dev/docs/helpers/html) を活用します。
16 changes: 16 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "app",
"type": "module",
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy --minify",
"cf-typegen": "wrangler types --env-interface CloudflareBindings"
},
"dependencies": {
"hono": "^4.10.5"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20251111.0",
"wrangler": "^4.4.0"
}
}
Loading