Giter Club home page Giter Club logo

workers-mail's Introduction

Workers Mail

Workers Mail は、 Cloudflare Workers 上で独自ドメインの電子メール ホスティングを行うアプリケーションです。 API とフロントエンドを提供しており、簡単にあなたのドメイン名のメールアドレスを管理できます。

メールの送受信には Cloudflare の Email Routing 機能を使用します。

Demo

Workers Mail(mail.lain.im)

3MQWxLvLFbY_EiVJ.mp4

ToDo

  • メール作成
  • メール送信
  • ラベリング
  • メッセージ検索
  • ロギング
  • エンドツーエンド暗号化 (ProtonMail-like)

フロントエンド

フロントエンドは SvelteKitTailwind CSS で構築されたシングルページアプリケーションです。

API

APIは Hono を利用しています。 Hono は Cloudflare Workers などのエッジ環境で API を構築するためのフレームワークです。

API ドキュメントは API.md を参照してください。

Build Frontend

  1. git clone https://github.com/shinosaki/workers-mail.git
  2. cd workers-mail/
  3. npm install
  4. npm run front:build

Deploy

When the API route is api.mail.lain.im, the route of the front end MUST be the route of the API with "api." removed. (e.g. mail.lain.im)

  1. git clone https://github.com/shinosaki/workers-mail.git
  2. cd workers-mail/
  3. npm install

API

  1. Edit wrangler.toml
  2. wrangler login
  3. npm run kv:create
  4. npm run kv:init
  5. npm run deploy

Frontend

  1. Set PUBLIC_API_ENDPOINT from ./front/.env
  2. npm run deploy:front
  3. Set custom domains from Cloudflare Pages dashboards

Author

Shinosaki (Twitter(@snsk82))

Dependencies

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.