2026-04-22 11:04:59 +01:00
2026-03-25 13:52:45 +01:00
2026-04-22 11:04:59 +01:00
2026-04-22 11:04:59 +01:00
2026-04-22 11:04:59 +01:00
2026-04-22 11:04:59 +01:00
2026-04-22 11:04:59 +01:00
2026-03-25 13:52:45 +01:00
2026-04-22 11:04:59 +01:00
2026-04-22 11:04:59 +01:00
2026-03-28 23:46:45 +01:00
2026-03-25 13:52:45 +01:00
2026-04-22 11:04:59 +01:00
2026-04-22 11:04:59 +01:00
2026-03-25 13:52:45 +01:00
2026-02-17 00:14:38 +01:00
2026-03-25 13:52:45 +01:00
2026-03-25 13:52:45 +01:00
2026-04-22 11:04:59 +01:00
2026-04-22 11:04:59 +01:00
2026-02-14 21:47:08 +01:00
2026-03-25 13:52:45 +01:00
2026-04-22 11:04:59 +01:00
2026-03-25 13:52:45 +01:00
2026-03-28 23:46:45 +01:00
2026-04-12 19:24:24 +01:00

🔗 LexiChain: Professional BFSI Document Intelligence Platform

Status: Production-Ready PFE Project
Target Audience: Banking, Financial Services, and Insurance (BFSI) Institutions
Key Innovation: Hybrid integration of Generative AI (Gemini) and Ethereum Blockchain (DocumentRegistry)


🏛️ 1. Project Vision & Mission

LexiChain is a next-generation platform designed to bridge the gap between complex legal documentation and user-centric transparency. In the traditional BFSI sector, contracts are often "black boxes"—static PDFs that are hard to understand and easy to misplace.

LexiChain transforms these static documents into dynamic, searchable, and cryptographically secured assets. Our mission is to automate document analysis while providing an immutable "Digital Notary" service that guarantees trust between financial institutions and their clients.


📉 2. Market Problem & Opportunity

The project addresses several critical "pain points" in the current financial landscape:

  1. The Transparency Gap: Clients often sign contracts without understanding specific exclusion clauses or renewal dates.
  2. Operational Friction: Insurance agents spend thousands of hours manually checking PDFs for compliance and signature presence.
  3. The Integrity Risk: In legal disputes, proving that a specific version of a document was the one actually signed can be difficult and expensive.
  4. Information Overload: Users are overwhelmed by the volume of fine print in modern banking.

🚀 3. Core Feature Deep-Dive

🧠 A. The AI "Analyst" Module (Intelligence Layer)

LexiChain uses Google Gemini 2.0 Flash to act as a virtual legal analyst.

  • Smart Ingestion: Uses high-fidelity OCR to read digital PDFs and scanned images.
  • Automated Extraction: Identifies 15+ key data points (Amount, Interest Rate, Parties, Expiration Dates, Clauses) instantly.
  • RAG (Retrieval-Augmented Generation): The most advanced part of the AI. It breaks the contract into "Semantic Chunks" and stores them in a vector index. This allows the user to Chat with their Contract in natural language.
  • Intelligent Validation: The AI automatically flags missing signatures, inconsistent dates, or high-risk clauses before the document is finalized.

⛓️ B. The Blockchain "Notary" Module (Security Layer)

LexiChain uses a private/public hybrid blockchain strategy to ensure Non-Repudiation.

  • Proof of Existence (PoE): We generate a SHA-256 hash (digital fingerprint) for every file. This hash is sent to a Solidity Smart Contract on the Ethereum network.
  • Immutable Timestamping: The blockchain records exactly when the document was uploaded. This cannot be changed by any administrator, providing a "Golden Record."
  • Metadata Leakage Prevention: We only store the Hash on-chain. No personal data (names, amounts) ever touches the public blockchain, ensuring 100% GDPR compliance.
  • The Explorer: A built-in "Verification Panel" that allows any auditor to verify a file's integrity by comparing its current hash with the on-chain record.

🏗️ 4. Technical Architecture

Architecture Pattern: Feature-Sliced Design (FSD)

The project follows FSD principles, which is a modern architectural pattern for scaling large applications.

  • Layers: App, Pages, Features, Entities, Shared.
  • Benefits: Decouples the Blockchain logic from the AI logic, making the system highly maintainable and ready for enterprise scaling.

The Stack

Layer Technology Rationale
Frontend Next.js 15 (React) High performance, SEO-friendly, and supports React Server Components.
Backend Server Actions (Next.js) Allows for secure, server-side blockchain signing and API communication without a separate backend.
LLM Gemini Unbeatable speed and context window size for long legal documents.
Blockchain Solidity / Hardhat Ethereum-compatible smart contracts for industry-standard security.
Database PostgreSQL + Prisma Robust relational storage for user data and contract metadata.
Identity Clerk Enterprise-grade security for user authentication and session management.

🔒 5. Security & Privacy Philosophy

LexiChain is built with a "Security by Design" approach:

  • Hashing vs. Storage: We never store the actual document on the blockchain. The blockchain only holds the "Proof," while the "Content" remains in encrypted cloud storage.
  • Server-Side Signing: Users don't need a crypto wallet (MetaMask). Our backend acts as a Trusted Custodian, signing transactions with a secure private key hidden in environment variables.
  • Authentication Hooks: Access to contracts is strictly controlled via Clerk Auth, ensuring users only see their own data.

🎨 6. UX/UI & Aesthetics

The application features a "Premium Glassmorphism" design system.

  • Why?: In BFSI, the interface must convey Trust, Modernity, and Clarity.
  • Design Tokens: We use vibrant gradients, subtle blurs, and micro-animations to make the complex task of contract management feel light and intuitive.
  • Theme Awareness: The UI is optimized for both Light and Dark modes, adapting to the professional environment of the user.

🌟 7. Why this is a 10/10 PFE Project

LexiChain isn't just a simple web app; it is a Multidisciplinary Innovation:

  1. AI Innovation: Moving beyond simple text extraction to a conversational RAG system.
  2. Blockchain Innovation: Implementing a production-ready Document Registry that solves real-world legal issues.
  3. Architectural Integrity: Using FSD and Clean Code principles usually found in senior-level software engineering.
  4. Market Readiness: The solution is directly applicable to banks and insurance companies looking to digitalize their workflow.

📚 8. Glossary for NotebookLM

  • BFSI: Banking, Financial Services, and Insurance.
  • RAG (Retrieval-Augmented Generation): A technique that allows AI to answer questions based only on the provided documents, preventing "hallucinations."
  • Smart Contract: A programmable contract that executes automatically when conditions are met.
  • SHA-256: A one-way cryptographic function. If you change 1 bit of a file, the entire hash changes.
  • Hardhat: A professional development environment for Ethereum software.
  • Sepolia: The public test network used to simulate the real Ethereum blockchain.
Description
No description provided
Readme 642 KiB
Languages
TypeScript 97%
CSS 2%
JavaScript 0.8%
Shell 0.2%