On this page8
Part of my work on Andazeh. By Mohammad Javad Dastouri, full-stack and AI engineer.
A reply tied to a session is lost when the session ends. Andazeh addresses a reply to a device instead, and that decision has costs.
- Messaging lines
- ~2,790
- Message store lines
- 1,603
- Fingerprint lines
- 721
- Device resolution lines
- ~1,340
- GPU database lines
- 572
- Telegram webhook lines
- 3,083
At a glance
- Area
- Analytics, SEO and marketing
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Node.js 22, PostgreSQL, WebSocket, Web Push, Telegram Bot API
- Area
- Analytics, SEO and marketing
- My role
- Sole engineer: design, build, deploy and run
- Built with
- Node.js 22, PostgreSQL, WebSocket, Web Push, Telegram Bot API
Why a reply goes to a device
A message tied to a session has nowhere to go once that session ends. Messages are addressed to a device fingerprint, so a reply can reach a returning visitor days later without a login.
The cost is real: it needed a tenant join and its own set of queries.
Delivery you can read
Each message moves from sent to delivered to read, with dismissed and failed as end states and pending counted separately. The chatbox also reports its own state: visibility, drag, position, size, page and viewport.
The operator inbox
One screen holds the conversation and what is known about the visit.
Events
The visitor saw, clicked and opened a form
Context
Sessions, pages visited and engagement
Delivery
A running count for each state
Events
The visitor saw, clicked and opened a form
Context
Sessions, pages visited and engagement
Delivery
A running count for each state

Answering from Telegram
A 3,083-line webhook module and a 2,162-line service bring live visitor notifications, session inspection and IP blocking into Telegram. An operator's reply is routed back to the visitor by fingerprint.
Keeping customers apart
Every message resolves through fingerprint, session, website and tenant, using the most recent session, so a conversation is never attributed to the wrong customer.
Recognising the device
The fingerprint draws on six signal families: canvas, WebGL, screen geometry, timezone, CPU cores and device memory (721 lines). Browsers now freeze or generalise user-agent details, so the server resolves devices with about 1,340 lines in six platform modules.
GPU database
572 lines that map WebGL renderer strings to real hardware.
Why not one parser
each platform hides different details, so each has its own logic.
GPU database
572 lines that map WebGL renderer strings to real hardware.
Why not one parser
each platform hides different details, so each has its own logic.
Consent still applies
Hiring someone to build the whole product?
Tell me about the role, or go back to the project: a complete analytics platform I designed, built and run.
- Section
- Analytics, SEO and marketing
- Updated
- November 9, 2026
- Reading time
- 3 min read
Hiring for this kind of work?
Tell me about the role and I will reply by email.
Discuss a role with me
