cwxiaos / bark-worker

Bark Server on Cloudflare Worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bark-Worker

License: GPL v3

中文文档

Note

On iOS 18, device token may change, the previous way to use multi-key or key alias may be unavailable, refer to Tips for more details.

Caution

For D1 Alpha Users: On August 1, 2024, D1 alpha databases will stop accepting live SQL queries. See Migration Guide

Bark-Worker is a Bark-Server implenmention on Cloudflare Worker. It provides privacy-aware users with a cheap and private bark backend.

What is Bark?

Bark is an iOS App which allows you to push customed notifications to your iPhone.

Note

A domain is required if worker.dev is unavailable in your country/region

Features

  • Full Bark-Server APIs support
    • register
    • ping
    • healthz
    • info
    • push
  • Path based parameters resolve
  • Easy to deploy, Cheap to use and Convenient to manage

Setup

Note

Select one, D1 or KV Version are both available. D1 Version is recommended for its higher usage than KV Version

Refer to Setup Guide

Cloudflare D1 Version

Create a Worker and a D1 Database, bind D1 database to Worker with name database

Cloudflare KV Version

Create a Worker and a KV Storage, bind KV Storage to Worker with name database

Tips

  • Multi Device Key to one Device
  • Device Key Alias
  • D1 Database Manage in Console
  • etc.

Refer to Tips

About

Bark Server on Cloudflare Worker

License:GNU General Public License v3.0


Languages

Language:JavaScript 88.5%Language:Shell 11.5%