Manav Bracket · levels
One button, [four levels]
The person always does the same thing: press and hold your own submit button. What changes is
who checks the hold. Pick the level each form needs with one attribute on the button.
All levels side by side
Name the level with data-bracket-level="1" to "5". Without it: data-bracket-verify → L1,
else a site key (data-api-key) → L2, else L0. A level the button can't run as set up (or L5, not available yet)
refuses to submit: it never quietly gives a weaker check.
L0
Try-out
Demo only
The button shows the full press-and-hold, but nothing is checked on any server. Use it to see the
look and feel on your page. Never protect a real form with it.
<button data-manav-bracket>Sign up</button>
<script src="https://manav.id/labs/bracket/bracket.js"></script>
L1
Standard: your own server checks it
Live: every lead and contact form on manav.id
You host one file, verify.php. No Manav server is called, so it works even if Manav is
down, and no visitor data leaves your site.
How it works
- When the page loads, the button gets a small puzzle from your
verify.php, signed with your site's own secret.
- While the person fills in the form, the browser solves it in the background (a proof of work, a fraction of a second).
- The person presses and holds. On release, the answer goes into a hidden field named
bracket and the form submits.
- Your form handler calls
bracket_check(). Each answer works once, then it is used up.
On the page
<button type="submit" data-manav-bracket data-bracket-verify="/verify.php">Join the waitlist</button>
<script src="https://manav.id/labs/bracket/bracket.js"></script>
In your form handler (PHP)
require __DIR__ . '/verify.php';
$why = bracket_check($_POST['bracket'] ?? ''); // '' means it passed
if ($why !== '') { http_response_code(403); exit('Human check failed: ' . $why); }
Not PHP? Call it from your server: POST /verify.php {"bracket": "<proof>"} → {"ok": true} or {"ok": false, "why": "…"}.
Stops
- Plain HTTP scripts and form spam
- Replayed or reused answers
- Posts that come too fast
- Mass abuse: each answer costs CPU, and gets harder for an address asking a lot
Does not stop
- A bot or AI agent driving a real browser: it can hold the button like a person. Use L2 or L3 for that.
- Floods (DDoS): put a CDN or firewall in front.
L2
Stronger: Manav's risk engine scores the hold
Live on Manav sign-in · works on other websites
Manav's engine watches how the hold happens (movement, timing, the browser itself) and decides
if it was a person. Your server then confirms the result with your secret key. Every pass shows on your
site's Manav dashboard.
How it works
- Get a site key (public, goes on the button) and a secret key (private, stays on your server) in the Manav console. A site key works for one website only.
- The person presses and holds. The button sends the hold to Manav's engine, which scores it and refuses automated browsers outright.
- On a pass, a single-use token goes into a hidden field named
manav-token and the form submits.
- Your server sends the token and your secret key to Manav. The answer is OK once; the same token again is refused.
On the page
<button type="submit" data-manav-bracket data-api-key="YOUR_SITE_KEY">Create account</button>
<script src="https://manav.id/labs/bracket/bracket.js"></script>
No engine address needed: with only a site key, the button uses the engine next to bracket.js.
On your server
curl -X POST 'https://manav.id/labs/bracket/api/?action=verify' \
-H 'Content-Type: application/json' \
-d '{"token": "<the manav-token field>", "secret": "<your secret key>"}'
# 200 {"ok": true, "principal": "…", "method": "risk", "hostname": "…", "site_key": "…"}
# 403 bad / foreign token · 401 wrong secret · 409 token already used
Stops
- Everything L1 stops
- Automated browsers (refused at once)
- Holds that don't move like a person
- A token earned on another website (tied to your site key)
Does not stop
- A determined attacker who makes a perfect human-like hold in a real browser (rare and costly)
- A real person paid to solve it: use L3 when that matters
Status today: L2 runs on Manav's own sign-in (the Manav login box and the club login), and a
button on any other website can use it with its own site key (fixed 2 Dec 2026 on dev; live on manav.id after the next deploy).
L3
Passkey: the person approves the form
Built · manav.id pages
After the L1 hold, the person approves exactly what this form sends with their own Manav
passkey (Touch ID, Face ID, Windows Hello or a security key). Manav returns a signed receipt, and your server
checks it offline, with no network call.
How it works
- The person fills in the form and presses and holds (the L1 check runs first).
- The button asks for the person's passkey, over a statement of the site, the form and a fingerprint of the form's contents.
- Manav returns a signed receipt (Ed25519 + ML-DSA-87). It goes into a hidden field named
manav-receipt and the form submits.
- Your server calls
bracket_check_l3(): it checks the signature, that the contents match field by field, that it's for this form, and that it's used only once.
On the page
<button type="submit" data-manav-bracket data-bracket-verify="/verify.php" data-bracket-level="3">Change payout account</button>
<script src="https://manav.id/labs/bracket/bracket.js"></script>
In your form handler (PHP)
require __DIR__ . '/labs/bracket/l3.php';
$why = bracket_check_l3($_POST, [
'principal' => $signedInPrincipal, // only this person's passkey is accepted
'form' => 'Change payout account', // the button's text: a receipt for another form is refused
]);
if ($why !== '') { http_response_code(403); exit('Approval failed: ' . $why); }
Stops
- Everything L1 and L2 stop
- AI agents and bots, even in a real browser: they can't put the person's finger on their device
- Changing a field after approval (the contents are signed)
- A receipt reused, or from another form
Keep in mind
- The person needs a Manav passkey
- Use field names without brackets (
address_street, not address[street]) - Every posted field must be signed or listed in
ignore
Approve on this computer, or on a phone
By default L3 takes any passkey: this computer's own (Windows Hello, Touch ID) or the person's
phone. The browser offers "Use a phone": it shows a QR code, the phone scans it, phone and computer check
they are near each other over Bluetooth, and the person approves on the phone (Face ID or fingerprint).
To require the phone, add data-bracket-device="phone". A person without a phone passkey
is shown the QR code to add one, then approves on the phone. Manav refuses to sign with a passkey of this computer.
<button type="submit" data-manav-bracket data-bracket-verify="/verify.php" data-bracket-level="3" data-bracket-device="phone">Send money</button>
Good to know: the phone rule is checked by Manav when it signs (it knows how each passkey was
added). The receipt itself doesn't say "phone", so your server can't re-check that part on its own, unlike L4's
minTier. Bluetooth nearness is enforced by the browser and phone themselves.
Status today: the passkey belongs to manav.id, so the passkey step runs on manav.id's own pages.
Other websites can already check a receipt (packages/verify-ts or POST /v2/verify).
L4
Security key: a certified hardware key approves
Built on dev · manav.id pages
Everything in L3, but the approval must come from a certified security key (a FIDO-attested
hardware key such as a YubiKey, Manav tier P3). A phone or laptop passkey is refused, because it can be
synced or copied to other devices; a hardware key can't.
How it works
- The person presses and holds (the L1 check runs first).
- If they have no security key on their Manav account yet, they add one: Manav checks the key's certificate
against the FIDO list and refuses anything else.
- They approve with the key (touch, plus its PIN or fingerprint). Manav offers only their certified keys and
refuses to issue a receipt below
P3.
- Your server checks the receipt with
minTier => 'P3', so a weaker receipt is refused there too.
On the page
<button type="submit" data-manav-bracket data-bracket-verify="/verify.php" data-bracket-level="4">Release payment</button>
<script src="https://manav.id/labs/bracket/bracket.js"></script>
In your form handler (PHP)
require __DIR__ . '/labs/bracket/l3.php';
$why = bracket_check_l3($_POST, [
'principal' => $signedInPrincipal,
'form' => 'Release payment',
'minTier' => 'P3', // certified security key only
]);
if ($why !== '') { http_response_code(403); exit('Approval failed: ' . $why); }
Stops
- Everything L3 stops
- A passkey synced to or copied onto another device
- Approval from a phone or laptop passkey
Does not stop
- One person with several keys and accounts (unique-human proof is planned for L5)
- A real person forced or paid to approve
L5
Coming: unique human and supervised approval
Being planned
Ideas under discussion: proof that the approver is one unique real person (without Manav storing who
they are), and approvals that need a second device or a second person. Until it exists, a button with
data-bracket-level="5" refuses to submit, so no form is protected by less than it asked for.
Which level should a form use?
Match the level to what a bot would gain from the form.
L1 StandardLow value to a bot: contact, waitlist, newsletter, lead forms, comments. Keeps spam out with no outside service.
L2 StrongerBots want it at scale: sign-up, sign-in codes, free trials, coupons, votes, ticket queues.
L3 PasskeyOne wrong submit costs real money or an account: payouts, bank details, email or password changes.
L4 Security keyThe worst case is serious: large payments, admin roles, security settings, production access.
Step-up: one button, the level follows the form
A bank form does not need one fixed level: a small transfer can take a quick hold and a large one your passkey. Give the button everything it may need and set data-bracket-level from the form; the button follows it by itself. Try the bank demo.
<button data-manav-bracket data-bracket-verify="/verify.php" data-api-key="SITE_KEY" data-bracket-level="1">Send money</button>
amount.oninput = () => send.dataset.bracketLevel =
amount.value > 100000 ? 4 : amount.value > 10000 ? 3 : amount.value > 1000 ? 2 : 1;
- Up to $1,000: L1, a quick hold checked by your server. Up to $10,000: L2, scored by Manav's engine. Up to $100,000: L3, the person's passkey. Above: L4, a certified security key.
- When the level changes, the button drops the old level's challenge and fetches the new one. It never changes during a hold. From code:
button.__manavBracket.setLevel(n).
- Your server decides again. It works out the level from the posted amount and refuses a weaker proof: a
bracket field is L1, manav-token L2, manav-receipt L3, and L4 when bracket_check_l3($_POST, ['form' => 'Send money', 'minTier' => 'P3']) passes. Lowering the level in the browser gains nothing.
Button options
data-bracket-ready-labelThe label once the form is ready, e.g. Hold to continue. Until then the button keeps its own words (Continue), so it says the action exactly when the hold can start.
data-bracket-device="phone"Level 3: the approval must come from the person's phone (QR code + Bluetooth), not this computer.
data-bracket-mode="click"Level 1: a single click instead of the hold. Weaker; for low-risk forms only.
A click instead of a holdThe bar fills a little and the button says Keep holding…, so people see what to do.
The same at every level
Your button stays yoursSame look and label, shown as [Sign up]. The two brackets are the only Manav mark.
The form is checked firstThe hold only starts when the form is valid (the browser's own check, unless novalidate). A site can add its own check: listen for bracket:before and call preventDefault().
Keyboard and screen readersTab to the button, press and hold Space or Enter. Each step is announced.
No pass, no submitA failed or missing check never submits the form. The message stays generic, so bots learn nothing.
JavaScript toonew ManavBracket('#btn', { onVerified }) for pages that build their own request.
Single useEvery proof, token and receipt works once and expires quickly.