Backend of Bark
Find a file
2026-02-24 15:27:53 +08:00
.github ghcr 2025-05-12 14:41:29 +08:00
apns Delete invalid token 2025-09-10 16:45:00 +08:00
database Add MySQL TLS/SSL support 2025-11-17 09:52:54 +08:00
deploy Add subtitle 2024-12-11 17:05:56 +08:00
docs Add MCP documentation 2025-12-30 09:49:51 +08:00
.gitignore add .vscode to .gitignore 2025-07-17 16:17:50 +08:00
app.json support serverless 2022-03-18 12:04:50 +08:00
go.mod chore(deps): bump github.com/gofiber/fiber/v2 from 2.52.9 to 2.52.11 2026-02-09 15:42:40 +00:00
go.sum chore(deps): bump github.com/gofiber/fiber/v2 from 2.52.9 to 2.52.11 2026-02-09 15:42:40 +00:00
LICENSE add LICENSE 2020-11-22 17:43:19 +08:00
main.go refactor: streamline server initialization 2025-11-19 12:14:51 +08:00
Procfile support serverless 2022-03-18 12:04:50 +08:00
push_test.go Prevents Fiber memory overwrite bugs. 2025-01-09 16:01:03 +08:00
README.md docs: add GitHub Container Registry image usage instructions 2025-12-30 10:28:09 +08:00
route_auth.go fixed: basic auth error when set url-prefix. 2025-07-03 11:19:44 +08:00
route_mcp.go fix(mcp): disable SSE streaming to mitigate FIN-WAIT-2 buildup via docker-proxy 2026-02-24 15:27:53 +08:00
route_misc.go close: #34 2025-01-10 14:30:51 +08:00
route_push.go fix: increase maximum device token length 2026-02-04 15:37:00 +08:00
route_register.go fix: increase maximum device token length 2026-02-04 15:37:00 +08:00
router.go Add subtitle 2024-12-11 17:05:56 +08:00
Taskfile.yaml Add subtitle 2024-12-11 17:05:56 +08:00
util.go feat(register): remove uuid, fix query parse 2021-02-21 12:07:00 +08:00

Bark

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

Installation

For Docker User

Docker Automated build Image Size License

The docker image is already available, you can use the following command to run the bark server:

docker run -dt --name bark -p 8080:8080 -v `pwd`/bark-data:/data finab/bark-server

You can also use the GitHub Container Registry image:

docker run -dt --name bark -p 8080:8080 -v `pwd`/bark-data:/data ghcr.io/finb/bark-server

If you use the docker-compose tool, you can copy docker-copose.yaml under this project to any directory and run it:

mkdir bark-server && cd bark-server
curl -sL https://github.com/Finb/bark-server/raw/master/deploy/docker-compose.yaml > docker-compose.yaml
docker compose up -d

For General User

  • 1、Download precompiled binaries from the releases page
  • 2、Add executable permissions to the bark-server binary: chmod +x bark-server
  • 3、Start bark-server: ./bark-server --addr 0.0.0.0:8080 --data ./bark-data
  • 4、Test the server: curl localhost:8080/ping

Note: Bark-server uses the /data directory to store data by default. Make sure that bark-server has permission to write to the /data directory, otherwise use the -d option to change the directory.

For Developer

Developers can compile this project by themselves, and the dependencies required for compilation:

  • Golang 1.18+
  • Go Mod Enabled(env GO111MODULE=on)
  • Go Mod Proxy Enabled(env GOPROXY=https://goproxy.cn)
  • go-task Installed

Run the following command to compile this project:

# Cross compile all platforms
task

# Compile the specified platform (please refer to Taskfile.yaml)
task linux_amd64
task linux_amd64_v3

Note: The linux amd64 v3 architecture was added in go 1.18, see https://github.com/golang/go/wiki/MinimumRequirements#amd64

Use MySQL instead of Bbolt

Just run the server with -dsn=user:pass@tcp(mysql_host)/bark, it will use MySQL instead of file database Bbolt

Others