Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Browser Dials

A Chromium browser extension that replaces the new tab page with a customizable speed-dial dashboard. Works fully offline (local-only mode) or syncs with a self-hosted server.


Features

  • Speed-dial grid on every new tab
  • Multiple named profiles to organize your dials
  • Local-only storage — no account required
  • Optional self-hosted sync server to keep dials in sync across browsers
  • Custom splash background (upload your own image or use a public photo service)
  • Built-in search bar with configurable search engine
  • Custom icons per dial (upload or auto-fetched favicon)

Extension Setup

Load in Chrome / Brave

  1. Open chrome://extensions (or brave://extensions)
  2. Enable Developer mode (top-right toggle)
  3. Click Load unpacked and select the extension/ folder
  4. Open a new tab — Browser Dials is now your new tab page

Configuration

Open the extension settings via the toolbar icon or by navigating to the Settings link on the new tab page.

Tab What's there
General Open dials in a new tab, search bar and default search engine
Appearance Theme, dial icon size and opacity, background image (upload or Picsum / Unsplash)
Profiles Create, rename, and delete dial profiles; per-profile grid and colours
Sync Local only (default) or sync with your server; sign in, 2FA, passkeys via browser
Backup Export and import your dials as JSON, clear local data

Sync Server

The optional sync server lets you keep your dials consistent across multiple browsers or devices. It is a Node.js/Express application backed by MariaDB.

Full self-hosting guide: SELFHOSTING.md — the authoritative, up-to-date setup, configuration, and troubleshooting reference. The sections below are a quick overview.

Authentication

Log in via POST /api/auth/login (username + password) to receive a session token, then send it on every subsequent request:

Header Value
X-Sync-Token Session token returned by /api/auth/login

Users can add two-factor authentication from the portal: an authenticator app (TOTP), passkeys (also usable for passwordless portal sign-in), and one-time recovery codes. The extension supports TOTP codes directly, and passkeys via Sign in via browser, which hands the sign-in over from the portal. See SELFHOSTING.md.

Passwords are stored as PBKDF2-SHA256 hashes (120 000 iterations). Registration requires an email address and can be enabled/disabled by an admin from the account portal (/portal) or PATCH /api/admin/settings. Forgotten passwords are reset via an emailed link (see SMTP_* env vars below) — configured through the portal's "Forgot password?" link.

Running with Docker (recommended)

Prerequisites: Docker 20+, Docker Compose 2.0+

Choose a deployment option based on your needs:

Quick Start (Local Development)

cp examples/docker-compose.simple.yml docker-compose.yml
cp examples/.env.simple .env
# Edit .env with your passwords
docker-compose up -d
docker-compose exec server node scripts/create-user.js admin password

Production Deployment

cp examples/docker-compose.production.yml docker-compose.yml
cp examples/.env.production .env
# Generate secure secrets and edit .env
openssl rand -base64 32
# Set up SSL certificates, then:
docker-compose up -d
docker-compose exec server node scripts/create-user.js admin password

See examples/README.md for detailed deployment scenarios and configurations.

The server listens on port 3737 by default (SERVER_PORT in .env to override).

Building from Source (Development)

To build and run the image locally from the Dockerfile:

cp .env.docker .env
# Edit .env with your values
docker-compose up -d --build

Running without Docker

cd server
npm install

# Create a .env file (see .env.docker for all variables)
cp ../.env.docker .env

# Run database migrations
mysql -u root -p browser_dials < schema.sql

# Start the server
npm start
# or for development with auto-reload:
npm run dev

Create a user manually

cd server
node scripts/create-user.js <username> <password>

Environment Variables

Variable Default Description
PORT 3737 HTTP port the server listens on
DB_HOST db Database hostname
DB_PORT 3306 Database port
DB_USER browser_dials Database user
DB_PASS (required) Database password
DB_NAME browser_dials Database name
SYNC_DEFAULT_USERNAME / SYNC_DEFAULT_PASSWORD (optional) Seeds a bootstrap account, promoted to admin
PUBLIC_URL (request-derived) Base URL used to build links in emails
WEBAUTHN_RP_ID / WEBAUTHN_RP_NAME (host of PUBLIC_URL) / Browser Dials Passkey domain and display name
SMTP_HOST / SMTP_PORT / SMTP_USER / SMTP_PASS / SMTP_FROM / SMTP_SECURE (optional) Outgoing mail for password-reset emails; if unset, reset links are logged instead of emailed

API Endpoints

Method Path Description
POST /api/auth/login Log in, returns a session token
POST /api/auth/register Register a new account (requires email; admin can disable)
POST /api/auth/mfa/verify Finish a login that returned MFA_REQUIRED (TOTP or recovery code)
POST /api/auth/webauthn/authenticate/options · /verify Passkey sign-in (second factor or passwordless)
POST /api/auth/extension-handoff/exchange Extension swaps a portal hand-off code for a session
GET /api/auth/mfa Two-factor status, passkeys and remaining recovery codes
POST /api/auth/forgot-password Request a password-reset email
POST /api/auth/reset-password Reset password using an emailed token
GET /api/sync Fetch all profiles + dials for the user
POST /api/sync Push all profiles + dials (full replace)
GET /api/profiles List profiles
POST /api/profiles Create a profile
PUT /api/profiles/:id Update a profile
DELETE /api/profiles/:id Delete a profile
GET /api/profiles/:id/dials List dials in a profile
POST /api/profiles/:id/dials Create a dial
PUT /api/dials/:id Update a dial
DELETE /api/dials/:id Delete a dial
POST /api/dials/:id/icon Upload a custom icon

Development

Generate Icons

npm run icons

Requires the canvas package. Generates all required icon sizes into extension/icons/.

Package the Extension

Use the PowerShell packaging script to build a release zip with the extension files at the archive root and the packaged manifest.json version set correctly:

.\package-extension.ps1

The packaged artifact is written to dist/browser-dials-extension-<version>.zip.

Publish a Release

.\publish-server.ps1

This now packages the extension first, then publishes the server Docker image tags for the same version.


License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages