LNS web Draft · 27 November 2026

Appendices, references and changes

The exact grammar of lns-links/1, every limit in one table, a worked example, the references, and the history of this document.

Appendix A is normative. Appendices B and C are informative: they restate the code at the builds listed in the Status section.

Appendix A. lns-links/1 grammar

In ABNF (RFC 5234), with one change: quoted strings here are case-sensitive, so "# lns-links/1", "index" and "title" match only in lower case. HEXDIG accepts a-f and A-F.

links-list   = first-line *( LF line )
first-line   = *ws "# lns-links/1" *ws [ CR ]
line         = *ws [ item *ws ] [ CR ]
item         = index-dir / title-dir / comment / entry

index-dir    = "#" *ws "index" 1*ws segment
title-dir    = "#" *ws "title" 1*ws title-text
comment      = "#" *text-char   ; any other "#" line
entry        = segment [ "/" ] 1*ws cid [ 1*ws sha256 ]

segment      = 1*seg-char       ; 1 to 255 bytes of UTF-8,
                                ; and not "." or ".."
cid          = 8*128( ALPHA / DIGIT )
sha256       = 64HEXDIG
title-text   = 1*text-char      ; first 200 characters kept

ws           = SP / HTAB
text-char    = <any Unicode scalar value except
                control characters other than HTAB>
seg-char     = <any Unicode scalar value except
                whitespace, control characters,
                U+061C, U+200B to U+200F, U+2028,
                U+2029, U+202A to U+202E,
                U+2066 to U+2069, U+FEFF, and
                "/" "\" "?" "#" "<" ">" DQUOTE "'">

Further rules that the grammar does not express:

  1. The whole list is at most 2,097,152 bytes and has at most 10,000 entries.
  2. No entry name appears twice in one list, whether as a file or a folder.
  3. At most one index-dir per list. Without one, the index name is index.html.
  4. A line whose content starts with # is never an entry. It is an index-dir if, after the # and any spaces, it is the word index followed by a space or tab or nothing; a title-dir likewise for title; otherwise a comment. An index line with no valid segment after it makes the list invalid.
  5. Parsers strip all leading and trailing whitespace from a line, not only ws. Publishers should write none.
  6. Any violation makes the whole list invalid. There is no partial parse.
  7. Entries carry a sha256 in every list a client will follow (section 5.5.1).

The canonical form a publisher writes is in section 5.6.

Appendix B. Limits

Each component enforces its own limits, so they differ. "—" means the component has no such limit or does not handle that input.

B.1 Names and records

LimitValueWhere
Name length1 to 32 charactersLogos Names spec §2; links.rs
Sealed record12,288 bytescore MAX_SEALED_RECORD_LEN
Text entries per record16seal MAX_TEXTS
Text key1 to 32 charactersseal
Text value512 bytesseal (see 4.6)
Sealed on-chain page81,920 bytescore MAX_SEALED_PAGE_LEN
Page content type1 to 64 bytesseal
Grace after expiry30 dayscore GRACE_MS (fee mode; deposit mode uses u64::MAX)
Commit-reveal wait (Commit)15 minutes (10-minute window)core MIN_COMMIT_AGE_MS, TIME_WINDOW_MS
Commit-reveal wait (CommitPublic)5 minutes (1-minute window; next LEZ 0.4.0 deployment)core PUBLIC_MIN_COMMIT_AGE_MS, PUBLIC_TIME_WINDOW_MS
Commitment lifetime24 hourscore MAX_COMMIT_AGE_MS
Address length2,048 byteslinks.rs MAX_URL_BYTES

B.2 Site format

LimitValueWhere
List size2 MiBMAX_LINKS_LIST_BYTES
Entries per list10,000MAX_LINKS_ENTRIES
Folder depth32MAX_LINKS_DEPTH
Segment255 bytesis_valid_segment_name
CID8 to 128 charactersstorage.rs is_valid_cid
On-chain root listunder 10,240 bytesMAX_ONCHAIN_LINKS_BYTES
Folder title200 charactersparse_links_list

B.3 Per component

LimitNames BrowserGatewaylns publish
One filecached only up to 16 MiB10 MiB shown inline, 25 MiB as a download100 MiB
Whole site——2,000 files, 200 MiB
Root or folder list fetched2 MiB2 MiB—
On-chain page body—80 KiB—
Disk cache200 MiB, oldest out first——
Folder-list cache64 lists2,000 lists / 16 MiB (plus 64 MiB blobs, 4,096 / 32 MiB renders)—
Last verified versions kept256 names——
Downloads per page16——
Previous tree read to diff——50,000 files, 50,000 folders
Icon / avatar12 KiB data: URL (~9 KiB raw), 256×256—12 KiB raw file, 256×256 (see 4.6)

The lns publish site limits are defaults that lns.json can change (maxFiles, maxBytes, maxFileBytes). The gateway's file limits are its defaults (GATEWAY_MAX_INLINE, GATEWAY_MAX_DOWNLOAD).

B.4 Rendering (Names Browser)

LimitValue
HTML document512 KiB
CSS, all sheets together256 KiB
Parsed DOM nodes6,000
DOM depth64
CSS rules4,096
CSS declarations16,384
Selectors per rule64
Parts per selector16
Linked stylesheets16
@font-face rules16
var() nesting8
CSS value nesting (calc, repeat, color-mix)8
Inline SVG / SVG file64 KiB each; 256 draw operations, 128 defs, 64 use expansions, 4,096 polygon tokens, 64 KiB path data each; 1,024 ops and 128 KiB path data per page; 2,048 px canvas
Raster image4 MiB, 4,096 pixels a side, 16 megapixels
Inline data: image256 KiB
Images per page64 megapixels in all
Site font4 MiB (raw TTF/OTF only; inline data: font 512 KiB)
Page title200 characters

Values from static_render.rs, sanitize.rs, cache.rs and logic.mjs. The Static Profile document gives 512 draw operations per SVG; the code allows 256, and the code is what runs. Section 7 has the full content profile.

Appendix C. A worked example

A three-file site for the name alice. The SHA-256 values are real, computed from the files shown. The CIDs are placeholders: real ones come from the Logos Storage node at upload time and look like zDvZRwzm….

C.1 The folder

alice-site/
├ lns.json
└ site/
  ├ index.html
  ├ style.css
  └ docs/
    └ intro.html

site/index.html (223 bytes):

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Alice</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Alice</h1>
<p><a href="docs/intro.html">Read the intro</a></p>
</body>
</html>

site/style.css (83 bytes):

body { margin: 0 auto; max-width: 640px;
       padding: 24px; font-family: sans-serif; }

(One line in the real file; wrapped here.) site/docs/intro.html (204 bytes) is like index.html, with the title and heading "Intro", the stylesheet at ../style.css, and a link ../ back home.

C.2 lns.json

{
  "name": "alice",
  "folder": "site",
  "title": "Alice",
  "storage": "http://127.0.0.1:8183"
}

Publish with lns publish --lns-only, since this example has no https host.

C.3 The lists

The docs folder list, 103 bytes. It has no # index line because the folder has no index.html:

# lns-links/1
intro.html CIDintrohtml 8986a160b6637317a7e5511bda9eb9adf9a2cf41522513e2f447b38cc20b9533

Its SHA-256:

46340f143bb7c2c813699541963a6f7fc0775f0e21eaf842c35729f9dbc6647d

The root list, 306 bytes:

# lns-links/1
# title Alice
# index index.html
docs/ CIDdocslist 46340f143bb7c2c813699541963a6f7fc0775f0e21eaf842c35729f9dbc6647d
index.html CIDindexhtml a997679004baf5f689a05eebe1562f34389c39300e4b5daf65253a8b7313c1b9
style.css CIDstylecss e78baba75d251d30dcb66c13397bd8f0600205b9c20bec3f1a8bc6d6b5557574

Its SHA-256, which goes in the record:

46e9b7064d5ff69a69d2cd6a40235c933f35955d254d5fefd47f00c5b12a07f8

The docs line carries the hash of the docs list above, so changing intro.html would change both lists and the record.

C.4 The record update

lns publish uploads the five blobs, then runs (with the real root CID):

names profile alice --cid CIDrootlist \
  --set cid.sha256=46e9b7064d5ff69a69d2cd6a40235c933f35955d254d5fefd47f00c5b12a07f8 \
  --set cid.type=links

After it lands, the record's text entries include:

KeyValue
cidCIDrootlist (the real root CID)
cid.sha25646e9b706…12a07f8
cid.typelinks

Now lns://alice/docs/intro.html resolves through the root list, the docs list and the file, each checked against the hash above it, as in section 1.3.

C.5 This site

This document is itself published this way. Its lns.json:

{
  "name": "web",
  "folder": "site",
  "title": "LNS web",
  "storage": "http://127.0.0.1:18183/api/storage/v1",
  "rpc": "https://lez.nameswallet.app/",
  "registry": "6Yxj5k8AiuBSuMAYVQFGrYKjJGUSSaWWgoB9D9XXN3gA",
  "names": "names-lez04"
}

References

Normative

RFC 2119
S. Bradner, "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, March 1997. https://www.rfc-editor.org/rfc/rfc2119
RFC 8174
B. Leiba, "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, May 2017. https://www.rfc-editor.org/rfc/rfc8174
RFC 5234
D. Crocker and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", January 2008. https://www.rfc-editor.org/rfc/rfc5234
FIPS 180-4
NIST, "Secure Hash Standard (SHS)", August 2015. Defines SHA-256.
RFC 9106
A. Biryukov and others, "Argon2 Memory-Hard Function for Password Hashing and Proof-of-Work Applications", September 2021. Used to derive a name's keys.
Logos Names specification
"Logos Names: specification", version 2, draft (SPEC.md in the Logos Names repository). Names, derivation, record and page layouts, text entries, changing a name.
LNS Static Profile v1
STATIC-PROFILE.md in the Names Browser source. The content profile of section 7.

Informative

LNS web security report
"LNS web: security report", 27 November 2026. 85 findings across all review rounds, the trust model and the claim wording used in sections 2, 10 and 11. Not yet published.
Names Browser source
Names Browser 0.4.6 / core 0.3.6 (lns-browser, commit 4a3c32a): basecamp/qml/logic.mjs, Main.qml, and basecamp-module/rust-lib/src/ (links.rs, sanitize.rs, static_render.rs, cache.rs, storage.rs, lib.rs). Not yet in a public repository. The public repository github.com/jefdiesel/LNS_Browser still holds the older WebKit line (0.3.0), which this document does not describe.
Gateway and publisher source
lns-gateway: serve.mjs, sanitize.mjs, reserved.mjs, links.mjs, derive.mjs, storage.mjs, publish.mjs, single-publish.mjs, with its README.md and GATEWAY.md. The round-3 version described here is not yet in a public repository.
Logos Storage
The Logos content-addressed storage network. Its REST API (/api/storage/v1) is used to upload and fetch blobs by CID.
LEZ
The Logos Execution Zone, the chain that holds the LNS registry. Version 0.4 testnet line (rc3); JSON-RPC getAccountView.
borsh
The binary encoding used for records and pages. https://borsh.io

Changes

27 November 2026 · Gateway domain

Gateway moved to lnsweb.online

2026-11-27: gateway moved to lnsweb.online; nameswallet.app subdomains redirect. Sites are now served at <name>.lnsweb.online, and old <name>.nameswallet.app addresses redirect permanently (301, path and query kept). Host forms and examples updated throughout; deployment (§8.10) describes the move; shared domain (§8.11, §10.5.3) rewritten: G7 is reduced, not closed, until lnsweb.online is on the Public Suffix List. The Names Wallet site, its abuse page, the browser download and the RPC stay on nameswallet.app.

27 November 2026 · Privacy first

Privacy moved to section 2; planned 0.4 registry features

Privacy is now section 2 and covers all of LNS: names never on chain (Argon2id), holders and owner tags, commit-reveal and private registration, payments to receiving keys, browsing, publishing and known gaps (§2.1 to §2.12). Accessibility is section 3, and the other sections moved down: names §4, format §5, verification §6, content profile §7, gateways §8, publishing §9, security §10, reviews §11. The Abstract leads with privacy, a "Privacy at a glance" list follows it, and §1.2 lists the design goals. Added §4.10, planned subnames and prices for the 0.4 registry (not built), and the planned gateway host form blog--alice.lnsweb.online (§8.2). The gateway's headers now list Strict-Transport-Security: max-age=31536000; includeSubDomains, sent on every response since 27 November 2026 (§8.5.3).

27 November 2026 · Review pass

Accuracy review and missing topics

2026-11-27: review pass: added how to view a site (§1.4) and versions/roadmap noting LEZ 0.4.0 migration and superseded WebKit 0.3.0 (§1.6); added getting and holding a name with commit-reveal waits, deposits, locked/reserved shortlist counts and private vs public holders (§4.9); added subname notes (§4.1, §8.2), Logos Storage operations, persistence, seed peer and discovery notes (§5.11), and Cloudflare gateway deployment and zero-Worker cost model (§8.10, renumbering Shared domain to §8.11 and Trust to §8.12); expanded cid:// parsing vs navigation/subresource refusal (§4.7, §6.2.2, §7.3), on-chain page size/cost/RPC rules (§4.5), record text-key scope (§4.4), avatar raw-bytes vs data: URL limits (§4.6, §9.5), and owner removal/abuse reporting (§8.7, §8.8); fixed code mismatches on TTF/OTF-only font isolation in Names Browser (§6.4, §7.7, §7.10.2, B.4), lns:// normalisation (§4.1), gateway sanitizer vs static profile wording (§8.5.2), gateway Storage file caps (§10.2.3), SVG rejection/cap lists (§7.8.2, B.4), and Appendix B limits.

27 November 2026 · Draft 1

First edition as a specification

Replaces the one-page "LNS web standards" summary first published at lns://web earlier the same day. New: abstract, status, terminology and RFC 2119 requirements; numbered sections on names and records, the lns-links/1 format, verification, the content profile, gateways, publishing, security and privacy; the review log kept from the earlier page; the grammar, limits and example appendices.