{"id":36967737,"url":"https://github.com/li0ard/vds","last_synced_at":"2026-01-13T20:41:40.161Z","repository":{"id":328921910,"uuid":"1111835199","full_name":"li0ard/vds","owner":"li0ard","description":"simple library for ICAO Visible Digital Seals (VDS). supports browsers, node, bun and more!","archived":false,"fork":false,"pushed_at":"2026-01-02T08:54:35.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-08T07:39:07.123Z","etag":null,"topics":["bsi","emrtd","icao","icao-9303","idb","mrtd","passport","vds","visibledigitalseal"],"latest_commit_sha":null,"homepage":"https://li0ard.is-cool.dev/vds","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/li0ard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-07T18:10:04.000Z","updated_at":"2026-01-02T08:54:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/li0ard/vds","commit_stats":null,"previous_names":["li0ard/vds"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/li0ard/vds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li0ard%2Fvds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li0ard%2Fvds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li0ard%2Fvds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li0ard%2Fvds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/li0ard","download_url":"https://codeload.github.com/li0ard/vds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li0ard%2Fvds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28385656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T12:01:30.995Z","status":"ssl_error","status_checked_at":"2026-01-13T12:00:09.625Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bsi","emrtd","icao","icao-9303","idb","mrtd","passport","vds","visibledigitalseal"],"created_at":"2026-01-13T20:41:39.620Z","updated_at":"2026-01-13T20:41:40.153Z","avatar_url":"https://github.com/li0ard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/li0ard/vds/\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/li0ard/vds/main/.github/logo.svg\" alt=\"vds logo\" title=\"vds\" width=\"120\" /\u003e\u003cbr\u003e\n    \u003c/a\u003e\u003cbr\u003e\n    \u003cb\u003e@li0ard/vds\u003c/b\u003e\u003cbr\u003e\n    \u003cb\u003esimple library for visible digital seals (VDS)\u003c/b\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://li0ard.is-cool.dev/vds\"\u003edocs\u003c/a\u003e\n    \u003cbr\u003e\u003cbr\u003e\n    \u003ca href=\"https://github.com/li0ard/vds/actions/workflows/test.yml\"\u003e\u003cimg src=\"https://github.com/li0ard/vds/actions/workflows/test.yml/badge.svg\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/li0ard/vds/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/li0ard/vds\" /\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://npmjs.com/package/@li0ard/vds\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@li0ard/vds\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://jsr.io/@li0ard/vds\"\u003e\u003cimg src=\"https://jsr.io/badges/@li0ard/vds\" /\u003e\u003c/a\u003e\n    \u003cbr\u003e\n    \u003chr\u003e\n\u003c/p\u003e\n\n## Features\n\n- Simple: Hides decoding process and provides simple and modern API\n- Type-Safe: Most of the APIs are strictly typed to help your workflow\n- Compliance: Fully complies with ICAO 9303, BSI TR-03137 and other standards\n- Supports Bun, Node.js, Deno, Browsers, Cloudflare Workers\n- Supports many curves from [`@noble/curves`](https://github.com/paulmillr/noble-curves/)\n\n## Installation\n\n```bash\n# from NPM\nnpm i @li0ard/vds\n\n# from JSR\nbunx jsr add @li0ard/vds \n```\n\n## Usage\n\n### Parse digital seal\n```ts\nimport { Seal } from \"@li0ard/vds\";\n\nconst seal = Buffer.from(\"DC03....\", \"hex\");\nconst decodedSeal = Seal.decode(seal);\n\nconsole.log(decodedSeal);\n```\n\n### Verify digital seal\n```ts\nimport { Seal, Verifier } from \"@li0ard/vds\";\nimport { brainpoolP256r1 } from \"@noble/curves/misc.js\";\n\nconst publicKey = Buffer.from(\"0408....\", \"hex\");\nconst verifier = new Verifier(brainpoolP256r1, publicKey);\n\nconst seal = Buffer.from(\"DC03....\", \"hex\");\nconst decodedSeal = Seal.decode(seal);\n\nconsole.log(verifier.verifySeal(decodedSeal));\n```\n\n### Map VDS with schema\n```ts\nimport { Seal, VDSDocument, VDSProp, decodeSeal, FeatureCoding, encodeSeal } from \"@li0ard/vds\";\n\n@VDSDocument({ documentRef: 0x5e03, version: 4 })\nclass ICAOEmergencyTravelDocument {\n    @VDSProp({ tag: 2, coding: FeatureCoding.MRZ })\n    mrz!: string;\n}\n\nconst seal = Buffer.from(\"DC03....\", \"hex\");\nconst decodedSeal = Seal.decode(seal);\nconst mapped = decodeSeal(decodedSeal, ICAOEmergencyTravelDocument);\nconsole.log(mapped);\n\n// Also serialize back\nconsole.log(encodeSeal(mapped));\n```\n\n### Parse ICAO barcode (IDB)\n```ts\nimport { ICAOBarcode } from \"@li0ard/vds\";\n\nconst barcode = \"RDB1B...\";\nconst decodedBarcode = ICAOBarcode.decode(barcode);\n\nconsole.log(decodedBarcode);\n```\n\n### Verify ICAO barcode (IDB)\n```ts\nimport { ICAOBarcode, Verifier } from \"@li0ard/vds\";\nimport { brainpoolP256r1 } from \"@noble/curves/misc.js\";\n\nconst publicKey = Buffer.from(\"0408....\", \"hex\");\nconst verifier = new Verifier(brainpoolP256r1, publicKey);\n\nconst barcode = \"RDB1B...\";\nconst decodedBarcode = ICAOBarcode.decode(barcode);\n\nconsole.log(verifier.verifyBarcode(decodedBarcode));\n```\n\n## Links\n\n- [vdstools](https://github.com/tsenger/vdstools) - An Open Source Kotlin Implementation of VDS and IDB (greatly inspired)\n- [ICAO 9303](https://icao.int/publications/doc-series/doc-9303) - Specifications to VDS\n- [BSI TR-03137](https://bsi.bund.de/DE/Themen/Unternehmen-und-Organisationen/Standards-und-Zertifizierung/Technische-Richtlinien/TR-nach-Thema-sortiert/tr03137/tr03137_node.html) - Specifications to VDS (with example documents)\n- [ICAO TR \"ICAO Datastructure for Barcode\"](https://www2023.icao.int/Security/FAL/TRIP/PublishingImages/Pages/Publications/ICAO%20TR%20-%20ICAO%20Datastructure%20for%20Barcode.pdf) - Specifications to IDB","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fli0ard%2Fvds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fli0ard%2Fvds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fli0ard%2Fvds/lists"}