Giter Site home page Giter Site logo

dumpmemory / digital-pigeon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haojie06/digital-pigeon

0.0 0.0 0.0 61 KB

A digital pigeon, send tempory messages with cloudflare workers. 咕咕传信,使用cloudflare workers来发送信息。可指定访问一定次数后删除记录,可以指定密钥加密,可用来交换一些临时但敏感的信息。 demo: https://digitalpigeon.aoyou.workers.dev/ https://msg.rmrf.online/

License: Other

JavaScript 14.26% HTML 85.74%

digital-pigeon's Introduction

🕊 DigitalPigeon 咕咕送信

中文说明

demo

这是我的第一个cloudflare workers项目,借助workers和kv储存可以实现临时信息的传输。可以设置最大浏览次数以及进行aes加密。可以用来交换一些临时却又有些敏感的信息。

自部署方式

由于本项目用了webpack,所以没办法直接在网页中通过快速编辑代码的方式来部署。 需要安装cli工具 wrangler,并clone此项目来部署。 之后有空我考虑加一个actions用于部署到cloudflare...

npm i @cloudflare/wrangler -g
git clone https://github.com/aoyouer/digital-pigeon
# 在浏览器中登陆,登陆后获取自己的账户id
wrangler login
wrangler whoami
# 创建kv储存并与 "PIGEON" 命名空间绑定
wrangler wrangler kv:namespace create "PIGEON"
npm install
# 编辑 wrangler.toml 填上 Account ID 以及 KV的ID 并将worker改成自己想要的名字,或者另外配置zone
wrangler publish

TODOs

  • 完善信息提示 (如密码错误、服务器错误等)

  • 储存信息过期机制

    默认消息有效期1天,最大30天。

  • 全局强制加密,服务器只储存密文

  • 支持图片分享

English version

demo

This is my first cloudflare workers project, with workers and kv storage can achieve temporary information transfer. You can set how many times the message can be viewed before deleting and use aes to encrypt your message in the browser. This program can be used to exchange some temporary but somewhat sensitive information with your friends.

Self-deployment

Since this project uses webpack, there is no way to deploy it directly in the web page by quickly editing the code. You need to install the cli tool wrangler and clone this project to deploy. I am considering adding an github actions for deploying to cloudflare...

npm i @cloudflare/wrangler -g
git clone https://github.com/aoyouer/digital-pigeon
# Login in the browser and get your account id after login
wrangler login
wrangler whoami
# Create kv storage and bind it to the "PIGEON" namespace
wrangler wrangler kv:namespace create "PIGEON"
npm install
# Edit wrangler.toml and fill in the Account ID and KV ID and change the worker to the name you want, or configure another zone
wrangler publish

digital-pigeon's People

Contributors

haojie06 avatar

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.