Real-Time Negotiation Platform for Syndicated Loans
DealFlow is a desktop-native application designed to replace "email tag" in high-stakes legal negotiations. It brings the speed and density of a Bloomberg Terminal to the world of legal drafting, enabling bankers, lawyers, and borrowers to collaborate on loan documentation in real-time with an immutable audit trail secured by a local Ethereum blockchain.
This project was built for the LMA EDGE Hackathon. It addresses the challenge of modernizing the syndicated loan market by focusing on efficiency, transparency, and data integrity.
- Submission Platform: DevPost
- Goal: Transform static Word documents into live, data-rich living contracts.
- Real-Time Collaboration: Multiple parties (Banker, Counsel, Borrower) can edit the Term Sheet simultaneously using WebSockets.
- Immutable Audit Log: Every "Commit" is cryptographically hashed (SHA-256) and legally secured by writing the hash to a local Ethereum Smart Contract.
- LMA Clause Library: One-click insertion of standard Loan Market Association (LMA) clauses (Negative Pledge, Events of Default, etc.).
- Role-Based Identity: Switch between user personas to simulate multi-party negotiation.
- Encrypted Chat: Context-aware communication channel alongside the document.
- Diff View: Visual comparison between the current draft and the last committed version.
- Runtime: Electron (Desktop Native Experience)
- Frontend: React 18 + Vite + TailwindCSS
- Editor: Monaco Editor (VS Code core)
- Backend: Node.js + Express + Socket.io
- Database: Prisma ORM (SQLite for local dev)
- Blockchain: Hardhat (Local EVM), Ethers.js, Solidity
- Security: SHA-256 Hash Chains + Smart Contract Registry
- Real-time editing, role switching, and in-memory audit logs.
- Integrated Prisma ORM with SQLite.
- Documents, Chat History, and Audit Logs persist across server restarts.
- Integrated Hardhat Network to run a local Ethereum node.
- Deployed
DealRegistry.solsmart contract. - The server now sends real transactions to the local chain to anchor every document commit.
- Fine-tuned LLMs to suggest negotiation fallbacks based on market precedents.
-
Install Dependencies:
npm install
-
Setup Database (Prisma): Initialize the SQLite database.
npx prisma generate npx prisma db push
Open a terminal and run the local Hardhat node. This simulates the Ethereum network.
npx hardhat nodeKeep this terminal running.
In a new terminal, deploy the DealRegistry contract to your local node.
npx hardhat run scripts/deploy.js --network localhostNote: This will likely deploy to 0x5FbDB2315678afecb367f032d93F642f64180aa3, which is pre-configured in server/index.js.
In another new terminal, run the full development suite (Server + Client + Electron).
npm run devBuilt with ❤️ by the Hikki_Blank