{"id":49474978,"url":"https://github.com/encryption4all/postguard-js","last_synced_at":"2026-05-12T09:01:29.990Z","repository":{"id":346821619,"uuid":"1191606536","full_name":"encryption4all/postguard-js","owner":"encryption4all","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-15T09:41:49.000Z","size":151,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-15T11:33:49.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/encryption4all.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"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":"2026-03-25T12:12:25.000Z","updated_at":"2026-04-14T13:54:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/encryption4all/postguard-js","commit_stats":null,"previous_names":["encryption4all/postguard-js"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/encryption4all/postguard-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryption4all%2Fpostguard-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryption4all%2Fpostguard-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryption4all%2Fpostguard-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryption4all%2Fpostguard-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/encryption4all","download_url":"https://codeload.github.com/encryption4all/postguard-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encryption4all%2Fpostguard-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":[],"created_at":"2026-04-30T19:02:09.000Z","updated_at":"2026-05-12T09:01:29.982Z","avatar_url":"https://github.com/encryption4all.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cp align=\"center\"\u003e\u003cimg src=\"./img/pg_logo.svg\" height=\"128px\" alt=\"PostGuard\" /\u003e\u003c/p\u003e\n\n\u003e For full documentation, visit [docs.postguard.eu](https://docs.postguard.eu/repos/postguard-js).\n\nTypeScript/JavaScript SDK for PostGuard, published as `@e4a/pg-js` on npm. Works in both browsers and Node.js.\n\nPostGuard encrypts data for recipients based on their identity attributes (email address, phone number, etc.) rather than traditional public keys. Recipients prove their identity via [Yivi](https://yivi.app) to decrypt. This SDK is the main way web applications and email add-ons integrate with PostGuard.\n\n## Quick Start\n\n```bash\nnpm install @e4a/pg-js\n```\n\n```ts\nimport { PostGuard } from '@e4a/pg-js';\n\nconst pg = new PostGuard({\n  pkgUrl: 'https://pkg.postguard.eu',\n});\n\n// Encrypt\nconst sealed = pg.encrypt({\n  sign: pg.sign.apiKey('your-api-key'),\n  recipients: [pg.recipient.email('bob@example.com')],\n  files: fileList,\n});\nconst { uuid } = await sealed.upload();\n\n// Decrypt\nconst opened = pg.open({ uuid });\nconst result = await opened.decrypt({ element: '#yivi-popup' });\nresult.download();\n```\n\nSee the [full API reference](https://docs.postguard.eu/repos/postguard-js) for encryption options, signing methods, recipient types, and email helpers.\n\n## Development\n\nInstall dependencies and build:\n\n```bash\nnpm install\nnpm run prebuild\nnpm run build\n```\n\nRun the tests:\n\n```bash\nnpm run test\n```\n\n## Releasing\n\nReleases are handled by [semantic-release](https://semantic-release.gitbook.io/) on the `main` branch. When commits land on `main`, semantic-release determines the next version from conventional commit messages and publishes to npm automatically.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencryption4all%2Fpostguard-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fencryption4all%2Fpostguard-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencryption4all%2Fpostguard-js/lists"}