This website is powered by a custom HTTP server written in C featuring
POSIX Compliance. 

MY TECH STACK

My core toolkit for building high-quality applications.

React Logo

Featured Projects

A selection of my work demonstrating skills in frontend, backend, and systems programming.

Multithreaded HTTP Server.

This Portfolio website is currently being served by this HTTP Server

Written in C for Linux.

Thread-per-connection concurrency model.

URI-based routing and static file serving.

Integrated with Next.js for dynamic content.

Lightweight and fast for low-level systems.

Currently deployed on AWS EC2.

  #include <arpa/inet.h>
  #include <sys/socket.h>
  #define PORT 8080
  int main() {
      int server_fd = socket(AF_INET, SOCK_STREAM, 0);
      address.sin_family = AF_INET;
      inet_pton(AF_INET, "127.0.0.1", &address.sin_addr);
      address.sin_port = htons(PORT);
      bind(server_fd, (struct sockaddr*)&address, sizeof(address));
      listen(server_fd, 3);
      int new_socket = accept(server_fd, (struct sockaddr*)&address, (socklen_t*)&addrlen);
      read(new_socket, buffer, 1024);
      char *response = "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nHello from C HTTP Server!\n";
      write(new_socket, response, strlen(response));
      close(new_socket);
      close(server_fd);
      return 0;
  }
  
  const express = require('express');
  const app = express();
  const PORT = 8080;
  let requestCount = 0;
  app.use((req, res, next) => { requestCount++; next(); });
  app.use(express.json());
  
  app.get('/', (req, res) => { res.send('Hello from Express!'); });
  app.post('/echo', (req, res) => { res.json(req.body); });
  app.get('/headers', (req, res) => { res.json(req.headers); });
  app.get('/env', (req, res) => { res.json(process.env); });
  app.use((req, res, next) => { res.status(404).send('Not Found'); });
  app.listen(PORT, () => {
    console.log(`Server listening on port ${PORT}`);
  });
  

Full Stack Uber Clone

Built with the MERN stack, integrating Socket.IO and Google Maps API for real-time location, dynamic routing, fare calculation, and advanced state management using Zustand

Code Ninja : Online
CompilerEditor

Monaco-based code editor/compiler with a full VS Code–like experience.

Compile & run in 10+ languages via Piston API (Node.js, Python, C++, Go, Rust, etc.).

Google, GitHub, LinkedIn & social login powered by Clerk for secure authentication.

Real-time collaboration & snippet storage with Convex serverless database.

Integrated AI assistant for contextual code suggestions and chat.

Loading...
Multithreaded Load Balancer in C

High-performance Layer 7 Load Balancer written in C with POSIX multithreading.

Implements round-robin scheduling to distribute load across backend servers.

Supports dynamic DNS resolution and real-time backend switching.

Backends host interactive Three.js 3D websites for immersive client experiences.

  • Loading...
  • Loading...
  • Specialist

    Problems Solved0
  • Loading...
Contact

Get In Touch

If you would like to connect or have any questions, please feel free to reach out to me by email at harshpanchal522@gmail.com. I look forward to hearing from you.