
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
displayer-api-client
Advanced tools
var DisplayerAPI = require("displayer-api-client");
var api = new DisplayerAPI("http://backpack.openbadges.org");
var user = api.user("someone@example.org");
user.id(function (err, id) {
console.log("Looked up user id, and it is", id);
});
user.groups(function (err, groups) {
console.log("Looked up user groups, and they are", groups);
});
user.group(10, function (err, badges) {
console.log("Looked up group 10, and the badges in it are", badges);
});
ID lookups are cached, but group lookups are not. You may also provide the user id if known to skip that step, like so:
var user = api.user({
id: 1,
email: "optional@example.org"
});
All of the user methods support three styles of invocation:
user.id(function callback (err, id) {}); // node style callback
user.id(function success (id) {}, function failure (err) {}); // success/failure style callbacks
var idPromise = user.id(); // promises
If additional arguments are needed, they preceed the callbacks (if any).
Promises are implemented by bluebird.
There are two additional methods that return JSONStream streams:
var g = user.getGroupStream();
g.on("data", function (data) {
console.log("A group:", data);
});
var b = user.getBadgeStream(10);
b.on("data", function (data) {
console.log("A badge in group 10:", data);
});
FAQs
A client library for the Backpack Displayer API
We found that displayer-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.