クイックスタート
クイックスタートは、新しい Cloudflare Workers プロジェクトを構築するための出発点として設計された GitHub リポジトリです。以下のプロジェクトのいずれかを開始するには、次のコマンドを実行します:
npm create cloudflare@latest <NEW_PROJECT_NAME> -- --template <GITHUB_REPO_URL>-
new-project-name- この名前のフォルダーが作成され、その中に新しいプロジェクトが配置され、あなたの Workers アカウントに事前設定されます。
-
template- これは、以下のように GitHub リポジトリスターターの URL です。可能な値の完全なリストについては、create-cloudflare ドキュメントを参照してください。
Sentry
あなたの Workers アプリケーションの例外とエラーを Sentry.io にログします - エラー追跡ツール。
npm create cloudflare@latest my-app -- --template mhart/cf-sentryyarn create cloudflare@latest my-app --template mhart/cf-sentrypnpm create cloudflare@latest my-app --template mhart/cf-sentry画像の色
PNG または JPEG 画像の主要な色を取得します。
npm create cloudflare@latest my-app -- --template xtuc/img-color-workeryarn create cloudflare@latest my-app --template xtuc/img-color-workerpnpm create cloudflare@latest my-app --template xtuc/img-color-workerクラウドストレージ
Worker スクリプトからプライベートな Amazon Web Services (AWS) バケットファイルを提供します。
npm create cloudflare@latest my-app -- --template conzorkingkong/cloud-storageyarn create cloudflare@latest my-app --template conzorkingkong/cloud-storagepnpm create cloudflare@latest my-app --template conzorkingkong/cloud-storageBinAST
Cloudflare Worker を介して JavaScript バイナリ AST を提供します。
npm create cloudflare@latest my-app -- --template xtuc/binast-cf-worker-templateyarn create cloudflare@latest my-app --template xtuc/binast-cf-worker-templatepnpm create cloudflare@latest my-app --template xtuc/binast-cf-worker-templateエッジサイドレンダリング
Vite を使用して、Cloudflare のグローバルネットワーク上でページを素晴らしい DX でレンダリングします。i18n、Markdown サポートなどが含まれています。
npm create cloudflare@latest my-app -- --template frandiox/vitessedge-templateyarn create cloudflare@latest my-app --template frandiox/vitessedge-templatepnpm create cloudflare@latest my-app --template frandiox/vitessedge-templateFauna を使用した REST API
Cloudflare Workers と現代アプリケーションのデータ API である Fauna を使用して、高速でグローバルに分散した REST API を構築します。
npm create cloudflare@latest my-app -- --template fauna-labs/fauna-workersyarn create cloudflare@latest my-app --template fauna-labs/fauna-workerspnpm create cloudflare@latest my-app --template fauna-labs/fauna-workersApollo GraphQL サーバー
Cloudflare Workers を使用して Cloudflare のグローバルネットワークにデプロイされた、超高速でグローバルに分散した Apollo GraphQL サーバー。
npm create cloudflare@latest my-app -- --template cloudflare/workers-graphql-serveryarn create cloudflare@latest my-app --template cloudflare/workers-graphql-serverpnpm create cloudflare@latest my-app --template cloudflare/workers-graphql-serverGraphQL Yoga
すべての環境、Cloudflare Workers を含む、最も柔軟で高速、軽量な GraphQL サーバー。
npm create cloudflare@latest my-app -- --template the-guild-org/yoga-cloudflare-workers-templateyarn create cloudflare@latest my-app --template the-guild-org/yoga-cloudflare-workers-templatepnpm create cloudflare@latest my-app --template the-guild-org/yoga-cloudflare-workers-templateFlareact
Flareact は、Cloudflare Workers 用に構築されたエッジレンダリング React フレームワークです。動的ページパスとエッジサイドデータフェッチング API を備えたファイルベースのページルーティングを特徴としています。
npm create cloudflare@latest my-app -- --template flareact/flareactyarn create cloudflare@latest my-app --template flareact/flareactpnpm create cloudflare@latest my-app --template flareact/flareactSunder
Sunder は、サービスワーカー用の最小限で意見のないフレームワークです。このテンプレートは、Sunder、TypeScript、Miniflare、esbuild、Jest、Sass、および静的アセット用の Workers Sites を使用しています。
npm create cloudflare@latest my-app -- --template sunderjs/sunder-worker-templateyarn create cloudflare@latest my-app --template sunderjs/sunder-worker-templatepnpm create cloudflare@latest my-app --template sunderjs/sunder-worker-templateCloudflare Workers で構築された他のサイトやプロジェクトからインスピレーションを得ましょう。
Workers で構築された