Skip to content

Open-Core-Lab/smart-readme-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Smart README Generator

License: MIT


🌟 What is Smart README Generator?

Smart README Generator is an AI-powered tool to help developers create professional, interactive, and visually appealing README.md files for their GitHub repositories.
It fetches GitHub user data and project repositories, then uses AI to suggest content for sections like Bio, Skills, Projects, and Badges, allowing users to generate a complete README with minimal effort.

This project is open-source, supports dynamic templates, dark/light themes, and allows real-time preview and AI suggestions.

The goal is to make contributing to GitHub easier, saving developers time while ensuring READMEs are consistent, attractive, and informative.


⚑ Features

  • Fetch GitHub profile and repositories automatically
  • Generate full README using AI (OpenAI GPT integration)
  • AI-assisted suggestions per section (Bio, Skills, Projects)
  • Multiple pre-defined and customizable templates
  • Live Markdown preview
  • Copy to clipboard and download as .md
  • Dark/Light theme support with auto-detection and toggle
  • Undo/Redo editing functionality
  • Loading and error states for smooth UX
  • Rate-limit handling for GitHub and AI APIs
  • Mobile-friendly, responsive UI

πŸ—οΈ Tech Stack

Frontend:

  • Next.js (CSR-focused for dynamic interaction)
  • React.js
  • Tailwind CSS
  • react-markdown for live preview

Backend:

  • Node.js / Express (MVP server for README generation)
  • GitHub API integration
  • AI integration (OpenAI GPT or similar)
  • Caching for API responses

DevOps & Quality:

  • GitHub Actions (CI/CD)
  • Husky & lint-staged (pre-commit hooks)
  • ESLint & Prettier (code quality & formatting)

Folder Structure

The following folder structure is an example of how the Smart README Generator project can be organized.
It separates the frontend, backend, templates, and documentation to make the project easy to navigate, maintain, and contribute to.

  • backend/ – Contains the Node.js/Express server, API routes, services, and backend tests.
  • frontend/ – Contains the Next.js frontend with Redux state management, reusable components, templates, and styles.
  • templates/ – Stores Markdown README templates that users can select when generating a README.
  • docs/ – Project documentation and additional guides.
  • scripts/ – Utility scripts for build, deployment, or other automation tasks.

⚠️ Note: This folder structure is an example. You can adjust it depending on your needs and scale of the project.

smart-readme-generator/
backend/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ config/             # Environment & DB setup
β”‚   β”‚   └── env.ts
β”‚   β”œβ”€β”€ controllers/        # Request handling (req, res)
β”‚   β”‚   β”œβ”€β”€ githubController.ts
β”‚   β”‚   └── aiController.ts
β”‚   β”œβ”€β”€ services/           # Business logic & API calls (Octokit, OpenAI)
β”‚   β”‚   β”œβ”€β”€ githubService.ts
β”‚   β”‚   └── aiService.ts
β”‚   β”œβ”€β”€ routes/             # Route definitions
β”‚   β”‚   └── index.ts
β”‚   β”œβ”€β”€ utils/              # Pure helper functions
β”‚   β”‚   β”œβ”€β”€ logger.ts
β”‚   β”‚   └── validator.ts
β”‚   β”œβ”€β”€ app.ts              # Express setup & Middleware
β”‚   └── index.ts            # Entry point (Server listener)
β”œβ”€β”€ tests/                  # Unit and Integration tests
β”œβ”€β”€ .env
β”œβ”€β”€ .env.example
β”œβ”€β”€ package.json
└── tsconfig.json
β”‚
β”‚
β”œβ”€ frontend/                   # Next.js frontend (CSR)
β”‚  β”œβ”€ app/
β”‚  β”‚  β”œβ”€ components/           # Reusable UI components
β”‚  β”‚  β”‚  β”œβ”€ Button.tsx
β”‚  β”‚  β”‚  β”œβ”€ Editor.tsx
β”‚  β”‚  β”‚  β”œβ”€ TemplateCard.tsx
β”‚  β”‚  β”œβ”€ pages/                # Next.js pages
β”‚  β”‚  β”‚  β”œβ”€ index.tsx
β”‚  β”‚  β”‚  β”œβ”€ _app.tsx
β”‚  β”‚  β”œβ”€ hooks/                # Custom React hooks
β”‚  β”‚  β”‚  β”œβ”€ useAI.ts
β”‚  β”‚  β”‚  β”œβ”€ useGitHub.ts
β”‚  β”‚  β”œβ”€ services/             # API clients
β”‚  β”‚  β”‚  β”œβ”€ githubClient.ts
β”‚  β”‚  β”‚  β”œβ”€ aiClient.ts
β”‚  β”‚  β”œβ”€ store/                # Redux store & slices
β”‚  β”‚  β”‚  β”œβ”€ index.ts           # Configure store
β”‚  β”‚  β”‚  β”œβ”€ themeSlice.ts
β”‚  β”‚  β”‚  β”œβ”€ editorSlice.ts
β”‚  β”‚  β”‚  β”œβ”€ templateSlice.ts
β”‚  β”‚  β”œβ”€ styles/               # Global CSS
β”‚  β”‚  β”‚  └─ globals.css
β”‚  β”‚  β”œβ”€ types/                # TypeScript types
β”‚  β”‚  └─ utils/                # Helpers
β”‚  β”œβ”€ public/                  # Static assets (icons, images)
β”‚  β”œβ”€ templates/               # README templates
β”‚  β”‚  β”œβ”€ template1.md
β”‚  β”‚  β”œβ”€ template2.md
β”‚  β”‚  └─ ...
β”‚  β”œβ”€ tests/                   # Frontend unit/integration tests
β”‚  β”œβ”€ package.json
β”‚  └─ tailwind.config.js       # Tailwind config
β”œβ”€ docs/                       # Project documentation
β”œβ”€ scripts/                    # Build/deployment/util scripts
β”œβ”€ .gitignore
β”œβ”€ package.json
β”œβ”€ LICENSE
β”œβ”€ CONTRIBUTING.md
└─ README.md

πŸ”§ Installation & Setup

Frontend

git clone https://github.com/Open-Core-Lab/smart-readme-generator.git
cd smart-readme-generator/frontend
npm install
npm run dev

Backend

cd smart-readme-generator/backend
npm install
cp .env.example .env
# Add GitHub API token and OpenAI API key
npm run dev

🌱 Contributors


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details. Β© Madhusha Prasad

About

Generate beautiful, customizable GitHub profile README files instantly using your username πŸš€

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors