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

@iqb/metadata-components

v0.2.8

Published

Angular components for metadata of IQB.

Readme

Release notes

0.2.5 - Release stabilization

Summary

This release stabilizes the Angular 20 metadata-components package line after the resolver decoupling work.

Changes

  • Relaxed the @iqbspecs/metadata-values peer dependency to ^3.0.1, so consumers can install compatible patch releases such as 3.0.2.
  • Restored a reproducible Angular 20 dependency tree for local development and CI.
  • Added translated labels for the vocabulary dialog action buttons.
  • Matched vocabulary URLs case-insensitively when opening vocabulary dialogs.
  • Cleaned up README package references and release notes formatting.

0.2.3 — Resolver decoupling

Summary

The metadata component is decoupled from the vocabulary/resolver logic. Instead of receiving vocabularies and a vocabulary dictionary directly, the component now takes a single vocabularyProvider that it queries on demand. The component can also be bootstrapped as a web component.

Breaking changes — component inputs

| Before (≤ 0.2.x) | After | | ------------------------------------------- | -------------------- | | profile | profileData | | metadata | metadataValues | | vocabularies + vocabulariesIdDictionary | vocabularyProvider |

(metadataChange) is unchanged. The component selector remains iqb-profile-form.

Previously consumers pushed vocabularies and the dictionary into the component, which stored them internally. The component now pulls them from the provider, so consumers no longer pre-resolve or pass that data.

Angular component

Before:

<iqb-profile-form
  [profile]="profile"
  [metadata]="metadata"
  [vocabularies]="vocabularies"
  [vocabulariesIdDictionary]="vocabulariesIdDictionary"
  (metadataChange)="onMetadataChange($event)">
</iqb-profile-form>

After:

<iqb-profile-form
  [profileData]="profile"
  [metadataValues]="metadata"
  [vocabularyProvider]="metadataResolver"
  (metadataChange)="onMetadataChange($event)">
</iqb-profile-form>

Web component

Set the same inputs as properties on the metadata-profile-form element after calling bootstrapMetadataWebComponents(). Profile and metadata are passed as JSON strings:

const form = document.getElementById('metadata-form');
form.profileData = JSON.stringify(profile);
form.metadataValues = JSON.stringify(metadata);
form.vocabularyProvider = metadataResolver;
form.addEventListener('metadataChange', e => onMetadataChange(e.detail));

Providing vocabularies

vocabularyProvider must implement the VocabularyProvider interface, exported from this package. The component calls two methods:

import { VocabularyProvider, Vocab, VocabularyEntry } from '@iqb/metadata-components';

interface VocabularyProvider {
  getVocabularies(): Vocab[];
  getVocabularyDictionary(): Record<string, VocabularyEntry>;
}

MetadataResolver from @iqb/metadata-resolver implements this interface, so in most cases you pass a configured MetadataResolver instance directly:

const metadataResolver = new MetadataResolver({ cache: true });
await metadataResolver.loadVocabularies(profile);
// pass metadataResolver as [vocabularyProvider]

Vocab and VocabularyEntry are exported from this package, so a custom provider can import the exact types it must return.

Additional changes

  • Spec migration: models now derive from @iqbspecs/metadata-profile and @iqbspecs/metadata-values instead of the legacy @iqb/metadata package.
  • New vocabInline field type (FormlyInlineComponent) for vocabulary fields with selectionMode: "IN_FORM".
  • @angular/forms and rxjs are now declared as peer dependencies.
  • Removed a broken exports entry from the package manifest.