How p0olar/new-pix-nextjs works
ConfiraPix is a Banco do Brasil received-Pix dashboard. A user selects a date, the page requests the app’s API, and the server obtains an OAuth token, fetches all matching Pix pages over mTLS, normalizes the payments, and returns them for local search, sorting, totals, and printing. The README documents this workflow and the certificate/credential setup; source excerpts show the route and client calls. The dashboard’s request to the API is documented and visible in its fetch code.
Main entry points: bbPixClient.js Paginated Pix fetch · page.js Pix dashboard · route.js Date API route
Components 9
Dashboard
- Pix dashboard
app/page.js - Print report
app/page.js
Server API
- Date API route
app/api/pix/route.js
BB Pix Client
- Paginated Pix fetch
lib/bbPixClient.js - Payment normalizer
lib/bbPixClient.js - OAuth token client
lib/bbPixClient.js
External Services
- BB OAuth service
- BB Pix API
Other components
- Dashboard user
Connections 9
- Dashboard user → Pix dashboard: uses
README.md - Pix dashboard → Date API route: fetches date
app/page.js - Date API route → Paginated Pix fetch: requests payments
app/api/pix/route.js - Paginated Pix fetch → OAuth token client: gets token
lib/bbPixClient.js - OAuth token client → BB OAuth service: requests token
lib/bbPixClient.js - Paginated Pix fetch → BB Pix API: fetches pages
lib/bbPixClient.js - Paginated Pix fetch → Payment normalizer: normalizes items
lib/bbPixClient.js - Date API route → Pix dashboard: returns payments
app/api/pix/route.js - Pix dashboard → Print report: prints filtered view
app/page.js