npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@schibsted/account-sdk-browser

v6.0.0

Published

Schibsted account SDK for browsers

Readme

Schibsted Account SDK for browsers

Welcome! This is the home of the Schibsted Account JavaScript SDK for browsers. Use it to let users sign up and log in with Schibsted Account, read the current session, and check access to products and features.

See the public SDK documentation for setup, integration guidance, and the API reference.

Before You Start

The SDK communicates mainly with Session Service on a brand domain such as id.vg.no. Your website and Session Service domain must share the same top-level site so browser cookies are sent with XHR requests.

For local development:

  • serve your site over HTTPS, because Session Service is hosted over HTTPS
  • use a local hostname with the same top-level site as the configured Session Service domain

For example, if your pre-production site is pre.sdk-example.com and uses id.pre.sdk-example.com as Session Service, use a local hostname such as local.sdk-example.com.

If this is a new site and you do not have a sessionDomain yet, contact support.

Development

Dependencies are installed from Schibsted Artifactory (see .npmrc), so npm must be authenticated to it before npm install. The private @schibsted/consent-url-utils package is bundled into dist/ by Vite during npm run build, so SDK consumers do not need access to it.

Install dependencies and run the standard checks:

npm ci
npm run build
npm test
npm run lint
npm run typecheck

API Documentation

Public API documentation is generated from TypeScript source comments with TypeDoc.

Documentation commands:

  • npm run docs:build generates the documentation once in docs/.
  • npm run docs:watch rebuilds docs/ when source files change, without starting a server.
  • npm run docs:preview builds and serves the documentation locally in the versioned layout.
  • npm run docs:test tests documentation versioning and publishing.

Generated docs are written to docs/ and are not committed.

After npm publishing succeeds, the documentation workflow builds docs from the release tag and adds them to the public schibsted/account-sdk-browser repository. Existing versions remain available, and the documentation root and version selector point to the latest stable published version.

To publish an existing release again, run the documentation workflow manually with its tag. Publishing requires the public-docs environment with a PUBLIC_GITHUB_DOCS_DEPLOY_KEY secret containing the private key for a write-enabled deploy key configured in the public repository.

Example Project

The internal example integration is available in the sdk-example repository.

Publishing

Versioning and changelog updates are handled by Release Please. The release configuration lives in release-please-config.json, and publishing to npmjs.org is handled by the npm-publish workflow when a GitHub Release is published.

Use Conventional Commits for changes that should be picked up by release automation.

License

Copyright (c) 2026 Schibsted Products & Technology AS

Licensed under the MIT License.