Skip to content

chandru-git26/DocuParse

Repository files navigation

DocuParse

The DocuParse application is built from a set of distinct, reusable components that work together to create the user experience. Here's a breakdown of the key Compnents :

  1. FileUpload (file-upload.tsx) o What it is: This is the initial user interaction point. It's the drag-and-drop area and file selection button. o Its Job: It's responsible for capturing the user's document. It handles the UI for file selection and performs basic client-side checks, like making sure the file isn't too large. Once a valid file is selected, it passes it to the main page to begin processing.

  2. ProcessingStatus (processing-status.tsx) o What it is: A visual pipeline that shows the current status of the document processing. o Its Job: It provides real-time feedback to the user, showing which step is currently active (e.g., "Parsing Document") with a loading icon, and which steps are complete with a checkmark. This keeps the user informed and makes the application feel responsive.

  3. DocumentViewer (document-viewer.tsx) o What it is: The component that displays the final result of the parsing process. o Its Job: It presents the extracted text from the document in a clean, scrollable view. It also houses important actions, like the button to download the parsed data as a JSON file and the maximize/minimize button for a full-screen reading experience.

• What it is: This is the central controller of the application. It's not just a component but the main page that brings everything together. • Its Job: It manages the application's state—knowing whether you're uploading, parsing, or viewing the result. It takes the file from FileUpload, sends it to the server for parsing, receives the result, and then passes that result to the DocumentViewer to be displayed. It orchestrates the entire workflow from start to finish. This directory contains all the foundational building blocks for the interface, provided by the shadcn/ui l ibrary. These are generic components like Button, Card, ScrollArea, and Tooltip that are styled and assembled to create the more complex components listed above. They ensure a consistent and professional look and feel throughout the application.

🔐 Privacy by Design: What Happens to Your Data One of the most important design principles behind DocuParse is stateless, secure, on-the-fly processing. Here's exactly what happens when you use the app: • In Your Browser: When you select a file, it’s read locally into your browser’s memory. Nothing is uploaded at this point. • For Processing Only: The file is then sent securely over HTTPS to LlamaParse, purely for parsing. According to their policies, they do not store your data permanently. • Back to Your Browser: The extracted structured text is returned and held only in your browser’s memory, shown to you in the viewer. • No Persistence: Once you close the tab or refresh the page, all document content is gone. DocuParse itself stores nothing. This design ensures your data remains private, transient, and under your control — with zero content stored on our servers.

💡 Who Is This For? • CTOs can deploy DocuParse to feed contract, invoice, or policy data directly into LLMs — no preprocessing pipelines, no data silos. • Legal and compliance teams can instantly find relevant clauses in thousands of documents, and export them securely for review or reporting. • Founders can extract customer insights from survey results and push them directly into product decision workflows — without hiring a data team.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages