Become a UIID Issuer in 5 Minutes: A Deep Dive into the UIID Issuer Demo
A developer's guide to issuing permanently anchored UIID Core IDs from your own Issuer account, with a small Node.js demo that has zero dependencies.
A developer’s guide to issuing permanently anchored UIID Core IDs from your own Issuer account, with a small Node.js demo that has zero dependencies.
Why this matters
Most identity systems have the same weak spot: you can see who a person is, but not who vouched for the identity. Someone created that identity. Someone stands behind it. In most systems that link is hidden or doesn’t exist at all.
UIID v2.18 changes this with the Issuer Program. Companies, collectives, and governments can now become UIID Issuers. Each Issuer gets a permanent Issuer ID, and every UIID the Issuer creates is permanently linked to it.
To make this easy to try, there is a community project called the UIID Issuer Demo. It’s a small, dependency-free app that shows what it feels like to be an Issuer. You see your Issuer ID, check your counters, and issue a UIID Core ID with one click.
This article is for developers. We’ll cover:
- what changed in v2.18
- what the demo does
- how its architecture works and why it’s built that way
- how to run it
- how to fix the most common errors
- how to adapt the ideas for your own product
The article is long on purpose. If you only want the quick start, jump to the section “Run it in five commands.”
Note: The UIID Issuer Demo is a community demo. It is not an official LINKSPREED product. The issuer data in its screenshot is example data.
Part 1: What’s new in UIID v2.18
Here is what the v2.18 Issuer Program release adds.
A new Issuer section in the sidebar
Company, Collective, and Government accounts can now become UIID Issuers. In the dashboard you’ll find a new Issuer section in the sidebar, directly above Developer. You activate the program in one step.
A permanent Issuer ID
When you activate the program, your account gets a permanent Issuer ID in the format:
ISS-XXXXXXXXXXXX
Before you confirm, the dashboard shows a confirmation step. It explains that the Issuer ID and its status cannot be changed or removed once created. Read that sentence twice. It is the foundation of everything else.
Issue UIIDs with your API key
Once you’re an Issuer, you create UIIDs through the API using your API key. Every UIID you issue is permanently linked to your Issuer ID.
An Issuer dashboard
The dashboard shows:
- your Issuer ID
- how many UIIDs you have issued
- how many Aliases you have issued
- a table of recent issuances
Privacy by default
Issued identities appear in the Issuer’s list with only their UIID Core ID and Alias ID. The Issuer does not get a pile of personal data about the people it issues to. For developers who care about data minimization, this is a good default.
A public Issuer SDK guide
A new public guide covers:
- eligibility
- the issuing process
- authentication
- endpoints
- a ready-to-use JavaScript SDK
It is linked from the API documentation at uiid.me/api-docs. The full list of changes is in the changelog.
What’s coming next
Removing Issuer attribution from an issued UIID is shown as Coming Soon. So today, attribution is permanent. Plan for that when you design your flows.
Part 2: What is the UIID Issuer Demo?
The demo is a small web app that lets you act as a UIID Issuer. Its job is simple: make the Issuer flow visible.
It lets you:
- See your Issuer ID, creation date, and counters. It calls
GET /api/v1/issuer. In the SDK this isgetIssuer(). - Issue a new UIID Core ID. It calls
POST /api/v1/issuer/uiids. In the SDK this iscreateUiid(). UIID creates the Core ID and anchors it to your Issuer ID in one step. - Confirm before issuing. The app asks you first, because issuing can’t be undone.
- Inspect the raw JSON. The app shows the raw JSON of the last request, so you can see exactly what the API returns.
- Read clear error messages. The app shows readable errors, including the original text from the UIID server.
- Choose a theme. Light, dark, or system.
That’s the entire scope, and that is the point. The demo doesn’t try to be a product. It is a readable reference for how to call the Issuer API safely.
Part 3: The architecture in one picture
Browser (public/) ──> Demo server (server.js) ──> UIID Issuer SDK ──> UIID API
holds your API key (or REST fallback)

There are four parts, and each has a clear job.
The browser is the UI. It’s plain HTML, CSS, and vanilla JavaScript. The README describes the style as “Soft Brutalism.” The browser never sees your API key.
The demo server (server.js) serves the static files and a small JSON API. It holds your Issuer API key and calls UIID with this header:
Authorization: Bearer <API_KEY>
The SDK or the REST fallback is the layer that actually talks to UIID. The server uses the official UIID Issuer SDK v1 if it is present in vendor/. If not, a small built-in REST client sends the same requests.
The UIID API is the real source of truth. It creates the Core ID and anchors it to your Issuer ID.
Why this shape is the right one
If you take one idea from this article, take this one:
Your API key must never reach the browser.
An Issuer API key can issue permanent identities under your Issuer ID. If it sits in front-end JavaScript, anyone who opens developer tools can copy it. The demo avoids this by putting a small server between the browser and UIID. The page talks only to the local demo server, and the server adds the key.
This is a very common pattern for any API key with write permissions. The demo just makes it easy to see.
A small illustrative sketch
This sketch is not code from the repo. It only shows the pattern in a few lines:
// Illustrative sketch only (not from the demo repo)
import http from "node:http";
const BASE_URL = process.env.UIID_BASE_URL; // the instance your key belongs to
const API_KEY = process.env.UIID_ISSUER_KEY; // stays on the server
const server = http.createServer(async (req, res) => {
if (req.method === "GET" && req.url === "/api/issuer") {
const upstream = await fetch(`${BASE_URL}/api/v1/issuer`, {
headers: { Authorization: `Bearer ${API_KEY}` },
});
res.writeHead(upstream.status, { "Content-Type": "application/json" });
res.end(await upstream.text());
return;
}
res.writeHead(404).end();
});
server.listen(3000, "127.0.0.1"); // local only
Three things to notice:
- The browser only calls the local route.
- The key lives in an environment variable.
- The server listens on
127.0.0.1, so only your machine can reach it.
The real demo adds a lot on top of this: security checks, error mapping, and the SDK loader. But the core idea is exactly this.
Part 4: Run it in five commands
Requirements
- Node.js 18.17 or newer. You don’t need to run
npm install, because there are no dependencies. - A UIID Company, Collective, or Government account with the Issuer program activated.
- An API key of that Issuer account, created on the same UIID instance you point
UIID_BASE_URLto.
The last point causes more problems than any other, so remember it. We come back to it in the troubleshooting section.
Quick start
git clone https://github.com/linkspreed/uiid-issuer-demo.git
cd uiid-issuer-demo
cp .env.example .env # Windows PowerShell: Copy-Item .env.example .env
# open .env and set UIID_ISSUER_KEY (and UIID_BASE_URL if you don't use uiid.linkspreed.com)
npm run sdk:fetch # download the official SDK into vendor/
npm run check # verify key and connection (issues nothing)
npm start # open http://127.0.0.1:3000
Here is what each step does.
- Clone the repo. Replace the organization if you are using a fork, as in the README.
- Copy
.env.exampleto.env. This is where your settings live. Fill inUIID_ISSUER_KEY. SetUIID_BASE_URLtoo if you don’t useuiid.linkspreed.com. npm run sdk:fetch. This downloads the official SDK intovendor/.npm run check. This verifies your key and connection without issuing anything. Always run it beforenpm start.npm start. Openhttp://127.0.0.1:3000in your browser.
If npm run check passes, you are ready. If it fails, the error message tells you what to fix, and the troubleshooting section below explains each case.
Part 5: Configuration
All settings live in .env. The file .env.example shows the options.
| Variable | Default | Meaning |
|---|---|---|
UIID_ISSUER_KEY | none | API key of your Issuer account. Required. Quotes and a Bearer prefix are removed automatically. |
UIID_BASE_URL | https://uiid.linkspreed.com | The UIID instance. The key must come from this instance. |
UIID_CLIENT | auto | auto: use the SDK if downloaded, otherwise REST. sdk: SDK only. rest: REST only. |
HOST | 127.0.0.1 | Address the demo server listens on. |
PORT | 3000 | Port of the demo server. |
A few details are worth knowing.
The key cleanup is forgiving
If you paste the key with quotes around it, or with a Bearer prefix, the demo removes them for you. Pasting mistakes are the number one cause of “my key doesn’t work” problems, and this removes a whole category of them.
UIID_CLIENT helps you debug
autois the default and the one you will use most.sdkis useful when you want to be sure you are testing the official SDK path. If the SDK is missing, it fails instead of silently falling back.restis useful when you want to see what the plain HTTP requests do, with the SDK out of the picture.
If something behaves differently between sdk and rest, that tells you where to look.
HOST and PORT
Leave HOST at 127.0.0.1 unless you have a very good reason. We explain why in the security section.
Part 6: The three scripts
| Command | What it does |
|---|---|
npm start | Starts the demo server. |
npm run check | Checks Node version and config, then calls GET /api/v1/issuer. Does not issue anything. |
npm run sdk:fetch | Downloads /js/uiid-issuer-sdk.js from UIID_BASE_URL into vendor/ and prints its SHA-256. |
npm run check is your best friend
It checks three things in order:
- Your Node.js version.
- Your configuration.
- A real
GET /api/v1/issuercall.
Because the call is read-only, you can run it as often as you like. It tells you whether your key, base URL, network, and proxy all work, and nothing permanent is created. Use it after every change to your setup.
npm run sdk:fetch and the SHA-256 hash
This script downloads the SDK from UIID_BASE_URL, saves it into vendor/, and prints its SHA-256 hash.
That hash helps you verify supply-chain integrity. Here are three ways to use it:
- Record the hash in your own notes or CI logs, so you know which SDK version you ran.
- Compare the hash across machines to confirm everyone has the same file.
- If the hash changes unexpectedly, review the new SDK before you use it.
Part 7: Why the SDK is not committed
The README states that the SDK is not committed to the repository. You download it once with npm run sdk:fetch. The stated reason is that you always run the version published by the provider.
This is a thoughtful design for three reasons:
- No stale copies. A vendored SDK in a repo can go out of date quietly. Downloading it from the provider avoids that.
- A clear source of truth. The code comes from the instance you point
UIID_BASE_URLto. - A smaller repo. The repo contains only the demo’s own code.
The fallback keeps the demo working
Until you fetch the SDK, the demo uses a small built-in REST client in lib/rest-issuer.js. It sends exactly the same requests as SDK v1. So the demo works from the very first run. The SDK then becomes the preferred path as soon as it is present.
You also get a useful learning tool. Read rest-issuer.js and you see the plain HTTP calls, with no abstraction. Then compare them with the SDK’s getIssuer() and createUiid() methods.
Part 8: A tour of the UI
Here is what you do in the browser once the server runs.
Step 1: Look at your Issuer panel
When the page loads, it asks the local server for your issuer data. The server calls GET /api/v1/issuer (getIssuer() in the SDK). You see:
- your Issuer ID (the
ISS-XXXXXXXXXXXXvalue) - the creation date
- the counters
This matches what the v2.18 Issuer dashboard shows, where you see your Issuer ID and how many UIIDs and Aliases you have issued.
Step 2: Issue a UIID Core ID
Press the issue button. The demo shows a confirmation prompt first. This matters because issued UIIDs are permanent. An anchored UIID can’t be re-attributed to another issuer. The prompt gives you one last chance to stop.
After you confirm, the server calls POST /api/v1/issuer/uiids (createUiid() in the SDK). UIID creates the Core ID and anchors it to your Issuer ID in one step.
Step 3: Read the raw JSON
The demo shows the raw JSON of the last request. This is the feature I like most for developers. You don’t have to guess what the API returns. You see it directly.
Use it to:
- learn the response shape
- copy example responses into your own tests
- compare SDK and REST behavior
Step 4: Check the session list
The demo keeps an “Issued this session” list. This list lives only in the browser tab. The demo stores nothing on the server or on disk. Close the tab and it’s gone.
This matches the privacy idea in v2.18. The Issuer program itself stores only the Core ID and the Issuer ID, and the demo adds no storage of its own.
Step 5: Learn from errors
When something goes wrong, the demo shows a clear message and includes the original text from the UIID server. Developers often lose time because a friendly wrapper hides the real error. Here you see both the readable message and the original.
Themes
The UI supports light, dark, and system themes. It’s a small thing, but it makes the demo pleasant to use during long debugging sessions.
Part 9: Security, in detail
An identity issuing tool needs careful security. The README lists several protections, so here is each one with the reasoning behind it.
- Issued UIIDs are permanent. This isn’t a software protection, but it is the most important fact about the program. An anchored UIID can’t be re-attributed to another issuer, and the Issuer ID can’t be changed or removed. So:
- Test with care. Don’t write loops that issue UIIDs “just to see what happens.”
- Build a confirmation step into your own tools, as the demo does.
- Keep the server local. The demo listens on
127.0.0.1by default. The README says: anyone who can reach it can issue UIIDs under your Issuer ID. The demo has no login of its own. So do not expose it to the internet without adding your own authentication. Don’t bind it to0.0.0.0on a shared network or inside a container with a published port unless you’ve thought it through. - Never commit
.env. The.envfile is in.gitignore. Keep it that way. If a key was ever pushed, rotate it in the UIID dashboard. Deleting the file in a later commit isn’t enough, because the key stays in git history. - Cross-site protection. The server rejects issue requests from other websites. It does this through:
- an
Origincheck, and - JSON-only requests
Why does this matter even on localhost? Imagine you have the demo running, and you visit a malicious website in another tab. That site could try to send a request to
http://127.0.0.1:3000from your browser. Without protection, it could trigger an issuance under your Issuer ID. TheOrigincheck and the JSON-only rule block this kind of cross-site request forgery.
- an
- A strict Content Security Policy. The server sets a strict Content Security Policy (CSP). A CSP tells the browser which scripts and resources the page may load. A strict one makes injected scripts much harder to run.
- Small request bodies. The server limits request bodies to 4 KB. The demo’s requests are tiny, so a small limit costs nothing. It protects the server from oversized or abusive payloads.
- Privacy. Per the README, the Issuer program stores only the Core ID and the Issuer ID, and the demo stores nothing. This is a good model for your own integrations. Store only what you need.
A security checklist for your own Issuer integration
Based on the demo’s design, here is a practical checklist:
- Keep the Issuer API key on the server only.
- Load the key from environment variables or a secrets manager.
- Never commit keys. Rotate any key that was exposed.
- Add real authentication before exposing any issuing endpoint.
- Check the
Originof state-changing requests. - Accept JSON only on those endpoints.
- Set a strict CSP.
- Limit request body size.
- Ask for confirmation before any irreversible action.
- Log issuance events on your side if your compliance rules require it.
Part 10: Troubleshooting
The README includes a compact error table. Here it is, with more detail.
| Message | Cause | Fix |
|---|---|---|
401 – Invalid or expired token | UIID does not accept the key | See the next section. |
403 – issuer_not_activated | Issuer program not activated | Activate it in the Issuer panel of the UIID dashboard sidebar. |
404 | Wrong UIID_BASE_URL | Point it to a UIID instance with the Issuer program. |
network_error | UIID not reachable | Check UIID_BASE_URL, your connection, and proxy. |
The 403 issuer_not_activated error
This one is easy. Your account exists, but you haven’t switched on the Issuer program. Open the UIID dashboard, find the Issuer section in the sidebar (directly above Developer), and activate it. Remember the confirmation step: the Issuer ID and its status are permanent.
The 404 error
The server you are calling doesn’t have the Issuer endpoints. Usually UIID_BASE_URL points to the wrong place. Set it to a UIID instance that has the Issuer program.
The network_error
The demo can’t reach UIID at all. Check:
- the spelling of
UIID_BASE_URL - your internet connection
- whether you’re behind a proxy (see below)
The 401 “Invalid or expired token” error
This is the most common error, so it gets the longest explanation. The README makes one point very clearly: the UIID server rejected the key itself, so the problem is the key, not the demo.
Work through this list.
- Same instance. A key created on one UIID instance does not work on another.
UIID_BASE_URLmust be the instance where you created the key. If you created the key on one instance and leftUIID_BASE_URLat the default, you’ll get a 401. - Right kind of key. Use the Issuer API key of your Issuer account. These will not work:
- an OAuth
client_secret - a user access token This is a classic mix-up. If you’ve also set up OAuth for the same UIID account, you have several secret-looking strings, and they are not interchangeable. The Issuer program uses its own API key.
- an OAuth
- Still valid. If the key was regenerated or revoked, the old one stops working. Create a new one.
- Test without the demo. Call the endpoint directly. If this also returns 401, the key is the problem.
curl -i -H "Authorization: Bearer <YOUR_KEY>" <UIID_BASE_URL>/api/v1/issuer
On Windows PowerShell, use curl.exe, because plain curl is an alias for another command there:
curl.exe -i -H "Authorization: Bearer <YOUR_KEY>" <UIID_BASE_URL>/api/v1/issuer
This test is valuable because it removes the demo from the equation. Two outcomes are possible:
- The curl call succeeds, but the demo fails. Then look at your
.envfile for typos or stray characters. - The curl call also returns 401. Then the key, the base URL, or the instance is wrong. The demo is fine.
Behind a company proxy
Many corporate networks route traffic through a proxy. Node’s built-in fetch ignores HTTPS_PROXY by default. On recent Node.js versions you can turn proxy support on with NODE_USE_ENV_PROXY=1. Node then prints an EnvHttpProxyAgent is experimental warning, which you can ignore.
$env:HTTPS_PROXY = "http://proxy.example.com:8080"
$env:NODE_USE_ENV_PROXY = "1"
npm run check

If your proxy inspects TLS (it replaces certificates with its own), also point NODE_EXTRA_CA_CERTS to your company root certificate. Otherwise Node will reject the connection because it doesn’t trust the proxy’s certificate.
Quick proxy checklist:
- Set
HTTPS_PROXY. - Set
NODE_USE_ENV_PROXY=1. - If TLS is inspected, set
NODE_EXTRA_CA_CERTS. - Run
npm run checkagain.
Part 11: A guided tour of the code
The README shows this layout:
├── server.js # Local HTTP server: static files + small JSON API
├── lib/
│ ├── config.js # .env loader and settings
│ ├── issuer-client.js # Loads the official SDK, falls back to REST
│ ├── rest-issuer.js # REST client that mirrors SDK v1
│ └── errors.js # Turns API errors into readable messages
├── scripts/
│ ├── fetch-sdk.js # npm run sdk:fetch
│ └── check.js # npm run check
├── public/ # The UI (HTML, CSS, vanilla JS, "Soft Brutalism")
└── vendor/ # Official SDK goes here (not committed)
Here is how I would read it, in this order.
lib/config.js— Start here. It loads.envand builds the settings. It’s also where the helpful key cleanup happens (removing quotes and aBearerprefix). Small input-cleaning features like this make a tool feel solid.lib/rest-issuer.js— This is the simplest way to learn the API. It mirrors SDK v1 with plain HTTP calls. Read it to see the exact requests forGET /api/v1/issuerandPOST /api/v1/issuer/uiids.lib/issuer-client.js— This file chooses between the official SDK and the REST client, based onUIID_CLIENTand whethervendor/contains the SDK. It’s a good example of the adapter pattern: one interface, two implementations.lib/errors.js— This turns API errors into readable messages and keeps the original server text. Good error mapping is what makes the troubleshooting table in the README possible.server.js— The server ties it together. It serves the static files frompublic/and exposes a small JSON API. This is also where the security rules live: theOrigincheck, JSON-only requests, the CSP, and the 4 KB body limit.scripts/check.jsandfetch-sdk.js— These are small command-line tools. They show how to give your project good developer experience: one command to verify setup, one command to get the SDK.public/— The UI is plain HTML, CSS, and vanilla JavaScript. No framework, no build step. Open the files and read them top to bottom.
Part 12: Design decisions worth stealing
Even if you never issue a single UIID, the demo shows habits that make any small developer tool better.
- Zero dependencies. There is no
npm install. That means:- a smaller attack surface (no third-party packages to audit)
- no install failures behind a strict proxy
- a repo you can read completely in an afternoon For a demo whose job is to be understood, this is the right call.
- A dry-run command.
npm run checkverifies everything without changing anything. If your tool performs irreversible actions, give it a safe check command. - A confirmation before irreversible actions. Permanent actions deserve a “are you sure?” step. The demo has one. Put one in yours.
- Show the raw response. Showing the raw JSON of the last request teaches developers what the API does. It also cuts down support questions.
- Keep the original error. Wrap errors to make them readable, but keep the original text. You get friendliness and debuggability.
- Safe defaults. The demo listens on
127.0.0.1by default. Safe defaults protect people who never read the docs. - A fallback path. Using the SDK when present and REST otherwise means the demo works in more situations. It also gives you a second view of the same behavior.
Part 13: Ideas for building on top
These are ideas for your own projects. They are not features of the demo.
- Put authentication in front. The most important step before sharing the demo with a team is to add real authentication. Since “anyone who can reach it can issue UIIDs under your Issuer ID,” a login or reverse-proxy authentication layer is a must for any shared use.
- Wrap issuing in your own business rules. In a real product, you rarely want a raw “issue” button. You might want to issue a UIID only after:
- a user completes your onboarding
- a staff member approves a request
- a contract is signed Your backend holds the key and enforces these rules. The user-facing app never calls the Issuer API directly.
- Keep your own audit trail. The Issuer program itself stores only the Core ID and the Issuer ID, and v2.18 lists issued identities with only the Core ID and Alias ID. If your organization needs to know which internal user or process triggered which issuance, log that on your side, in line with your own privacy rules.
- Add tests around the adapter. Because the demo has an SDK path and a REST path, you can write a small test that checks both return the same shape for the same call. It’s a nice way to catch differences early.
- Plan for permanent attribution. Remove Attribution is listed as Coming Soon in v2.18, so today attribution is permanent. Design your user experience and legal text with that in mind.
Part 14: Frequently asked questions
Who can become a UIID Issuer? Company, Collective, and Government accounts. You activate the program in the Issuer section of the sidebar.
Can I change my Issuer ID later? No. The Issuer ID is permanent, and its status can’t be changed or removed once created.
What does an Issuer ID look like?
ISS-XXXXXXXXXXXX.
Can I re-assign an issued UIID to another issuer? No. An anchored UIID can’t be re-attributed.
Can I remove the Issuer attribution from a UIID? Not yet. It is shown as Coming Soon.
Which key do I use?
The Issuer API key of your Issuer account, created on the same UIID instance as UIID_BASE_URL. An OAuth client_secret or a user access token will not work.
Does the browser ever see my key?
No. The page talks to the local demo server, and the server adds the Authorization: Bearer header.
Do I need to run npm install?
No. There are no dependencies. You need Node.js 18.17 or newer.
Where do I get the SDK?
Run npm run sdk:fetch. It downloads the SDK from your UIID_BASE_URL into vendor/ and prints its SHA-256.
What if I don’t download the SDK? The demo uses its built-in REST client, which sends the same requests.
Does the demo store anything? No. The “Issued this session” list lives only in the browser tab.
Is this an official LINKSPREED product? No. It’s a community demo.
Can I expose it to the internet?
Not without adding your own authentication. By default it listens on 127.0.0.1 only.
Where are the official docs? The API documentation links to the Issuer SDK guide. Release notes are in the changelog.
Part 15: A suggested first hour
If you want a plan, here is one.
- Minutes 0–10: Set up. Clone the repo, copy
.env.exampleto.env, and add your Issuer API key. SetUIID_BASE_URLif you use a different instance. - Minutes 10–20: Verify. Run
npm run sdk:fetchand note the SHA-256. Runnpm run check. If you get a 401, work through the checklist in Part 10 and use the curl test. - Minutes 20–30: Look around. Run
npm startand openhttp://127.0.0.1:3000. Check your Issuer ID, creation date, and counters. Compare them with the Issuer dashboard in UIID. - Minutes 30–40: Issue one UIID. Only if you are sure. Confirm the prompt, then read the raw JSON. Remember that this is permanent.
- Minutes 40–50: Read the code. Go through
config.js,rest-issuer.js,issuer-client.js,errors.js, andserver.js, in that order. - Minutes 50–60: Plan your integration. Decide where the key will live in your system, who is allowed to trigger issuance, and what you need to log.
Final thoughts
UIID v2.18 adds something simple but important to digital identity: a permanent, verifiable link between an identity and the organization that issued it. Companies, collectives, and governments can now stand behind the identities they create, and they can do it with a single API key.
The UIID Issuer Demo shows how to do this carefully. It keeps the key on the server and asks before it does anything permanent. It also shows you the raw response and gives you readable errors. And it does all of this in a small project with no dependencies, so you can read every file yourself.
To get started:
- Read the changelog for the v2.18 details.
- Open the API documentation and follow the link to the Issuer SDK guide.
- Clone the demo, run
npm run check, and see your own Issuer ID on screen.
And once more, because it matters: issued UIIDs are permanent. Test with care.
Happy building.
The UIID Issuer Demo is a community project and not an official LINKSPREED product. Sources: the project README and the UIID v2.18 changelog entry at uiid.me.