Dobby File Summarizer is a web application that allows users to upload documents (PDF, DOCX, or TXT) and receive concise summaries, either as a paragraph or as bullet points. The summarization is powered by an AI model via the Fireworks API.
- File Upload: Supports PDF, DOCX, and plain text files.
- Summarization Modes: Choose between a single-paragraph summary or bullet-point summary.
- Modern UI: Responsive and clean interface.
- AI-Powered: Uses the Fireworks AI API for high-quality document summarization.
summarizer-app/
│
├── package.json
├── backend/
│ ├── .env
│ ├── package.json
│ └── server.js
└── frontend/
├── app.js
├── index.html
├── logor.svg
└── style.css
- backend/: Node.js Express server that handles summarization requests and communicates with the Fireworks API.
- frontend/: Static files for the web interface (HTML, CSS, JS, and assets).
git clone https://github.com/DOREGO-dev/sentient-summarizer
cd dcd backend
npm install- The backend uses a Fireworks AI API key.
- By default, the key is in
backend/server.jsasAPI_KEY. - As this is for testing,you can find it in the server.js but for security and future purpose.It is recommended to hardoded it in server.js as 'API_KEY' while it is being stored in .env
npm start- The server will run on port
5000by default.
- The backend serves the frontend automatically.
- Visit http://localhost:5000 in your browser.
- Upload a file: Click the file input and select a PDF, DOCX, or TXT file.
- Choose summary mode: Select either "One Paragraph" or "Bullet Points".
- Click "Summarize": The summary will appear below.
frontend/index.html: Main HTML page, includes file input, mode selector, and output area.frontend/app.js: Handles file reading (PDF, DOCX, TXT), sends text to backend, and displays summary.frontend/style.css: Responsive and modern styling.backend/server.js: Express server, serves frontend, handles/summarizePOST endpoint, communicates with Fireworks API.backend/package.json: Backend dependencies and scripts.package.json: Root-level dependencies (not used for backend).
- PDF: Uses PDF.js in the browser to extract text.
- DOCX: Uses Mammoth.js (must be included if you want DOCX support).
- TXT: Plain text files.
- API Model: The model used is set in
backend/server.jsasMODEL. You can change this to another Fireworks model if desired. - Frontend Assets: Replace
logor.svgwith your own logo if needed.
- CORS Issues: The backend enables CORS for development.
- API Errors: Check the backend console for error messages if summarization fails.
- File Type Not Supported: Only PDF, DOCX, and TXT are supported.
**Made by Dee Figure using Express, Fireworks AI.