How Envolog tags work
An open description of the tag format, so any tag can be read with or without this company.
Each tag keeps its own record
Every label has three layers, so it keeps working no matter what:
- Printed text on the label: the item, where it is, and how to shut it off.
- A plain-text NFC record (on NFC tags): the same essentials, readable by any NFC reader app with no internet or website.
- A link (QR code and NFC) that contains the item's record itself, after the
#. Browsers never send that part to any server.
Live sync is optional. When it's on, the link also carries a permanent tag code, and the app shows newer updates when it can reach the service. The tag's own copy is always there as a fallback.
Link formats
| Link | Meaning |
|---|---|
/#t=DATA | An item (or a house summary) stored entirely in the link |
/t/CODE#s=DATA | An item with live sync. CODE is permanent; DATA is the tag's own copy |
/h/CODE#s=DATA | A house guide with live sync. DATA is an emergency summary |
Reading DATA
DATA starts with one character, followed by base64url text (RFC 4648 §5, no padding):
0…: the base64url decodes to UTF-8 JSON.1…: the base64url decodes to raw DEFLATE data (RFC 1951, no zlib header). Inflate it to get UTF-8 JSON.
Example in Python: json.loads(zlib.decompress(base64.urlsafe_b64decode(data[1:] + '==='), -15))
Item fields
| Key | Field | Key | Field |
|---|---|---|---|
| n | Item name | m | Model |
| c | Type (Water, Gas, Electrical…) | s | Serial |
| l | Location | d | Installed (YYYY-MM-DD) |
| i | How to use / shut off | w | Warranty until |
| a | Safety warning | v | Service every N months |
| b | Brand | k / p | Installer / phone |
| h | Service history (one line per entry) | x | Notes |
House summaries are {"t":"h","n":name,"e":[[item, type, location, shutoff], …]}.
Timestamps (proof of date)
Each home's maintenance history is a hash chain: every entry's SHA-256 fingerprint covers the entry before it. About every 6 hours, Envolog timestamps the newest fingerprint of every home that changed:
- Leaf for each home:
SHA-256("envolog-anchor-leaf|" + houseCode + "|" + entryNumber + "|" + entryFingerprint), as lowercase hex. Leaves are sorted by house code. - Merkle tree: each pair becomes
SHA-256("envolog-anchor-node|" + left + right); an odd leaf at the end of a level moves up unchanged. The top is the root. - A short text statement containing the root is written, and its SHA-256 is timestamped in the Bitcoin blockchain through OpenTimestamps. Only that hash leaves Envolog.
Anyone can download a timestamp's statement (/api/anchors/N/statement) and proof file (/api/anchors/N/ots) and check them at opentimestamps.org or with the ots verify tool. A home's Merkle paths are at /api/house/CODE/proofs. Because the chain links every entry to the one before, a timestamp on entry N proves entries 1 to N existed by that date.
Hosting the viewer yourself
The whole viewer is one self-contained page: download it here. Put it on any web host, open it with a tag's #t= or #s= data, and it shows the record. No server or database is needed.