{"id":30084481,"url":"https://github.com/paulopatto/payment-midleware-hono","last_synced_at":"2026-04-14T19:31:34.567Z","repository":{"id":308933350,"uuid":"1016911534","full_name":"paulopatto/payment-midleware-hono","owner":"paulopatto","description":"O desafio é intermediar (integrar) requisições de pagamentos para serviços de processamento de pagamentos com a menor taxa financeira por transação. Haverá dois serviços Payment Processor: o default – com a taxa mais baixa – e o fallback que contém a taxa mais alta e deveria ser usado apenas quando o serviço default não estiver disponível.","archived":false,"fork":false,"pushed_at":"2025-08-08T17:56:48.000Z","size":154,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T19:39:56.491Z","etag":null,"topics":["bullmq","github-actions","honojs","nodejs","openapi","redis","rinha-de-backend","typescirpt","zod-validation"],"latest_commit_sha":null,"homepage":"","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/paulopatto.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}},"created_at":"2025-07-09T18:07:05.000Z","updated_at":"2025-08-08T17:56:33.000Z","dependencies_parsed_at":"2025-08-08T19:40:02.677Z","dependency_job_id":"92c69e0b-f7d5-4752-9359-abc18314ca25","html_url":"https://github.com/paulopatto/payment-midleware-hono","commit_stats":null,"previous_names":["paulopatto/payment-midleware-hono"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/paulopatto/payment-midleware-hono","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulopatto%2Fpayment-midleware-hono","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulopatto%2Fpayment-midleware-hono/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulopatto%2Fpayment-midleware-hono/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulopatto%2Fpayment-midleware-hono/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulopatto","download_url":"https://codeload.github.com/paulopatto/payment-midleware-hono/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulopatto%2Fpayment-midleware-hono/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31812968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"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":["bullmq","github-actions","honojs","nodejs","openapi","redis","rinha-de-backend","typescirpt","zod-validation"],"created_at":"2025-08-09T00:00:45.947Z","updated_at":"2026-04-14T19:31:34.561Z","avatar_url":"https://github.com/paulopatto.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serviço de pagamentos\n\n\u003e Este projeto é parte da terceira edição da rinha de backend 2025 [site do evento](https://github.com/zanfranceschi/rinha-de-backend-2025)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://hono.dev\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/honojs/hono/main/docs/images/hono-title.png\" width=\"500\" height=\"auto\" alt=\"Hono\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## Stack\n\n- [HonoJS](https://hono.dev/): Framework web leve para construir APIs.\n- [TypeScript](https://www.typescriptlang.org/): Superset de JavaScript que adiciona tipagem estática.\n- [Node.js](https://nodejs.org/en/): Ambiente de execução JavaScript. (LTS 22)\n\n## Pré-requisitos\n\n- [Node.js](https://nodejs.org/en/download/) (LTS 22)\n- [npm](https://www.npmjs.com/) ou [yarn](https://yarnpkg.com/)\n\n## Produção \n\nVariaveis de ambiente necessárias:\n\n- REDIS_URL\n- PAYMENT_PROCESSOR_URL_DEFAULT\n- PAYMENT_PROCESSOR_URL_FALLBACK\n\n## Desenvolvimento\n\n### Instalação\n\n1.  Clone o repositório:\n\n```bash\ngit clone \u003cseu-repositorio\u003e\ncd rinha_ed3_payment\n\n```\n\n2.  Instale as dependências:\n\n```bash\nnpm install # ou yarn install\n```\n\n### Execução\n\nPara executar o projeto em modo de desenvolvimento:\n\n```bash\nnpm run dev # ou yarn dev\n```\n\nIsso iniciará o servidor usando `tsx watch src/index.ts` e reiniciará automaticamente em caso de alterações nos arquivos.\n\n## Dependências\n\nAs dependências do projeto estão listadas no arquivo `package.json`.\n\n\n- `hono`: Micro framework web\n- `@hono/node-server`: Adaptador para executar o Hono em Node.js.\n- `@hono/zod-openapi`: Integração do Zod com OpenAPI para Hono.\n- `zod`: Biblioteca de declaração e validação de esquemas.\n- `redisio`: Biblioteca para acesso ao memory database Redis\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulopatto%2Fpayment-midleware-hono","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulopatto%2Fpayment-midleware-hono","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulopatto%2Fpayment-midleware-hono/lists"}