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

@kreiseck/uid

v0.1.1

Published

EU-USt-ID-Validierung (VIES) und FinanzOnline-UID-Abfrage

Readme

@kreiseck/uid

Prüft Umsatzsteuer-Identifikationsnummern (UID) — primär über das EU-System VIES, sekundär über FinanzOnline (Österreich). Format-Normalisierung ohne Netzzugriff, zustandsloses 3-Ausgänge-Modell (gültig / ungültig / keine Antwort) mit Retry-Hinweis, Konsultationsnummer und Nachweis.

Dieses Paket kapselt die Anbindung an die europäische VIES-API und den österreichischen FON-UID-Dienst (FinanzOnline).

Installation

npm install @kreiseck/uid

Node ≥ 18.18. Baut auf @kreiseck/finanzonline-core (Session/Transport).

Grundlagen

Ein Uid-Objekt wird über createUid(config) mit einem Antragsteller initialisiert — das ist die UID des Abfragenden.

import { createUid } from '@kreiseck/uid';

const uid = createUid({ antragsteller: 'ATU12345678' });

// Schnelle VIES-Prüfung (3 Ausgänge)
const erg = await uid.pruefe('DE987654321');
erg.ergebnis; // 'gueltig' | 'ungueltig' | 'keine_antwort'

3-Ausgänge-Modell

Alle Prüfungen (pruefe, bestaetige, fon.abfrage) liefern ein Ergebnis mit drei möglichen Ausgängen:

  • gueltig — UID ist aktiviert und kann verwendet werden (Name/Adresse ggf. erfasst)
  • ungueltig — UID existiert nicht oder ist nicht aktiv
  • keine_antwort — Dienst nicht erreichbar; grund differenziert, wiederholbar gibt an, ob eine Wiederholung sinnvoll ist
const erg = await uid.pruefe('DE987654321');
if (erg.ergebnis === 'keine_antwort') {
  console.log(erg.grund); // 'timeout' | 'ueberlast' | 'ms_nicht_erreichbar' | …
  if (erg.wiederholbar) { /* retry */ }
}

VIES — Schnelle Prüfung (Basis)

pruefe() — Netzwerk, schnell, anonym:

const erg = await uid.pruefe('DE987654321');
// erg.ergebnis, erg.quelle: 'vies', erg.nachweis?, erg.wiederholbar?, …

bestaetige() — Mit Adressanfrage und Approximation:

const erg = await uid.bestaetige({
  uid: 'DE987654321',
  name: 'Example GmbH',
  strasse: 'Mustergasse 1',
  plz: '1010',
  ort: 'Wien',
});
erg.matches; // { name: 'match'|'kein_match'|'nicht_geprueft', … }
erg.nachweis; // { art: 'vies-konsultationsnummer', id, datum }

viesStatus() — Verfügbarkeitsstatus der VIES pro Land:

const st = await uid.viesStatus();
// st.vowVerfuegbar, st.land: { AT: 'verfuegbar', DE: 'beobachtet', … }

FinanzOnline — Tiefe Prüfung (Fallback)

fon.abfrage() — Behördliche Bestätigung aus FinanzOnline-Datenbank (in Österreich). Erfordert eine gültige Session (aus @kreiseck/finanzonline-core):

const session = await createSession({ /* … */ });
const uid = createUid({ antragsteller: 'ATU12345678', session });

const erg = await uid.fon.abfrage({ uid: 'ATU98765432', stufe: 1 });
// erg.ergebnis, erg.quelle: 'fon', erg.nachweis.art: 'fon-bescheid-in-databox'

Stufe 1: Name + Land; Stufe 2: volle Adresse. Die Bestätigung wird asynchron als Bescheid in die DataBox gestellt (FinanzOnline BAO § 132).

Nachweise und Nachweisverpflichtungen

Jedes Ergebnis mit ergebnis === 'gueltig' enthält einen nachweis:

  • VIES: art: 'vies-konsultationsnummer' — Eindeutige Anfrage-ID, verwendbar für Compliance-Audit-Trail
  • FON: art: 'fon-bescheid-in-databox' — Der Behördenbescheid liegt am Folgetag in der DataBox; empfohlen für Geschäftsverkehr mit neuen Partnern

Stateless + Caching

Alle Abfragen sind stateless — keine Session im Uid-Objekt erforderlich (außer für FON). Zur Optimierung:

const cacheKey = uid.cacheKey('DE987654321');
// => 'DE987654321' (normalisiert)

Offene Live-Verifikationspunkte

Die folgenden Szenarien sind noch nicht im Live-Betrieb validiert — Feedback nach Einsatz sehr willkommen:

  • FON-Prüfung in der Testumgebung (FinanzOnline Test-Zugänge)
  • Verhalten bei VIES-Ratenlimiting und Überlast-Codes
  • Konsultationsnummern und VIES-Datumgenauigkeit für Compliance

Lizenz

Apache-2.0 © Kreiseck. Teil von austria-gov-connect.