Inspiration

I am a Software Engineering student, and my teachers often ask us to copy and paste the code we practice into a Word document and submit it as an assignment.

The actual practice is useful, but manually copying dozens of code files, organizing them, and formatting everything in a DOCX file is a very time-consuming task.

As Software Engineering students, we already spend enough time writing and debugging code. I thought:

Why not automate this repetitive part?

That idea led to GitHub to DOCX — a web application that takes a GitHub repository or folder and automatically converts its source code into professionally organized Word documents.

What it does

GitHub to DOCX allows users to provide a GitHub repository or folder URL and automatically generate DOCX documents from the code inside it.

Key Features

  • 📁 Convert GitHub repositories and folders into DOCX documents
  • 📄 Generate separate Word documents for repository folders
  • 🔒 Support private GitHub repositories using access tokens
  • 🎯 Select specific file extensions to include
  • 📊 Track conversion progress in real time
  • 💾 Download generated DOCX files
  • 🎨 Generate professionally formatted code blocks
  • 📱 Modern and responsive user interface
  • 🐟 Interactive underwater-themed animations
  • 🖱️ Custom cursor effects and interactions

The goal is simple:

Practice your code on GitHub → provide the repository → get an organized Word document.

How we built it

GitHub to DOCX uses a React frontend and Python Flask backend.

The frontend handles the user interface, conversion form, progress tracking, results, animations, and interactive effects.

The backend communicates with the GitHub API, retrieves repository files, processes the source code, organizes the project structure, and uses python-docx to generate Word documents.

Tech Stack

Frontend

  • React 18
  • Framer Motion
  • Lucide React
  • CSS3

Backend

  • Python 3
  • Flask
  • python-docx
  • Requests

API

  • GitHub REST API

Architecture

User
  │
  ▼
React Frontend
  │
  │ HTTP Requests
  ▼
Flask Backend
  │
  ├── GitHub API
  │      │
  │      ▼
  │   Repository Files
  │
  └── python-docx
         │
         ▼
      DOCX Files
         │
         ▼
      Download

We also wanted the application to feel different from a typical developer utility, so we created an underwater-inspired interface with animated fish, bubbles, seaweed, light rays, and interactive cursor effects.

Challenges we ran into

One of our biggest challenges was handling GitHub repositories with different folder structures and multiple types of source-code files.

We needed to make the application understand the repository structure, identify the required files, organize them correctly, and generate readable DOCX documents without losing the original project organization.

Another challenge was implementing real-time conversion progress. Instead of making users stare at a loading screen, we wanted them to know what the application was currently processing.

Supporting private repositories was another challenge because the application needed to properly handle GitHub authentication through access tokens.

On the frontend, creating smooth animations while keeping the application responsive and usable also required careful implementation.

Accomplishments that we're proud of

We are proud that we turned a simple and repetitive student problem into a working full-stack application.

What we accomplished

  • Successfully converted GitHub repositories into DOCX files
  • Created separate documents based on repository folders
  • Added support for private GitHub repositories
  • Implemented real-time conversion progress
  • Created professionally formatted code documents
  • Built a modern and responsive React interface
  • Added custom cursor interactions and animations
  • Created a unique underwater-themed UI
  • Connected a React frontend with a Python Flask backend
  • Integrated the GitHub API for repository processing

Most importantly, the project solves a real problem we personally experience as students.

What we learned

This project gave us practical experience beyond simply writing code.

We learned how to:

  • Work with the GitHub API
  • Process different repository structures
  • Handle multiple source-code file types
  • Generate Word documents programmatically
  • Connect a React frontend with a Flask backend
  • Implement API communication
  • Handle authentication and private repositories
  • Track long-running operations
  • Design interactive frontend animations
  • Build software around an actual user problem

The biggest lesson was that good software doesn't always need to solve a huge problem.

Sometimes, automating a small and annoying task can make a significant difference.

What's next for GitHub to DOCX

GitHub to DOCX is just the beginning. We want to make the application more powerful and useful for both students and developers.

Future Plans

  • 📑 Support additional formats such as PDF
  • 🎨 Add customizable DOCX templates
  • 💻 Improve syntax highlighting for different programming languages
  • ⚙️ Provide more control over document formatting
  • 📖 Integrate repository README files
  • 🤖 Add automatic project documentation
  • 🔐 Add GitHub account authentication
  • 📦 Support batch repository conversion
  • ⚡ Improve conversion speed and scalability
  • ☁️ Deploy the application as a publicly accessible web service

Our long-term goal is to evolve GitHub to DOCX from a simple code-conversion utility into a complete developer documentation assistant.

GitHub for your code. DOCX for your submission. One tool to connect them.

Built With

Share this project:

Updates

Submission history