{"id":50288543,"url":"https://github.com/codewithveek/afriex-sdk","last_synced_at":"2026-05-28T04:04:03.044Z","repository":{"id":336886263,"uuid":"1151479294","full_name":"codewithveek/afriex-sdk","owner":"codewithveek","description":"Official TypeScript SDK for the Afriex Business API. A unified interface for all Afriex services.","archived":false,"fork":false,"pushed_at":"2026-02-21T16:44:18.000Z","size":716,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-21T23:06:00.257Z","etag":null,"topics":["api","cross-border","cross-border-payments","finance","fintech","payments","sdk","typescript"],"latest_commit_sha":null,"homepage":"https://afriex-sdk-docs.vercel.app","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/codewithveek.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-02-06T14:17:26.000Z","updated_at":"2026-02-07T16:22:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codewithveek/afriex-sdk","commit_stats":null,"previous_names":["codewithveek/afriex-sdk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewithveek/afriex-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithveek%2Fafriex-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithveek%2Fafriex-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithveek%2Fafriex-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithveek%2Fafriex-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithveek","download_url":"https://codeload.github.com/codewithveek/afriex-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithveek%2Fafriex-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33593411,"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-05-28T02:00:06.440Z","response_time":99,"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":["api","cross-border","cross-border-payments","finance","fintech","payments","sdk","typescript"],"created_at":"2026-05-28T04:04:01.991Z","updated_at":"2026-05-28T04:04:03.031Z","avatar_url":"https://github.com/codewithveek.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @afriex/sdk\n\nOfficial TypeScript SDK for the Afriex Business API. A unified interface for all Afriex services.\n\n## Installation\n\n```bash\nnpm install @afriex/sdk\n# or\npnpm add @afriex/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { AfriexSDK } from '@afriex/sdk';\n// or use the alias\nimport { Afriex } from '@afriex/sdk';\n\nconst afriex = new AfriexSDK({\n    apiKey: 'your-api-key',\n    environment: 'production', // or 'staging' (default: 'production')\n    webhookPublicKey: '-----BEGIN PUBLIC KEY-----...' // optional\n});\n\n// Customers\nconst customer = await afriex.customers.create({\n    fullName: 'John Doe',\n    email: 'john@example.com',\n    phone: '+1234567890',\n    countryCode: 'US'\n});\n\n// Payment Methods\nconst paymentMethod = await afriex.paymentMethods.create({\n    customerId: customer.customerId,\n    channel: 'BANK_ACCOUNT',\n    accountName: 'John Doe',\n    accountNumber: '1234567890',\n    countryCode: 'NG',\n    institution: {\n        institutionCode: '058',\n        institutionName: 'GTBank'\n    }\n});\n\n// Transactions\nconst transaction = await afriex.transactions.create({\n    customerId: customer.customerId,\n    destinationAmount: 50000,\n    sourceCurrency: 'USD',\n    destinationCurrency: 'NGN',\n    destinationId: paymentMethod.paymentMethodId\n});\n\n// Rates\nconst rate = await afriex.rates.getRate('USD', 'NGN');\n\n// Balance\nconst balances = await afriex.balance.getBalance({ currencies: ['USD', 'NGN'] });\n\n// Webhook Verification (only if webhookPublicKey provided)\nif (afriex.webhooks) {\n    const isValid = afriex.webhooks.verify(payload, signature);\n}\n```\n\n## Available Services\n\n| Service                 | Description                                  |\n| ----------------------- | -------------------------------------------- |\n| `afriex.customers`      | Customer CRUD and KYC management             |\n| `afriex.transactions`   | Create and track transactions                |\n| `afriex.paymentMethods` | Bank, mobile money, crypto, virtual accounts |\n| `afriex.balance`        | Organization wallet balances                 |\n| `afriex.rates`          | Exchange rates and conversions               |\n| `afriex.webhooks`       | Webhook signature verification (optional)    |\n\n## Configuration\n\n```typescript\ninterface AfriexSDKConfig {\n    apiKey: string;           // Required - Your Afriex API key\n    environment?: 'staging' | 'production';  // Default: 'production'\n    webhookPublicKey?: string; // Optional - Afriex's public key for webhooks\n}\n```\n\n## Individual Packages\n\nFor smaller bundle sizes, install packages individually:\n\n| Package                   | Description                   |\n| ------------------------- | ----------------------------- |\n| `@afriex/core`            | Base client and configuration |\n| `@afriex/customers`       | Customer management           |\n| `@afriex/transactions`    | Transaction handling          |\n| `@afriex/payment-methods` | Payment methods               |\n| `@afriex/balance`         | Balance queries               |\n| `@afriex/rates`           | Exchange rates                |\n| `@afriex/webhooks`        | Webhook verification          |\n\n## Documentation\n\nFull documentation available at [afriex-sdk-docs.vercel.app](https://afriex-sdk-docs.vercel.app)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithveek%2Fafriex-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithveek%2Fafriex-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithveek%2Fafriex-sdk/lists"}