• Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The low latency database powered by Cloudflare Worker and KV

whatsbot

The low latency database powered by Cloudflare Worker and KV



Features :

  • Globally Available
  • Lowest Latancy
  • Serverless
  • Rest API
  • Token Based Authenticated Request Support

API :

1. Save a Payload (JSON)

  • Request:
Method: POST
Content-Type: application/json
URL (Secured with Token): https://<your-app>.workers.dev/?key=<post-key>
URL (Not Secured): https://<your-app>.workers.dev/
BODY: Json Data (Not Parsed)
  • Response:
{
    "status": true,
    "_id": "16125252787azq",
    "query": "https://<your-app>.workers.dev/16125252787azq",
    "data": {
        "i_am": "writing a readme"
    }
}
  • Set an ID manually:
Send this πŸ‘‡

"_id":"my-unique-id"

with Body

2. Get a saved Data:

  • Request:
Method: GET
URL: https://<your-app>.workers.dev/<_id>
  • Response:
{
    "status": true,
    "_id": "16125252787azq",
    "data": {
        "i_am": "writing a readme"
    }
}

3. Delete a Data:

  • Request:
Method: DELETE
URL (Secured with Token): https://<your-app>.workers.dev/<_id>?key=<delete-key>
URL (Not Secured): https://<your-app>.workers.dev/<_id>
  • Response:
{
    "status": true,
    "msg": "Deleted Successfully"
}

Deploy :

  • Open Cloudflare Worker Page
  • Click on KV
  • In Namespace Name section Type a Name & Click on Add, a namespace will created.
  • Now click on Workers & Create a worker
  • Copy the code of worker.js , paste into Worker & Click on Save & Deploy
  • Now go back to worker main page, here you will see that your created worker listed there, click on that.
  • Click on Settings
  • In KV Namespace Bindings section click on Add Binding
  • Write TUHIN in Variable name & select your recently created Namespace for KV namespace.
  • You just made your Cloudflare DB, Now Read the API Endpoint and use it in your Project πŸ˜ͺ

Secure with Token :

You can impliment token based authentication system for POST and DELETE requests

  • Write your key in POSTKEY to secure POST requests with a Token (Line No: 12)
  • Write your key in DELETEKEY to secure DELETE requests with a Token (Line No: 13)

Note for Kangers :

Kanging will not make you a developer. So, don't be a kanger ⚠

License & Copyright :

Connect :

Thanks to Cloudflare to give these services for free πŸ₯°

More Repositories

1

WhatsBot

Modular Userbot for Whatsapp. Supports MultiDevice authentication on non persistent server.
JavaScript
324
star
2

imdb-api

Serverless IMDB API powered by Cloudflare Worker
JavaScript
115
star
3

bingchat-api

Bing Chat unofficial API
TypeScript
98
star
4

JiosaavnAPI

Unofficial JioSaavn API Written in Javascript. Vercel deployment is unavailable due to high number of traffic. I guess somebody doing a DDOS
JavaScript
74
star
5

amazon-scraper

Serverless Amazon India Scraper with search and product API, made with Cloudflare worker
JavaScript
71
star
6

hls-downloader

Download HLS videos directly from your browser
JavaScript
62
star
7

Musicder

The React Website for Download or Stream Music with Lyrics for Free
JavaScript
53
star
8

readme-stats-github

Generate your GitHub's Stats in SVG
TypeScript
48
star
9

Contact-Form

The Lightweight Contact Form which send contact requests on your Telegram
JavaScript
39
star
10

tplayer.js

Flexible and easy Dash/HLS/DRM integration for HTML5 video.
JavaScript
28
star
11

gaana-downloader-extension

Download songs from gaana.com, or enjoy an ad free experience. This extension can do all premium stuffs for free.
JavaScript
25
star
12

dynamic-image

Dynamically generate images for open-graph or website
HTML
22
star
13

termux-surveillance

A surveillance kit to protect my house (Hopefully)
JavaScript
20
star
14

Firecdn

The Low Latency CDN Powered by Firebase
JavaScript
20
star
15

Upier

Shareable Payment's Link for UPI
TypeScript
19
star
16

coolvideo

A Telegram bot which generates your intro video programmatically πŸ“½οΈ
JavaScript
18
star
17

streamtape-extension

Download or play StreamTape.com videos AdFree with minimal effort
JavaScript
15
star
18

Cowin-Bot

Get updates in Telegram when a vaccination center available in your pin code. We can win Covid 🀝
JavaScript
14
star
19

Streamwire

Embed StreamWire.net video without ADS (Unofficial)
CSS
12
star
20

express-mongodb-workflow

You should follow this workflow to build your easily maintainable, secure API with ExpressJS and MongoDB πŸš€
JavaScript
11
star
21

url-shorten-api

Serverless URL Shortener API (Nodejs + MongoDB + Vercel)
JavaScript
10
star
22

Git-Site

Create Your Beautiful Personal Website with Github API and Host using Github Pages.
CSS
10
star
23

Ekart-API

Free Secured Ekart Courier Tracking API made with NodeJS (DEPRECATED)
JavaScript
10
star
24

weather-bot

Weather bot for Telegram, made using TelegrafJS
JavaScript
8
star
25

weather-api

Free Weather API, Made with NodeJS
JavaScript
7
star
26

telegram-subs-counter

Realtime Telegram Subscribers count for telegram with Socket.io
JavaScript
7
star
27

Project-IP

Get your IP Address in plaintext with Cloudflare Worker
JavaScript
7
star
28

text-to-speech

Text to Speech using Google's Library (Made for Fun)
HTML
6
star
29

audio-metatag-writer

Metatag writer with Mutagen
Python
6
star
30

timeclicker

Redirect on a link based on video time
JavaScript
6
star
31

realtime-video-statistics-in-video-s-title

Realtime YouTube video's statistics in video's Title & Description
JavaScript
6
star
32

Musicder-Bot

India's First Open Sourced Telegram Song Downloader Bot for Jiosaavn
JavaScript
5
star
33

time-api

Indian Time API Powered by Vercel
JavaScript
5
star
34

Ekart-Bot

Ekart Package Tracking Telegram BOT
JavaScript
5
star
35

tuhinpal.github.io

My Website & Blog made with GatsbyJS
JavaScript
5
star
36

investment-ready

This is project calculates Buffett Ratio and see if it is a good time to invest.
JavaScript
5
star
37

KuttIT-Bot

Kutt IT Telegram BOT fuled by NodeJS
JavaScript
5
star
38

CoWin

A NodeJS wrapper of Cowin Public API
JavaScript
4
star
39

gplinks-bot

Gplinks Telegram BOT fuled by NodeJS
JavaScript
4
star
40

tuhinpal

My Profile's ReadME
4
star
41

node-file-server

Very lightweight NodeJS file server made for Termux
EJS
4
star
42

thingstodo

Things to do on a place. Based on Google's things to do. Thanks to @google for organizing data for people.
JavaScript
4
star
43

bhailangfun

Another bhailang interpreter with Regex expressions and JS
JavaScript
4
star
44

plyr-snippets

Some Plyr Snippet
HTML
3
star
45

Tasker

Tasker app made with react native (Expo)
JavaScript
2
star
46

musicder-native

Old Musicder
CSS
2
star
47

firenext-series

Firebase + NextJS
JavaScript
2
star
48

cloudflare-worker-snippet

All useful Cloudflare Worker Snippet I ever created
JavaScript
2
star
49

summarizer

Summarize a text, and send it through a HTTP API
JavaScript
2
star
50

gpt2

Predict text with gpt2
Python
1
star
51

io-example

This repository contains some small socket.io project examples.
HTML
1
star