How dhriti143/ai-text-summariser works
This is a browser-based text summarizer: users enter text, the frontend submits it to the Express API, the API requests a BART summary from Hugging Face, and the summary is returned for display. The server also serves the public assets. The README documents responsive styling; the HTML and stylesheet contents were not sampled, so their detailed wiring is not shown.
Main entry points: index.js Express API · script.js UI behavior · index.html Web page · stylesheet.css Responsive styles
Components 6
Web interface
- Web page
public/index.html - UI behavior
public/script.js - Responsive styles
public/stylesheet.css
API server
- Express API
index.js
Other components
- User
- Hugging Face BART
Connections 10
- User → Web page: enters text
- Express API → Web page: serves assets
- Express API → UI behavior: serves assets
- Express API → Responsive styles: serves assets
- Web page → UI behavior: runs interface
- UI behavior → Express API: posts text
- Express API → Hugging Face BART: requests summary
- Hugging Face BART → Express API: returns summary
- Express API → UI behavior: returns summary
- UI behavior → User: displays summary