{"id":51154589,"url":"https://github.com/make-software/casper-x402","last_synced_at":"2026-06-26T09:30:53.164Z","repository":{"id":359593853,"uuid":"1236559026","full_name":"make-software/casper-x402","owner":"make-software","description":"x402 Facilitator for Casper","archived":false,"fork":false,"pushed_at":"2026-06-17T12:49:04.000Z","size":3285,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-17T13:28:11.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/make-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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-05-12T11:08:25.000Z","updated_at":"2026-06-16T14:21:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/make-software/casper-x402","commit_stats":null,"previous_names":["make-software/casper-x402"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/make-software/casper-x402","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-x402","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-x402/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-x402/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-x402/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/make-software","download_url":"https://codeload.github.com/make-software/casper-x402/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-x402/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34811914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-26T09:30:48.359Z","updated_at":"2026-06-26T09:30:53.156Z","avatar_url":"https://github.com/make-software.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Casper x402\n\nThis monorepo hosts two parallel implementations of the\n[x402 payment protocol](https://x402.org) for the\n[Casper Network](https://casper.network). Both add Casper as a supported\nnetwork to the x402 ecosystem so HTTP APIs can require micropayments settled\non-chain using CEP-18 tokens authorized via EIP-712 signatures.\n\n| Implementation | Path | Description |\n|----------------|------|-------------|\n| **Go** | [`go/`](go/) | x402 server middleware, Casper signers and reference facilitator / resource server / client / CSPR.click React app built on the official Casper Go SDK |\n| **TypeScript** | [`js/`](js/) | `@make-software/casper-x402` package — drop-in mechanism for Node.js, plus Express-based facilitator / server / client demos backed by `casper-js-sdk` |\n\nBoth implementations target the same `casper:*` CAIP-2 family and the same\nCEP-18 `transfer_with_authorization` entry point, so a client built against\none interoperates with a server or facilitator written in the other.\n\n---\n\n## What is x402?\n\nx402 is an open standard for internet-native payments over HTTP. When a client\nrequests a paid resource:\n\n1. The resource server responds with `402 Payment Required` plus\n   `PaymentRequirements` describing accepted networks, schemes, prices and\n   assets.\n2. The client builds a `PaymentPayload` — an EIP-712 signed authorization —\n   and replays the request with a `PAYMENT-SIGNATURE` header.\n3. The resource server forwards the payload to a **facilitator** for\n   verification and, on success, for on-chain settlement.\n4. The facilitator submits a Casper `transfer_with_authorization` deploy to the\n   CEP-18 contract and waits for confirmation.\n5. The resource server returns the protected response.\n\nBoth implementations support the `exact` scheme on the `casper:*` CAIP-2\nfamily, backed by the\n[casper-ecosystem/casper-eip-712](https://github.com/casper-ecosystem/casper-eip-712)\ntyped-data specification.\n\n---\n\n## Architecture\n\n![x402 Casper payment flow](./go/docs/architecture.png)\n\n_Source: [go/docs/architecture.mmd](go/docs/architecture.mmd)_\n\n---\n\n## Repository layout\n\n```\ncasper-x402/\n├── go/        # Go implementation      — see go/README.md\n├── js/        # TypeScript implementation — see js/README.md\n└── infra/     # Local NCTL stack + Dockerfiles for the Go examples and CSPR.click React demo\n```\n\n- **[go/README.md](go/README.md)** — Go module, internal packages, demo apps\n  (facilitator, resource server, client, CSPR.click React app) and per-binary\n  configuration.\n- **[js/README.md](js/README.md)** — `@make-software/casper-x402` package,\n  Express-based facilitator / server / client demos and TypeScript toolchain.\n- **[infra/](infra/)** — Docker Compose stack that wires a local NCTL node, the\n  CEP-18 token deployer, and Dockerfiles that build the Go binaries and the\n  CSPR.click React app.\n\n---\n\n## License\n\nThis project is licensed under the [Apache License 2.0](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-software%2Fcasper-x402","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmake-software%2Fcasper-x402","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-software%2Fcasper-x402/lists"}