
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This project provides a command-line interface (CLI) tool that leverages Google's Gemini AI to automatically generate comprehensive README.md files for your projects. By analyzing your local project files, it intelligently crafts a structured and professional README that covers essential sections like project title, description, tech stack, features, installation, usage, folder structure, contribution guidelines, and licensing.
gemini-2.5-flash) to generate detailed README.md content.node_modules, .git, dist, and build during analysis.README.md includes all standard sections expected in a professional project documentation.@google/generative-ai: Official Node.js SDK for interacting with the Gemini API.dotenv: For loading environment variables from a .env file.To set up and run this project locally, follow these steps:
Clone the repository:
git clone https://github.com/your-username/ai-readme-gen.git
cd ai-readme-gen
Install dependencies:
npm install
Configure API Key:
Obtain a Google Gemini API key from the Google AI Studio.
Create a .env file in the project root directory and add your API key:
GEMINI_API_KEY=YOUR_GEMINI_API_KEY_HERE
Navigate to the root directory of the project you want to generate a README.md for, then run the index.js script:
node /path/to/ai-readme-gen/index.js
Alternatively, you can place this tool in your global PATH or create a symbolic link for easier access.
The script will analyze your project files and create a README.md in the current directory.
To see a list of available Gemini models that you could potentially use with the API, run the list-models.js script:
node /path/to/ai-readme-gen/list-models.js
.
├── .env # Environment variables (e.g., GEMINI_API_KEY)
├── index.js # Main script for generating READMEs
├── list-models.js # Utility script to list available Gemini models
├── package.json # Project metadata and dependencies
├── package-lock.json # Tracks exact dependency versions
└── README.md # This file (generated by the tool itself or manually written)
As a command-line interface (CLI) tool, this project does not have graphical user interface screenshots. Below is an example of the typical output when running the index.js script:
AI README Generator (Gemini)
Analyzing code with Gemini...
README.md created successfully
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
git clone https://github.com/your-username/ai-readme-gen.git
cd ai-readme-gen
git checkout -b feature/your-feature-name
git commit -m "feat: Add new awesome feature"
git push origin feature/your-feature-name
This project is licensed under the ISC License. See the LICENSE file for more details.
FAQs
AI-powered README generator using Gemini
We found that readmai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.