{"id":46867866,"url":"https://github.com/azeth-protocol/provider","last_synced_at":"2026-07-02T15:13:19.996Z","repository":{"id":342638597,"uuid":"1173673185","full_name":"azeth-protocol/provider","owner":"azeth-protocol","description":"x402 service provider tooling for Azeth — gate Hono endpoints behind x402 payments","archived":false,"fork":false,"pushed_at":"2026-06-04T13:00:07.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T13:05:57.533Z","etag":null,"topics":["account-abstraction","ai-agents","base","blockchain","erc-4337","ethereum","hono","http-402","machine-economy","mcp","middleware","payments","smart-accounts","typescript","usdc","x402"],"latest_commit_sha":null,"homepage":"https://azeth.ai","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/azeth-protocol.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":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-05T16:16:13.000Z","updated_at":"2026-06-04T13:00:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/azeth-protocol/provider","commit_stats":null,"previous_names":["azeth-protocol/provider"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/azeth-protocol/provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fprovider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fprovider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fprovider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fprovider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azeth-protocol","download_url":"https://codeload.github.com/azeth-protocol/provider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azeth-protocol%2Fprovider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35052317,"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-07-02T02:00:06.368Z","response_time":173,"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":["account-abstraction","ai-agents","base","blockchain","erc-4337","ethereum","hono","http-402","machine-economy","mcp","middleware","payments","smart-accounts","typescript","usdc","x402"],"created_at":"2026-03-10T19:00:20.186Z","updated_at":"2026-07-02T15:13:19.989Z","avatar_url":"https://github.com/azeth-protocol.png","language":"TypeScript","funding_links":[],"categories":["🔧 Server Frameworks \u0026 Middleware"],"sub_categories":["Node.js/TypeScript"],"readme":"# @azeth/provider\n\nx402 service provider tooling for [Azeth](https://azeth.ai). Gate your Hono endpoints behind x402 payments with built-in payment-agreement support, SIWx sessions, and automatic reputation feedback.\n\n## Installation\n\n```bash\nnpm install @azeth/provider\n# or\npnpm add @azeth/provider\n```\n\n## Quick Start\n\n```typescript\nimport { Hono } from 'hono';\nimport { createX402StackFromEnv } from '@azeth/provider';\n\nconst app = new Hono();\n\nconst { middleware, facilitator } = await createX402StackFromEnv({\n  app,\n  routes: {\n    '/api/data': { price: '$0.01', resource: 'https://api.example.com/data' },\n  },\n});\n\napp.use('/api/*', middleware);\n\napp.get('/api/data', (c) =\u003e c.json({ answer: 42 }));\n```\n\n## Features\n\n- **x402 Payment Middleware** -- Returns 402 with payment requirements, validates on-chain USDC settlement\n- **Payment Agreements** -- Recurring subscriptions via on-chain `PaymentAgreementModule`\n- **SIWx Sessions** -- Agreement-aware session storage for repeat customers\n- **Agreement Keeper** -- Periodic execution of due payment agreements\n- **Pre-Settled Payments** -- Middleware for endpoints accepting pre-settled x402 proofs\n- **Local Facilitator** -- On-chain payment verification without external facilitator dependency\n\n## API\n\n### Stack Setup\n\n| Export | Description |\n|---|---|\n| `createX402Stack(config)` | Create x402 middleware + facilitator from explicit config |\n| `createX402StackFromEnv(routes, overrides?)` | Create from env vars. Auto-resolves `payTo` to your smart account if not set. |\n| `LocalFacilitatorClient` | On-chain USDC settlement verification |\n\n### Payment Agreements\n\n| Export | Description |\n|---|---|\n| `createPaymentAgreementExtension()` | x402 extension for agreement-based payments |\n| `AzethSIWxStorage` | Agreement-aware SIWx session storage |\n| `AgreementKeeper` | Periodic execution of due agreements |\n| `findActiveAgreementForPayee()` | LRU-cached agreement lookup |\n\n### Middleware\n\n| Export | Description |\n|---|---|\n| `preSettledPaymentMiddleware` | Accept pre-settled x402 payment proofs |\n| `paymentMiddlewareFromHTTPServer` | Standard x402 HTTP resource server middleware |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazeth-protocol%2Fprovider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazeth-protocol%2Fprovider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazeth-protocol%2Fprovider/lists"}