cd /news/developer-tools/telling-devices-apart-without-accoun… · home › topics › developer-tools › article
[ARTICLE · art-168038] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Telling devices apart without accounts: 576 animal + adjective names for a Socket.IO clipboard app

A developer built Clipboard Share, a no-signup Socket.IO tool for moving files and text between devices on the same network, and solved the anonymous device-list problem with a server-side naming scheme that assigns each device a human-friendly tag like "Sleepy Panda." The server stores no names, only two indexes across 24 adjectives and 24 animals (576 combinations), resolving conflicts by keeping the animal and changing the adjective, falling back to a numeric suffix when all combos are taken. Sender identity is stamped server-side with any client-supplied sender field discarded for anti-spoofing, and a reroll button with a 3-second cooldown lets users change their own tag.

by read3 min views1 publishedNov 11, 2026

When several devices share a room with no login, the device list has a problem: nobody knows which row is "my laptop" and who just sent that file. That came up while building Clipboard Share, a no-signup tool for moving files and text between devices on the same network. My fix was a small naming scheme: every device gets a tag like "Sleepy Panda". I built the app with Claude Code: https://www.clipboardapp.org

The rooms themselves come from a hashed-IP design that I covered in an earlier post (in Korean). This one is about what happens inside the room.

With no account there is nothing to point at. With only a device type and a browser name, two phones of the same model look identical in the list, so the server gives each device a human-friendly label. The first implementation landed on 2026-10-01 in commit a6ebd2b ("device identity (animal + adjective) assignment and reroll, sender stamping").

The server never stores a name. It only handles two indexes: 24 adjectives times 24 animals, so 576 combinations.

/** 24 adjectives x 24 animals = 576 combos. Index order must match the frontend */
export const ADJ_COUNT = 24;
export const ANIMAL_COUNT = 24;
export const IDENTITY_COMBOS = ADJ_COUNT * ANIMAL_COUNT;

The frontend turns indexes into text in the viewer's language through i18n keys (identity.adj[n], identity.animal[n]). The same device is "졸린 판다" in Korean and "Sleepy Panda" in English.

On connect, the server collects the combos already used in the socket's rooms (the global room and the network room) and picks around them. The fallback order, from the source comments:

 * 1) preferred combo (saved value) if it is free
 * 2) on conflict, keep the animal and change only the adjective
 * 3) otherwise any free combo
 * 4) if all 576 are taken, append a suffix number (2, 3, ...)

The "preferred" combo is what the browser remembered. The client keeps it in localStorage under clipboard-identity for 30 days:

const STORAGE_KEY = 'clipboard-identity'
const STORAGE_TTL_MS = 30 * 24 * 60 * 60 * 1000

The server does not trust it. sanitizeIdentity checks that both values are integers in range and drops anything else.

The "reroll" button sits on your own row in DeviceList.vue. The server passes the current combo as avoid, so you never get the same name twice in a row, and each socket has a 3-second cooldown:

export const REROLL_COOLDOWN_MS = 3000;
...
if (now - last < REROLL_COOLDOWN_MS) {
    if (typeof ack === 'function') ack({ ok: false, error: 'cooldown', retryAfterMs: REROLL_COOLDOWN_MS - (now - last) });
    return;
}

After a reroll the server re-broadcasts room-users to both rooms, and the button stays disabled until rerollAvailableAt.

Who sent a message is decided server-side. Any sender field from the client is thrown away and replaced:

/**
 * Attach the sender info to a publish message. The client's own sender field
 * is always discarded and overwritten (anti-spoofing).
 */
export const stampSender = (msg: unknown, device: DeviceInfo | undefined) => {

The stamp carries socketId, identity, device label, browser, and model ( toSender). The receiving side uses it to tell "sent by me" from "sent by another device".

The 24 animals are Microsoft Fluent Emoji (Flat) SVGs under the MIT license. The license text and source link live next to them in frontend/src/assets/animals/LICENSE. They are exported as separate hashed files ( import.meta.glob with ?no-inline), not inlined into the JS bundle.

senderName in useArrivalBadge.js), falling back to model, browser, then a generic string. The arrival notifications PR (#74) merged today, 2026-11-12.usePairFlow.js). routes/quickSend.ts). Open https://www.clipboardapp.org on two devices and the names show up right away. If something feels off, there is a "건의하기" (feedback) link at the bottom of the site, and I would like to hear it.

Originally published in Korean on velog: velog

── more in #developer-tools 4 stories · sorted by recency
── more on @clipboard share 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/telling-devices-apar…] indexed:0 read:3min 2026-11-11 · —