mirror of
https://github.com/honojs/hono.git
synced 2024-11-21 18:18:57 +01:00
chore: move under honojs
organization (#178)
This commit is contained in:
parent
b9745e79c5
commit
128970e2d2
44
README.md
44
README.md
@ -1,24 +1,24 @@
|
||||
<div align="center">
|
||||
<a href="https://github.com/yusukebe/hono">
|
||||
<img src="https://raw.githubusercontent.com/yusukebe/hono/master/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
|
||||
<a href="https://github.com/honojs/hono">
|
||||
<img src="https://raw.githubusercontent.com/honojs/hono/master/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<p>
|
||||
<a href="https://github.com/yusukebe/hono/blob/master/README.md">English</a>
|
||||
<a href="https://github.com/honojs/hono/blob/master/README.md">English</a>
|
||||
·
|
||||
<a href="https://github.com/yusukebe/hono/blob/master/docs/README.ja.md">日本語</a>
|
||||
<a href="https://github.com/honojs/hono/blob/master/docs/README.ja.md">日本語</a>
|
||||
</p>
|
||||
|
||||
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/yusukebe/hono/ci)](https://github.com/yusukebe/hono/actions)
|
||||
[![GitHub](https://img.shields.io/github/license/yusukebe/hono)](https://github.com/yusukebe/hono/blob/master/LICENSE)
|
||||
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/honojs/hono/ci)](https://github.com/honojs/hono/actions)
|
||||
[![GitHub](https://img.shields.io/github/license/honojs/hono)](https://github.com/honojs/hono/blob/master/LICENSE)
|
||||
[![npm](https://img.shields.io/npm/v/hono)](https://www.npmjs.com/package/hono)
|
||||
[![npm](https://img.shields.io/npm/dm/hono)](https://www.npmjs.com/package/hono)
|
||||
[![npm type definitions](https://img.shields.io/npm/types/hono)](https://www.npmjs.com/package/hono)
|
||||
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/yusukebe/hono)](https://github.com/yusukebe/hono/pulse)
|
||||
[![GitHub last commit](https://img.shields.io/github/last-commit/yusukebe/hono)](https://github.com/yusukebe/hono/commits/master)
|
||||
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/honojs/hono)](https://github.com/honojs/hono/pulse)
|
||||
[![GitHub last commit](https://img.shields.io/github/last-commit/honojs/hono)](https://github.com/honojs/hono/commits/master)
|
||||
|
||||
Hono - _**[炎] means flame🔥 in Japanese**_ - is a small, simple, and ultrafast web framework for Cloudflare Workers and Service Worker based serverless such as Fastly Compute@Edge.
|
||||
|
||||
@ -66,15 +66,15 @@ Hono is fast. But not only fast.
|
||||
|
||||
Built-in middleware make _"**Write Less, do more**"_ in reality. You can use a lot of middleware without writing code from scratch. Below are examples.
|
||||
|
||||
- [Basic Authentication](https://github.com/yusukebe/hono/tree/master/src/middleware/basic-auth/)
|
||||
- [Cookie parsing / serializing](https://github.com/yusukebe/hono/tree/master/src/middleware/cookie/)
|
||||
- [CORS](https://github.com/yusukebe/hono/tree/master/src/middleware/cors/)
|
||||
- [ETag](https://github.com/yusukebe/hono/tree/master/src/middleware/etag/)
|
||||
- [GraphQL Server](https://github.com/yusukebe/hono/tree/master/src/middleware/graphql-server/)
|
||||
- [Logger](https://github.com/yusukebe/hono/tree/master/src/middleware/logger/)
|
||||
- [Mustache template engine](https://github.com/yusukebe/hono/tree/master/src/middleware/mustache/) (Only for Cloudflare Workers)
|
||||
- [JSON pretty printing](https://github.com/yusukebe/hono/tree/master/src/middleware/pretty-json/)
|
||||
- [Serving static files](https://github.com/yusukebe/hono/tree/master/src/middleware/serve-static/) (Only for Cloudflare Workers)
|
||||
- [Basic Authentication](https://github.com/honojs/hono/tree/master/src/middleware/basic-auth/)
|
||||
- [Cookie parsing / serializing](https://github.com/honojs/hono/tree/master/src/middleware/cookie/)
|
||||
- [CORS](https://github.com/honojs/hono/tree/master/src/middleware/cors/)
|
||||
- [ETag](https://github.com/honojs/hono/tree/master/src/middleware/etag/)
|
||||
- [GraphQL Server](https://github.com/honojs/hono/tree/master/src/middleware/graphql-server/)
|
||||
- [Logger](https://github.com/honojs/hono/tree/master/src/middleware/logger/)
|
||||
- [Mustache template engine](https://github.com/honojs/hono/tree/master/src/middleware/mustache/) (Only for Cloudflare Workers)
|
||||
- [JSON pretty printing](https://github.com/honojs/hono/tree/master/src/middleware/pretty-json/)
|
||||
- [Serving static files](https://github.com/honojs/hono/tree/master/src/middleware/serve-static/) (Only for Cloudflare Workers)
|
||||
|
||||
You can enable logger and CORS middleware with just this code.
|
||||
|
||||
@ -236,7 +236,7 @@ app.use(
|
||||
)
|
||||
```
|
||||
|
||||
Available built-in middleware is listed on [src/middleware](https://github.com/yusukebe/hono/tree/master/src/middleware).
|
||||
Available built-in middleware is listed on [src/middleware](https://github.com/honojs/hono/tree/master/src/middleware).
|
||||
|
||||
### Custom Middleware
|
||||
|
||||
@ -471,7 +471,7 @@ Let's write your first code for Cloudflare Workers with Hono.
|
||||
**Wrangler 1.x** does not support importing middleware. We recommend two ways:
|
||||
|
||||
1. Use [Wragler 2.0 Beta](https://github.com/cloudflare/wrangler2).
|
||||
2. Build without webpack 4.x. For example, you can use esbuild. See [the starter template](https://github.com/yusukebe/hono-minimal).
|
||||
2. Build without webpack 4.x. For example, you can use esbuild. See [the starter template](https://github.com/honojs/hono-minimal).
|
||||
|
||||
---
|
||||
|
||||
@ -541,12 +541,12 @@ npx wrangler@beta publish index.js
|
||||
|
||||
## Starter template
|
||||
|
||||
You can start making your Cloudflare Workers application with [the starter template](https://github.com/yusukebe/hono-minimal). It is really minimal using TypeScript, esbuild, Miniflare, and Jest.
|
||||
You can start making your Cloudflare Workers application with [the starter template](https://github.com/honojs/hono-minimal). It is really minimal using TypeScript, esbuild, Miniflare, and Jest.
|
||||
|
||||
To generate a project skelton, run this command.
|
||||
|
||||
```sh
|
||||
wrangler generate my-app https://github.com/yusukebe/hono-minimal
|
||||
wrangler generate my-app https://github.com/honojs/hono-minimal
|
||||
```
|
||||
|
||||
## Related projects
|
||||
@ -573,7 +573,7 @@ Contributions Welcome! You can contribute in the following ways.
|
||||
|
||||
## Contributors
|
||||
|
||||
Thanks to [all contributors](https://github.com/yusukebe/hono/graphs/contributors)!
|
||||
Thanks to [all contributors](https://github.com/honojs/hono/graphs/contributors)!
|
||||
|
||||
## Author
|
||||
|
||||
|
@ -1,24 +1,24 @@
|
||||
<div align="center">
|
||||
<a href="https://github.com/yusukebe/hono">
|
||||
<img src="https://raw.githubusercontent.com/yusukebe/hono/master/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
|
||||
<a href="https://github.com/honojs/hono">
|
||||
<img src="https://raw.githubusercontent.com/honojs/hono/master/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<p>
|
||||
<a href="https://github.com/yusukebe/hono/blob/master/README.md">English</a>
|
||||
<a href="https://github.com/honojs/hono/blob/master/README.md">English</a>
|
||||
·
|
||||
<a href="https://github.com/yusukebe/hono/blob/master/docs/README.ja.md">日本語</a>
|
||||
<a href="https://github.com/honojs/hono/blob/master/docs/README.ja.md">日本語</a>
|
||||
</p>
|
||||
|
||||
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/yusukebe/hono/ci)](https://github.com/yusukebe/hono/actions)
|
||||
[![GitHub](https://img.shields.io/github/license/yusukebe/hono)](https://github.com/yusukebe/hono/blob/master/LICENSE)
|
||||
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/honojs/hono/ci)](https://github.com/honojs/hono/actions)
|
||||
[![GitHub](https://img.shields.io/github/license/honojs/hono)](https://github.com/honojs/hono/blob/master/LICENSE)
|
||||
[![npm](https://img.shields.io/npm/v/hono)](https://www.npmjs.com/package/hono)
|
||||
[![npm](https://img.shields.io/npm/dm/hono)](https://www.npmjs.com/package/hono)
|
||||
[![npm type definitions](https://img.shields.io/npm/types/hono)](https://www.npmjs.com/package/hono)
|
||||
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/yusukebe/hono)](https://github.com/yusukebe/hono/pulse)
|
||||
[![GitHub last commit](https://img.shields.io/github/last-commit/yusukebe/hono)](https://github.com/yusukebe/hono/commits/master)
|
||||
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/honojs/hono)](https://github.com/honojs/hono/pulse)
|
||||
[![GitHub last commit](https://img.shields.io/github/last-commit/honojs/hono)](https://github.com/honojs/hono/commits/master)
|
||||
|
||||
Hono - _日本語の\[炎\]に由来 🔥_ - はCloudflare WorkersやFastly Compute@Edgeなど、Service Workerベースのサーバーレス向けの小さくて、シンプルで、めちゃくちゃ速いWebフレームワークです。
|
||||
|
||||
@ -68,15 +68,15 @@ Honoは速いけど、速いだけではありません。
|
||||
たくさんのミドルウェアを1からコードを書くことなく、使えます。
|
||||
例えば、以下のミドルウェアがあります。
|
||||
|
||||
- [Basic認証](https://github.com/yusukebe/hono/tree/master/src/middleware/basic-auth/)
|
||||
- [Cookieパース/シリアライゼーション](https://github.com/yusukebe/hono/tree/master/src/middleware/cookie/)
|
||||
- [CORS](https://github.com/yusukebe/hono/tree/master/src/middleware/cors/)
|
||||
- [ETag](https://github.com/yusukebe/hono/tree/master/src/middleware/etag/)
|
||||
- [GraphQLサーバー](https://github.com/yusukebe/hono/tree/master/src/middleware/graphql-server/)
|
||||
- [ロガー](https://github.com/yusukebe/hono/tree/master/src/middleware/logger/)
|
||||
- [Mustacheを使ったテンプレート](https://github.com/yusukebe/hono/tree/master/src/middleware/mustache/) (Cloudflare Workersのみ)
|
||||
- [JSON pretty](https://github.com/yusukebe/hono/tree/master/src/middleware/pretty-json/)
|
||||
- [静的ファイルのサーブ](https://github.com/yusukebe/hono/tree/master/src/middleware/serve-static/) (Cloudflare Workersのみ)
|
||||
- [Basic認証](https://github.com/honojs/hono/tree/master/src/middleware/basic-auth/)
|
||||
- [Cookieパース/シリアライゼーション](https://github.com/honojs/hono/tree/master/src/middleware/cookie/)
|
||||
- [CORS](https://github.com/honojs/hono/tree/master/src/middleware/cors/)
|
||||
- [ETag](https://github.com/honojs/hono/tree/master/src/middleware/etag/)
|
||||
- [GraphQLサーバー](https://github.com/honojs/hono/tree/master/src/middleware/graphql-server/)
|
||||
- [ロガー](https://github.com/honojs/hono/tree/master/src/middleware/logger/)
|
||||
- [Mustacheを使ったテンプレート](https://github.com/honojs/hono/tree/master/src/middleware/mustache/) (Cloudflare Workersのみ)
|
||||
- [JSON pretty](https://github.com/honojs/hono/tree/master/src/middleware/pretty-json/)
|
||||
- [静的ファイルのサーブ](https://github.com/honojs/hono/tree/master/src/middleware/serve-static/) (Cloudflare Workersのみ)
|
||||
|
||||
たったこれだけのコードでロガーとCORSミドルウェアを使うことができます。
|
||||
|
||||
@ -237,7 +237,7 @@ app.use(
|
||||
)
|
||||
```
|
||||
|
||||
利用可能なビルトイン・ミドルウェアについては[src/middleware](https://github.com/yusukebe/hono/tree/master/src/middleware)を参照してください。
|
||||
利用可能なビルトイン・ミドルウェアについては[src/middleware](https://github.com/honojs/hono/tree/master/src/middleware)を参照してください。
|
||||
|
||||
### カスタム・ミドルウェア
|
||||
|
||||
@ -472,7 +472,7 @@ Honoを使って、Cloudflare Workersのアプリケーションを書いてみ
|
||||
**Wrangler 1.x系** はミドルウェアのインポートに対応していません。2つの方法を推奨します。
|
||||
|
||||
1. [Wragler 2.0 Beta](https://github.com/cloudflare/wrangler2)を使う。
|
||||
2. webpack 4.x系を使わない。例えば[esbuild](https://esbuild.github.io)を利用できます。[スターターテンプレート](https://github.com/yusukebe/hono-minimal)を参考にしてみてください。
|
||||
2. webpack 4.x系を使わない。例えば[esbuild](https://esbuild.github.io)を利用できます。[スターターテンプレート](https://github.com/honojs/hono-minimal)を参考にしてみてください。
|
||||
|
||||
---
|
||||
|
||||
@ -544,13 +544,13 @@ npx wrangler@beta publish index.js
|
||||
|
||||
## スターターテンプレート
|
||||
|
||||
Cloudflare Workersのアプリケーションを書き始めるのに[スターターテンプレート](https://github.com/yusukebe/hono-minimal)を使うことができます。
|
||||
Cloudflare Workersのアプリケーションを書き始めるのに[スターターテンプレート](https://github.com/honojs/hono-minimal)を使うことができます。
|
||||
TypeScript、esbuild、Miniflareを使った最小限のものとなっています。
|
||||
|
||||
このテンプレートを使った雛形を生成するには、以下のコマンドを打ちます。
|
||||
|
||||
```sh
|
||||
wrangler generate my-app https://github.com/yusukebe/hono-minimal
|
||||
wrangler generate my-app https://github.com/honojs/hono-minimal
|
||||
```
|
||||
|
||||
## 関連プロジェクト
|
||||
@ -579,7 +579,7 @@ wrangler generate my-app https://github.com/yusukebe/hono-minimal
|
||||
|
||||
## コントリビューターの方々
|
||||
|
||||
[全てのコントリビューター](https://github.com/yusukebe/hono/graphs/contributors)へ。ありがとう!
|
||||
[全てのコントリビューター](https://github.com/honojs/hono/graphs/contributors)へ。ありがとう!
|
||||
|
||||
## 作者
|
||||
|
||||
|
@ -4,11 +4,6 @@
|
||||
"main": "index.js",
|
||||
"author": "yusuke@kamawada.com",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/yusukebe/hono.git"
|
||||
},
|
||||
"homepage": "https://github.com/yusukebe/hono",
|
||||
"scripts": {
|
||||
"dev": "fastly compute serve --watch",
|
||||
"prebuild": "node ./build.js",
|
||||
|
@ -4,7 +4,7 @@ export const Footer = () => {
|
||||
return (
|
||||
<footer>
|
||||
<address>
|
||||
Built with <a href='https://github.com/yusukebe/hono'>Hono</a>
|
||||
Built with <a href='https://github.com/honojs/hono'>Hono</a>
|
||||
</address>
|
||||
</footer>
|
||||
)
|
||||
|
@ -82,9 +82,9 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/yusukebe/hono.git"
|
||||
"url": "https://github.com/honojs/hono.git"
|
||||
},
|
||||
"homepage": "https://github.com/yusukebe/hono",
|
||||
"homepage": "https://github.com/honojs/hono",
|
||||
"keywords": [
|
||||
"web",
|
||||
"app",
|
||||
|
@ -68,4 +68,4 @@ footer.mustache:
|
||||
|
||||
## Example
|
||||
|
||||
<https://github.com/yusukebe/hono/tree/master/examples/mustache>
|
||||
<https://github.com/honojs/hono/tree/master/examples/mustache>
|
||||
|
@ -39,4 +39,4 @@ Asset files:
|
||||
|
||||
## Example
|
||||
|
||||
<https://github.com/yusukebe/hono/tree/master/examples/serve-static>
|
||||
<https://github.com/honojs/hono/tree/master/examples/serve-static>
|
||||
|
Loading…
Reference in New Issue
Block a user