No description
  • TypeScript 43.5%
  • HTML 35.7%
  • JavaScript 18.5%
  • CSS 2.3%
Find a file
Bryle Baligad (laptop-win) 4b2444f0df Also put username in "this"
2026-09-05 21:38:15 +08:00
backend Implement passkey as sole authentication source (7/x) 2026-09-05 21:20:01 +08:00
frontend Also put username in "this" 2026-09-05 21:38:15 +08:00
reference Update protocol communication diagram 2024-10-05 22:31:51 +08:00
.gitignore Update git/node stuff 2024-05-30 21:13:13 +08:00
.prototools Update prototools to allow newer bun versions 2024-05-28 01:54:46 +08:00
bass.ts Implement passkey as sole authentication source (1/x) 2026-09-05 20:50:49 +08:00
log.ts Convert ANSI to html 2023-07-17 13:22:22 +08:00
nodemon.json Initial commit 2023-05-19 00:07:22 +08:00
package.json Use bun requestIP method instead of X-Forwarded-For header 2025-08-21 11:06:45 +08:00
README.md Update readme 2024-05-22 22:47:06 +08:00
Singleton.ts Add singleton class 2023-07-17 12:42:33 +08:00
tsconfig.json Update tsconfig.json 2023-09-23 15:30:23 +08:00
version.txt Bump version 2024-12-10 23:58:16 +08:00

BryleBaligad Account SyStem (BASS)

This account system replaces the older BryleBaligad Account with more features, more security, and a more organised codebase.


How to run

  1. Clone this repository
  2. Install bun.sh >= 0.4.1, nodejs >= 16, and npm >= 8
  3. Create pem keypair with the following command:
openssl genrsa -out private_key.pem 4096; openssl rsa -in private_key.pem -outform PEM -pubout -out public_key.pem
  1. Place in ./backend/cryptography/keys
  2. Add SMTP2GO credentials in .env as SMTP2GOUSER=# and SMTP2GOPASS=#
  3. Run bun bass.ts. The server will run on port 3000

Environment Variables

KV Pair Description
PORT = # Port (3000 default)
STAGING = TRUE|FALSE Enables staging mode
SMTP2GOUSER = # SMTP2GO username
SMTP2GOPASS = # SMTP2GO password
DEBUGUSERS = "Username1,Username2" Enables debug mode for comma-separated users
NODE_PATH = /path/to/node Path to node for sending email notifications