How dev-aryansingh/portfolio-website works
1. Repository shape
- This is a small full-stack portfolio site with a single-page frontend and a lightweight Node.js/Express backend.
- The repo is intentionally flat: index.html, styles.css, and script.js for the client; server.js for the server; package.json/package-lock.json for Node dependencies.
2. Frontend presentation layer
- index.html is the main document and likely contains the entire portfolio UI: hero/about/project/contact sections, navigation, and the contact form.
- styles.css provides the visual design, including the responsive layout and the “cyber-themed” look described in the README.
3. Client-side behavior
- script.js handles interactivity in the browser.
- Based on the README, this includes smooth scrolling, project card interactions, and real-time form validation before submission.
4. Contact form as the key integration boundary
- The most important data flow is the contact form.
- Browser input is validated on the client, then sent to the backend API, which forwards the message for email delivery.
5. Backend service
- server.js is the only backend source file, so the server is likely a compact Express app rather than a multi-module API.
- Its main role is to accept contact form submissions and coordinate email sending.
6. Email delivery subsystem
- The README explicitly says the site uses Node.js + Nodemailer.
- That makes email sending the primary server-side external integration, with Gmail/App Password authentication mentioned as the delivery method.
7. Security and configuration boundary
- Sensitive credentials are expected to live in environment variables, not in source control.
- .gitignore is part of that boundary, protecting .env and other local-only artifacts from being committed.
8. Static asset delivery
- The site appears to be mostly static content with dynamic contact handling.
- The server may also serve the frontend files and any local assets referenced by the page, keeping deployment simple.
9. Technology stack roles
- HTML/CSS/vanilla JavaScript handle all user-facing presentation and interaction.
- Node.js + Express handle HTTP requests and backend routing.
- Nodemailer bridges the backend to the external email provider.
10. Runtime and deployment model
- This is a Node-based app, so the server runs in a Node runtime rather than a browser-only or framework-heavy environment.
- The architecture is minimal: one server process, one browser client, and one external email service.
11. Important architecture boundary for a diagram
- The clearest boundary is: User Browser → Static Portfolio UI → Contact Form API → Nodemailer → Email Provider.
- Everything else is supporting structure around that flow.
12. What is not present
- There is no evidence of a database, authentication system, CMS, or multi-service backend.
- The architecture is therefore simple and state-light, with no persistent application data layer in the repo.
Main entry points: server.js Express App · README.md README · index.html Portfolio UI · script.js UI Logic
Components 12
Client
Browser-side portfolio UI and interactions
- Portfolio UI · Main single-page document with portfolio sections and contact form
index.html - Visual Design · Responsive styling and cyber-themed presentation
styles.css - UI Logic · Smooth scrolling, card interactions, and form validation
script.js
Server
Node.js contact API and email delivery
- Express App · HTTP server that accepts contact submissions
server.js - Contact API · Backend boundary for form submission and validation handling
- Nodemailer · Sends messages through the configured mail provider
Support
Project metadata and local configuration
- Node Config · Declares runtime scripts and dependencies
package.json - Lockfile · Pins dependency versions for Node installs
package-lock.json - Ignore Rules · Excludes local-only files such as environment secrets
.gitignore - README · Describes the stack, setup, and contact flow
README.md
Other components
- Browser · End user viewing and using the portfolio
- Email Service · External mailbox delivery target such as Gmail SMTP
Connections 14
- Browser → Portfolio UI: loads · User opens the portfolio page
- Browser → Visual Design: applies · Browser renders the site styling
- Browser → UI Logic: runs · Browser executes client-side interaction logic
- Portfolio UI → UI Logic: uses · The page wires up client behavior
- UI Logic → Contact API: submits · Validated form data is sent to the backend
- Contact API → Express App: implements · The Express server hosts the contact handling logic
- Express App → Nodemailer: calls · Server delegates message delivery to Nodemailer
- Nodemailer → Email Service: delivers · Outbound email is sent through the external provider
- Express App → Node Config: depends on · Runtime dependencies and scripts are declared in npm metadata
- Node Config → Lockfile: pins · Lockfile captures resolved dependency versions
- Ignore Rules → Express App: protects · Local secrets and environment files stay out of source control
- README → Portfolio UI: describes · Documentation explains the portfolio frontend structure
- README → Express App: describes · Documentation explains the Node/Express backend
- README → Nodemailer: describes · Documentation explains the Nodemailer email flow