{"id":26679927,"url":"https://github.com/xseman/bysquare","last_synced_at":"2026-01-21T15:01:15.277Z","repository":{"id":41069777,"uuid":"327381715","full_name":"xseman/bysquare","owner":"xseman","description":"📃 Encode \u0026 Decode \"PAY by square\" QR string.","archived":false,"fork":false,"pushed_at":"2026-01-15T13:20:15.000Z","size":1684,"stargazers_count":51,"open_issues_count":5,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-17T17:27:58.695Z","etag":null,"topics":["banking","bysquare","cli","paybysquare","payment","qr-code","qr-string"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xseman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":"2021-01-06T17:21:50.000Z","updated_at":"2026-01-15T22:08:41.000Z","dependencies_parsed_at":"2023-10-04T14:59:00.787Z","dependency_job_id":"64da555d-bb79-4544-861d-13aa97773fa7","html_url":"https://github.com/xseman/bysquare","commit_stats":{"total_commits":213,"total_committers":2,"mean_commits":106.5,"dds":0.136150234741784,"last_synced_commit":"ea1d88c784de17be8be79af0658d4b7095d3353a"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/xseman/bysquare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Fbysquare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Fbysquare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Fbysquare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Fbysquare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xseman","download_url":"https://codeload.github.com/xseman/bysquare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Fbysquare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T14:50:40.221Z","status":"ssl_error","status_checked_at":"2026-01-21T14:48:59.225Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["banking","bysquare","cli","paybysquare","payment","qr-code","qr-string"],"created_at":"2025-03-26T06:18:57.900Z","updated_at":"2026-01-21T15:01:15.270Z","avatar_url":"https://github.com/xseman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ebysquare\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\"PAY by square\" is a national standard for QR code payments that was adopted\nby the Slovak Banking Association in 2013. It is incorporated into a variety\nof invoices, reminders and other payment regulations.\n\u003c/p\u003e\n\n## Why\n\nIt's simple, I couldn't find any free implementation of \"PAY by square\"\nstandard, so I decided to create one and share it with the community to help\nindividuals and businesses to create QR codes for their invoices.\n\n## Features\n\n- Compatible with Slovak banking apps\n- Support latest PAY by square standard (v1.2.0)\n- Isomorphic Browser \u0026 Runtime-independent (Browser, Node.js, Bun, Deno)\n- Compatible with any system language using C Foreign Function Interface (CFFI)\n\n## Implementations\n\nThis repository provides multiple language implementations of the PAY by square\nstandard:\n\n- **[TypeScript](typescript/)** - Supports Browsers and any runtime Node.js, Bun, Deno\n- **[Go](go/)** - Native Go implementation with CLI tool and C-compatible FFI\n\nBoth implementations are fully compatible with each other and follow the same specification.\n\n```mermaid\n---\nconfig:\n  theme: neutral\n  themeVariables:\n    fontFamily: monospace\n    fontSize: \"10px\"\n---\n\nflowchart LR\n    subgraph Core[\"Core Implementations\"]\n        TS[TypeScript]\n        GO[Go]\n    end\n\n    subgraph Runtime[\"Runtime Environments\"]\n        TS --\u003e Browser\n        TS --\u003e Node/Bun/Deno\n    end\n\n    TS \u0026 GO --\u003e CLI[CLI encoder/decoder tools]\n\n    subgraph Native[\"Go Library\"]\n        GO --\u003e GO_LIB[Go Applications]\n    end\n\n    subgraph FFI[\"Universal via C FFI\"]\n        GO --\u003e CFFI[libbysquare.so/dll]\n        CFFI --\u003e ANY[Python, PHP, Java, Swift, etc.]\n    end\n\n    style TS fill:#A5D8FF,stroke:#1976D2,stroke-width:1.5px\n    style Browser fill:#A5D8FF,stroke:#1976D2,stroke-width:1.5px\n    style Node/Bun/Deno fill:#A5D8FF,stroke:#1976D2,stroke-width:1.5px\n\n    style GO fill:#A5EAFF,stroke:#00838F,stroke-width:1.5px\n    style GO_LIB fill:#A5EAFF,stroke:#00838F,stroke-width:1.5px\n    style CFFI fill:#A5EAFF,stroke:#00838F,stroke-width:1.5px\n```\n\n## Using C FFI\n\nThe Go implementation provides a C-compatible Foreign Function Interface (FFI), allowing you to use the library from any language that supports C bindings.\n\n**Available examples:**\n\n- **[Java](examples/ffi/java/)** - Using `JNA` (Java Native Access)\n- **[PHP](examples/ffi/php/)** - Using FFI extension\n- **[Python](examples/ffi/python/)** - Using `ctypes`\n- **[Swift](examples/ffi/swift/)** - Using Swift's C interoperability\n\nSee [FFI examples](examples/ffi/) for setup and usage instructions.\n\n## Related\n\n- \u003chttps://bysquare.com/\u003e\n- \u003chttps://app.bysquare.com/App/api\u003e\n- \u003chttps://devel.cz/otazka/qr-kod-pay-by-square\u003e\n- \u003chttps://github.com/matusf/pay-by-square\u003e\n- \u003chttps://www.vutbr.cz/studenti/zav-prace/detail/78439\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxseman%2Fbysquare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxseman%2Fbysquare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxseman%2Fbysquare/lists"}