Introducing a new way to review your PRs.

Read the announcement

ndolestudio / httpsms

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API with end to end encryption supported.

View on GitHub

22 documents · Updated Nov 18, 2026

docs / web-dashboard

Web dashboard

The web dashboard is the signed-in browser control panel for httpSMS. It joins a user account to connected Android phones and presents the main product work: messaging, contacts, phone health, service settings, and billing.

Dashboard role

The dashboard is the browser interface for httpSMS. It reads account data through the httpSMS API and turns user actions into changes to messages, contacts, phone access, service rules, and subscriptions.

The dashboard does not replace the Android phone gateway. The phone provides the mobile network path for SMS. The dashboard starts work, shows its result, and manages the account resources around that work.

The main product areas are:

  • Message conversations and message status.
  • Direct and bulk message sending.
  • Search, export, resend, and deletion of message records.
  • Contact records and contact data.
  • Phone selection, phone health, and phone send rules.
  • API access, webhooks, Discord links, and send schedules.
  • Usage, plans, payments, invoices, and account deletion.

References: web/package.json• L25-47 web/…/index.vue• L161-195 web/…/index.vue• L129-158 web/…/index.vue• L883-1017

Application structure

The dashboard is a Nuxt application with route pages, a shared signed-in shell, and shared state for account resources. Nuxt builds and serves the browser application. Pinia keeps shared product state aligned across views, while Firebase supplies the user session and the API connects the browser to httpSMS services.

Route groups

Public routes introduce the service and accept sign-in. Protected routes present product screens after the user has a valid session.

AreaMain routesUser goal
Entry/, /loginLearn about the service or sign in
Messaging/threads, /threads/:id, /messagesReview conversations or send a message
Message operations/bulk-messages, /search-messagesSend batches or manage message records
Contacts/contactsSearch, import, create, edit, and delete contacts
Account and phones/settings, /phone-api-keys, /heartbeats/:idConfigure the account and connected phones
Billing/billingReview usage and manage the plan

Route rules keep protected screens behind authentication and preserve the user's intended destination after sign-in. The contacts view uses server-side search, sorting, and paging so contact work remains useful as the address book grows.

References: web/nuxt.config.ts• L33-61 web/…/auth.ts• L3-23 web/…/guest.ts• L1-22 web/…/redirectToThreads.ts• L1-11 web/…/index.vue• L21-23 web/…/contacts.ts• L54-115

Shared dashboard shell

Authenticated routes use one dashboard shell. On wide screens it places the thread list beside the current screen. On small screens it keeps the thread list within the thread route so the core message flow remains usable.

The shared header links the product areas. It supports phone choice, thread filters, archived threads, new messages, bulk messaging, message search, contacts, settings, phone keys, billing, and logout.

References: web/…/default.vue• L67-84 web/…/MessageThreadHeader.vue• L40-100 web/…/MessageThreadHeader.vue• L181-243 web/…/MessageThreadHeader.vue• L247-274

Session and shared product state

Firebase supplies the signed-in identity. The dashboard supports Google, GitHub, and email sign-in. It also supports account creation and password reset. After sign-in, the app loads the account and phones before protected product work can begin.

Shared state keeps the selected phone, threads, messages, contacts, billing data, and notices consistent across screens. Requests use the signed-in bearer token or an API key when the action requires one. The dashboard also sends its client version so the service can identify the browser client.

Phone and message events can refresh the view while the user works. A heartbeat is the Android app's signal that a phone is still alive. Shared notices give the user the result of an action in a common form.

The dashboard package defines commands for development, build, static generation, preview, lint, and tests. web/package.json is the package contract, and web/pnpm-lock.yaml fixes the package graph used by those commands. The current package set includes Nuxt 4, Vue 3, Pinia 4, Firebase 13, and Vue Router 5.

References: web/package.json• L5-18 web/package.json• L25-66 web/pnpm-lock.yaml• L1-128 web/…/FirebaseAuth.vue• L98-205 web/…/useApi.ts• L12-37 web/…/default.vue• L22-64 web/…/app.ts• L12-43 web/…/phones.ts• L20-40 web/…/threads.ts• L90-168

Product workflows

The dashboard turns a shared set of account resources into user workflows. The account identifies the user. A selected phone supplies the SMS path. Contacts add meaning to phone numbers. Message records provide the history and status shown in the interface.

Authentication and dashboard entry

The entry flow connects a browser session to the account data needed by protected screens. A visitor starts at the public site or login screen. After Firebase reports a signed-in user, the dashboard loads the account and phones before it opens the message workspace or the requested product screen.

The flow from public entry to the signed-in workspace is:

flowchart LR
    A[Public site or protected URL] --> B{Signed in?}
    B -- No --> C[Login]
    C --> D[Firebase session]
    B -- Yes --> E[Load account and phones]
    D --> E
    E --> F[Dashboard workspace]

References: web/…/login.vue• L1-15 web/…/auth.ts• L3-23 web/…/FirebaseAuth.vue• L194-205 web/…/firebase.client.ts• L35-39 web/…/auth.ts• L28-53

Phone selection and health

The selected phone is the active sender for the message workspace. The dashboard shows its number and recent heartbeat. Phone settings define rules such as send limits, retries, message expiry, missed-call replies, and schedules.

Changing the selected phone changes the thread context and reloads the conversation list. When a phone reports an update, the dashboard refreshes phone, thread, and heartbeat data. The heartbeat view helps explain why a phone may not send or receive work.

References: web/…/phones.ts• L12-40 web/…/phones.ts• L43-94 web/…/MessageThreadHeader.vue• L40-55 web/…/MessageThreadHeader.vue• L113-171 web/…/default.vue• L28-63 web/…/index.vue• L1126-1248

Messaging workspace

The messaging workspace presents activity as threads. A thread groups activity with one contact and shows its unread count, latest content, delivery state, and contact name when one is available. Users can filter the list, include archived conversations, and load more results.

An open conversation supports sending, resending, copying an ID, deleting a message, archiving the thread, marking it read, and managing its contact. It treats outbound, inbound, and missed-call records as one conversation. It also shows attachments and message states so the user can follow what happened to each record. See Dashboard message experience for the detailed messaging workflow.

The conversation view accepts messages up to 2,048 characters. It enables sending only when the thread contact has a valid phone number. Sent, failed, received, and missed-call events refresh the open view. Supported WhatsApp-style markers can render in message text for phones with the required notification token. Unsupported markers remain plain text.

The message path joins the browser, API, and Android phone as follows:

sequenceDiagram
    participant U as User
    participant D as Dashboard
    participant A as httpSMS API
    participant P as Android phone
    U->>D: Choose phone and enter message
    D->>A: Submit send request
    A->>P: Deliver work to connected phone
    P-->>A: Send or receive event
    A-->>D: Status or message event
    D-->>U: Update thread and status

References: web/…/MessageThreadHeader.vue• L47-85 web/…/MessageThread.vue• L52-74 web/…/MessageThread.vue• L93-162 web/…/index.vue• L66-119 web/…/index.vue• L176-255 web/…/index.vue• L273-365 web/…/threads.ts• L44-59 web/…/threads.ts• L90-225 web/…/threads.test.ts• L136-229

Contact management

Contacts provide the address book for the messaging workspace. A user can search by name, phone number, or email. A contact can hold several phone numbers, email addresses, and named properties.

Imports and edits update the server-backed contact list. The thread list uses contact details to replace an unknown number with a useful name. A user can add or edit a contact from an open thread without losing the conversation context.

References: web/…/ContactDialog.vue• L61-97 web/…/ContactDialog.vue• L136-207 web/…/ContactDialog.vue• L269-393 web/…/vPhoneInput.client.ts• L1-17 web/…/contacts.ts• L54-115 web/…/contacts.ts• L117-246 web/…/threads.ts• L90-106 web/…/threads.test.ts• L232-273

Message operations

Bulk messaging provides a file-based way to submit many messages. The dashboard accepts the supported CSV or Excel template and shows recent batches with counts by delivery state. A selected batch opens message search for that batch.

Message search provides a wider record view. It filters by phone, direction, status, and content. Users can export, delete, or resend eligible records. Server paging and sorting support large histories, and a service check runs before records are read.

References: web/…/index.vue• L49-107 web/…/index.vue• L129-158 web/…/index.vue• L207-257 web/…/index.vue• L160-215 web/…/index.vue• L222-330 web/…/index.vue• L377-385 web/…/index.vue• L469-660

Account and service management

Settings is the control center for the account and its connected services. It covers profile and time zone data, account and phone access, webhooks, Discord links, send schedules, email notices, data retention, and account deletion.

The account API key gives external clients broad HTTP API access. A phone API key gives a named Android phone a narrower way to authenticate for phone actions. The dashboard can create and delete keys, show them as text or QR codes, and remove phones from keys.

Webhooks send selected httpSMS events to a callback URL. Discord integration lets a user send and receive SMS from a Discord server. A send schedule controls when an attached phone may send queued messages. Retention and account deletion control when message data remains and when the account can be removed.

Billing combines plan state with current and past usage. Users can change or cancel a subscription, review payments, and generate invoices. An active subscription can block account deletion.

References: web/…/index.vue• L883-1017 web/…/index.vue• L1074-1124 web/…/index.vue• L1126-1304 web/…/index.vue• L1306-1387 web/…/index.vue• L52-97 web/…/index.vue• L120-204 web/…/index.vue• L231-299 web/…/index.vue• L408-515 web/…/index.vue• L282-797

Workflow relationships

The dashboard workflows share one lifecycle. Authentication identifies the account. Phone selection chooses the SMS path. Contacts give message threads a human label. Messaging writes message state. Settings and billing control the limits, integrations, and access rules that shape later activity.

The relationship is shown below. The dashboard reads each stage from the API and refreshes the view when the phone or message service reports a change.

flowchart TD
    A[Account session] --> B[Connected phones]
    B --> C[Selected phone]
    C --> D[Threads and message actions]
    C --> E[Heartbeat and phone settings]
    D --> F[Message history and search]
    D --> G[Contact names and details]
    E --> D
    G --> D
    G --> H[Contact management]
    I[Account settings] --> D
    I --> H
    I --> J[Webhooks and Discord]
    K[Billing plan and usage] --> D

References: web/…/phones.ts• L20-40 web/…/threads.ts• L90-168 web/…/contacts.ts• L54-115 web/…/default.vue• L43-63 web/…/MessageThreadHeader.vue• L47-85

Change checklist

When these files or sections are changed, remember to consider these:

  • A new authenticated route must stay aligned with private-route rules, login return paths, thread redirects, and shared navigation.
  • A contact field or route change must preserve search, sorting, paging, import, and thread-name enrichment.
  • An active-phone change must preserve the link between the selected number, thread owner, heartbeat view, and phone access key.
  • A phone or message event change must preserve the dashboard refresh bindings and the event choices exposed by settings.
  • Phone access key changes must keep QR display and Android sign-in behavior clear because key removal requires sign-in again.
  • Plan or usage changes must stay aligned across plan labels, subscription state, invoices, and the account-deletion guard.
  • Message changes must preserve notifications, unread counts, contact names, attachments, status updates, live refreshes, paging, and the 2,048-character input limit.
  • API authentication changes must preserve the distinction between the signed-in bearer token and keys used by external clients or phones.
  • Changes to the dashboard package set must keep web/package.json and web/pnpm-lock.yaml aligned.

Important failure modes

TriggerConsequenceGuard
No phone is registeredThe user cannot start a real SMS send from the dashboard.Install and connect the Android app before sending.
The phone stops sending heartbeatsThe phone may not send or receive work.Check the heartbeat view and the phone app state.
A message send request failsNo new outbound record may appear in the thread.Read the send error before retrying.
A thread contact has no valid phone numberThe send controls stay disabled.Open a phone contact or update the contact details.
A message is longer than 2,048 charactersThe dashboard blocks the send.Split the message before sending.
A phone API key is deleted or loses its phoneThe Android phone must authenticate again.Confirm the impact before removing the key or phone.
An active subscription remainsAccount deletion is blocked.Cancel the plan before deleting the account.
A live event arrives during a thread loadOlder data can replace newer message data.Preserve the active load and refresh rules.
Dashboard package versions drift from the lockfileInstall or build behavior can differ from the expected dashboard environment.Update the manifest and lockfile together.

Key files

FileWhy to read it
web/package.jsonDefines dashboard commands and direct package dependencies.
web/pnpm-lock.yamlFixes the package graph used by the dashboard environment.
web/nuxt.config.tsDefines the Nuxt app and route rules.
web/…/default.vueShows the signed-in shell and shared refresh path.
web/…/FirebaseAuth.vueShows sign-in, account creation, and password reset entry points.
web/…/MessageThreadHeader.vueShows navigation, active-phone choice, archive state, and thread filters.
web/…/index.vueShows conversation actions, message states, send limits, and live updates.
web/…/threads.tsShows shared thread state, paging, filters, and contact enrichment.
web/…/index.vueShows contact search, paging, import, and actions.
web/…/contacts.tsShows the server-backed contact window and contact changes.
web/…/index.vueShows batch upload and batch history.
web/…/index.vueShows message search, export, resend, and record management.
web/…/index.vueShows account, phone, integration, schedule, notice, retention, and deletion controls.
web/…/index.vueShows phone access keys and Android sign-in support.
web/…/[id].vueShows phone health and heartbeat history.
web/…/index.vueShows plan state, usage, payments, invoices, and subscription actions.
web/…/useApi.tsShows how dashboard requests carry session or API credentials.
web/…/phones.tsShows selected phone and heartbeat state.
web/…/messages.tsShows shared message actions.
web/…/billing.tsShows shared account service state.