How stavomidnite661/sovr-open-banking-v2 works
1. This repository is really two separate systems under one roof:
- an Open Banking documentation/content platform
- a Solidity smart-contract project for financial messaging/payments
They do not appear to share runtime dependencies or deployment targets.
2. The largest subsystem is the Open Banking docs tree under open-banking-v2-docs-master/.
It is a content-driven site composed of Markdown documentation, API reference files, branding assets, and generated/build outputs. The presence of toc.json, home/index.md, and docs/** indicates a structured docs portal rather than an app with a business backend.
3. The docs content is organized into product-style sections:
- general entry and onboarding pages
- “API Overview”
- “Help”
- archived legacy API profiles
- separate EU/UK doc sets in v1-eu-docs/ and v1-uk-docs/
This suggests the site serves multiple documentation variants from similar source content.
4. The docs layer includes API contract artifacts in swagger/ and Postman collections in assets/postman/.
These are the main machine-readable integration references for consumers: OpenAPI files describe the endpoints, while Postman collections support manual testing and onboarding.
5. There is also a Next.js frontend inside open-banking-v2-docs-master/sovr-frontend/.
Its source structure shows a page-based UI with pages/, reusable UI components in components/, custom hooks in hooks/, and integration logic in services/. This is the interactive part of the documentation/product experience, distinct from the static markdown docs.
6. The Next.js frontend has a thin server-side boundary:
- one API route at pages/api/create-live-payment.ts
- several user-facing pages such as payment, live-payment, blockchain-payment, consent, diagnostic, and test/demo pages
This indicates the frontend can orchestrate payment flows and diagnostics without a separate backend repo.
7. The service layer in sovr-frontend/services/ is the integration boundary.
Files like productionBankingClient.ts, liveStripeClient.ts, achSmartContract.ts, and sovrExchange.ts suggest the UI delegates to isolated adapters for banking, Stripe/payment processing, smart-contract interaction, and exchange logic. For an architecture diagram, this is the main place to show external dependencies.
8. The frontend is configured as a standard modern React/Next.js app with Tailwind/PostCSS styling and TypeScript.
The .next/ directory in the tree is build output/cache, not source. It shows the app has been built and likely deployed in a server-rendered or hybrid Next.js mode.
9. The docs repository has automation around content copying/publishing.
The GitHub Actions workflow copy-dirs.yml implies directory synchronization or publication between doc variants or targets. This is a content distribution mechanism, not business logic.
10. The second major project is pAYROLL/compliant-fin-messaging/, a Hardhat-based Solidity project.
Its core boundaries are:
- contracts/ for on-chain logic
- scripts/ for deployment
- hardhat.config.js for network/tooling configuration
- artifacts/ and cache/ as build outputs
This is a separate blockchain delivery path from the Next.js frontend.
11. The smart-contract project is structured for deployment to EVM networks.
The README mentions Alchemy/Infura-style RPC access and deployment to networks such as Mumbai or Polygon, so the architecture should show an external blockchain network as the runtime target, with deployment initiated from Hardhat scripts.
12. Overall data flow is content/integration driven rather than monolithic:
- Markdown/OpenAPI/Postman assets feed the documentation site
- the Next.js frontend uses service adapters to talk to banking/payment/blockchain endpoints
- the Hardhat project compiles and deploys contracts to a blockchain network
There is no sign of a shared central backend service or database in this repository.
13. For an architecture diagram, the clearest boundaries are:
- documentation content source vs. generated site assets
- interactive frontend vs. external banking/Stripe/blockchain services
- off-chain frontend tooling vs. on-chain smart-contract deployment/runtime
That separation best matches how the repository is organized on disk.
Main entry points: pages Pages · index.md Entry pages · services Service adapters · docs Docs sections
Components 22
Open Banking docs
Content-driven documentation platform with generated API references and documentation variants.
- Entry pages · Top-level landing and onboarding pages for the main docs site.
open-banking-v2-docs-master/home/index.md - Docs sections · Structured documentation for getting started, production, sandbox, help, and archived profiles.
open-banking-v2-docs-master/docs - Nav model · Navigation structure that organizes the documentation portal.
open-banking-v2-docs-master/toc.json - API refs · Machine-readable API definitions for account info, funds confirmation, events, and payment initiation.
open-banking-v2-docs-master/swagger - Postman assets · Manual testing and onboarding collections for API consumers.
open-banking-v2-docs-master/assets/postman - Branding assets · Shared styles and imagery used across documentation variants.
open-banking-v2-docs-master/assets - Copy workflow · Automation for syncing or publishing documentation directories.
open-banking-v2-docs-master/.github/workflows/copy-dirs.yml - EU docs · European variant of the Open Banking documentation tree.
open-banking-v2-docs-master/v1-eu-docs - UK docs · UK variant of the Open Banking documentation tree.
open-banking-v2-docs-master/v1-uk-docs
Interactive frontend
Next.js application for payment, consent, and diagnostics flows.
- Pages · User-facing routes for payment, live payment, blockchain payment, consent, diagnostics, and demos.
open-banking-v2-docs-master/sovr-frontend/pages - API route · Thin server-side route that creates live payments.
open-banking-v2-docs-master/sovr-frontend/pages/api/create-live-payment.ts - UI components · Reusable interface pieces for bank selection and exchange demos.
open-banking-v2-docs-master/sovr-frontend/components - Hooks · Custom React hooks that coordinate exchange state and UI behavior.
open-banking-v2-docs-master/sovr-frontend/hooks - Service adapters · Adapters for banking, Stripe, smart-contract, and exchange integrations.
open-banking-v2-docs-master/sovr-frontend/services - Next build · Generated Next.js runtime artifacts and compiled bundles.
open-banking-v2-docs-master/sovr-frontend/.next - App config · Framework and styling configuration for the frontend.
open-banking-v2-docs-master/sovr-frontend/next.config.js
Smart contracts
Hardhat/Solidity project for EVM deployment.
- Contracts · On-chain logic compiled and deployed by the Hardhat project.
pAYROLL/compliant-fin-messaging/contracts - Deploy scripts · Deployment entry points for blockchain targets.
pAYROLL/compliant-fin-messaging/scripts - Hardhat config · Compiler, network, and deployment configuration for EVM targets.
pAYROLL/compliant-fin-messaging/hardhat.config.js - Build outputs · Generated contract artifacts and cache data.
pAYROLL/compliant-fin-messaging/artifacts
Other components
- Repository · Contains two largely separate systems: an Open Banking documentation platform and a Solidity contract project.
- EVM network · External blockchain target such as Polygon or Mumbai used by the contract system.
Connections 23
- Repository → Entry pages: contains · Repository includes the main docs entry pages.
- Repository → Pages: contains · Repository includes the interactive frontend.
- Repository → Contracts: contains · Repository includes the smart-contract project.
- Entry pages → Nav model: guided by · Landing content is organized by the table of contents.
- Nav model → Docs sections: links to · Navigation points into the structured docs sections.
- Docs sections → API refs: references · Docs sections are backed by OpenAPI reference files.
- Docs sections → Postman assets: supports · Docs include Postman collections for hands-on testing.
- Entry pages → Branding assets: uses · Shared styling and imagery support the documentation site.
- Entry pages → Copy workflow: automates · Workflow syncs or publishes documentation variants.
- Entry pages → EU docs: variants · EU documentation tree is a parallel variant.
- Entry pages → UK docs: variants · UK documentation tree is a parallel variant.
- Pages → API route: calls · UI routes rely on the server-side payment creation endpoint.
- Pages → UI components: composes · Pages are built from reusable UI components.
- Pages → Hooks: uses · Pages rely on shared client-side state hooks.
- Pages → Service adapters: delegates · User flows delegate integrations to service adapters.
- UI components → Service adapters: interacts with · Demo and selection components feed service-backed flows.
- Hooks → Service adapters: orchestrates · Hooks coordinate exchange and payment behavior through services.
- App config → Pages: configures · Framework config shapes route behavior and rendering.
- Next build → Pages: built from · Compiled output is generated from the page sources.
- Service adapters → EVM network: connects to · Smart-contract adapter targets external EVM networks.
- Deploy scripts → EVM network: deploys to · Deployment scripts publish contracts to the blockchain runtime.
- Hardhat config → Deploy scripts: configures · Hardhat config defines how deployment scripts run.
- Contracts → Build outputs: compiles into · Solidity sources are compiled into artifacts and cache outputs.