GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - StanzaAPI/udi-decoder-typescript: FDA & EU MDR Medical Device UDI Decoder (GS1, HIBCC, ICCBBA) (typescript client)

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
README.md
README.md
 
 
index.cjs
index.cjs
 
 
index.d.ts
index.d.ts
 
 
index.mjs
index.mjs
 
 
package.json
package.json
 
 

Repository files navigation

FDA & EU MDR Medical Device UDI Decoder — TypeScript / JavaScript SDK

npm version License: MIT Stanza API

Parse GS1-128, HIBCC Modulo-43, and ICCBBA ISBT 128 medical device barcodes for FDA 21 CFR 801 & EU MDR compliance.

Official, zero-dependency Node.js and TypeScript client for FDA & EU MDR Medical Device UDI Decoder, powered by the Stanza Micro-API Network. Delivers deterministic, sub-5ms V8 isolate execution directly to your application without 3rd-party proxies.

  • 🌐 Live Web Sandbox: Try interactive queries online
  • 📚 API Reference: Read complete OpenAPI specification
  • ⚡ Platform Overview: Discover the Stanza Edge Portfolio

📦 Installation

npm install @stanzaapi/udi-decoder
# or
pnpm add @stanzaapi/udi-decoder
# or
yarn add @stanzaapi/udi-decoder

🚀 Quickstart

import { UdiDecoderClient } from '@stanzaapi/udi-decoder';

// Initialize client (API key optional for sandbox tier evaluation)
const client = new UdiDecoderClient({
  apiKey: process.env.STANZA_API_KEY,
});

async function main() {
  const result = await client.parse('+H12345678901/$$3260101');

  if (result.success) {
    console.log('Verification Success:', result.data);
  } else {
    console.error('Validation Error:', result.error, result.code);
  }
}

main().catch(console.error);

📄 Example JSON Response

{
  "success": true,
  "data": {
    "valid": true,
    "issuing_agency": "HIBCC",
    "di": "H12345678901",
    "lot": "3260101"
  }
}

⚙️ Client Configuration Options

Option Type Default Description
apiKey string process.env.STANZA_API_KEY Your Stanza API Key. Required for high-throughput production tiers.
baseUrl string https://api.stanzaapi.com/udi-decoder Public edge API base URL.
timeoutMs number 15000 Request timeout in milliseconds (uses native AbortSignal.timeout).

🛡️ Response Envelope & Error Handling

All responses return a typed envelope:

export interface ApiResponse<T> {
  success: boolean;
  data?: T;
  error?: string;
  code?: 'VALIDATION_ERROR' | 'UNAUTHORIZED' | 'PAYLOAD_TOO_LARGE' | 'RATE_LIMITED' | 'INTERNAL_ERROR';
}

🔗 Related Resources

  • FDA & EU MDR Medical Device UDI Decoder Interactive Playground
  • Stanza Microservices Directory
  • Report an Issue on GitHub

📄 License

MIT © Stanza — Powered by Stanza.

About

FDA & EU MDR Medical Device UDI Decoder (GS1, HIBCC, ICCBBA) (typescript client)

stanzaapi.com/tools/udi-decoder

Topics

api-clientbarcodeeu-mdrfdags1gudidhealthcarehibcciccbbamedical-devicesrest-apisdkstanzaapitypescriptudi

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.