npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bulkai

v1.0.3

Published

BulkAI is a powerful Node.js CLI tool designed to automate the processing of markdown and text files using OpenAI's GPT-4.

Downloads

16

Readme

BulkAI: Revolutionize Your Markdown Processing with the Power of OpenAI

npm version License: MIT

Are you tired of manually processing large sets of markdown files, or struggling to find the time to enhance your content with the latest AI technology? BulkAI is here to change the game. With just a few simple commands, you can transform how you manage and optimize your markdown and text files, all while harnessing the incredible power of OpenAI’s GPT-4. Whether you're looking to rewrite entire websites, translate books, or simply batch-process content with custom formatting, BulkAI makes it easier than ever.

Don't wait—experience the difference BulkAI can make in your workflow today!

Usage

No installation required! You can run BulkAI directly using npx:

npx bulkai -i input-dir -o output-dir [options]

Example Command

npx bulkai -p prefix.md -s suffix.md -i ./input -o ./output -f -H -e .md,.txt

Command-Line Options

  • -p, --prefix-file <path>: Path to the file containing the prefix to add to each file (e.g., prefix.md).
  • -s, --suffix-file <path>: Path to the file containing the suffix to add to each file (e.g., suffix.md).
  • -i, --input-dir <path>: Path to the input directory containing files to process.
  • -o, --output-dir <path>: Path to the output directory where processed files will be saved.
  • -f, --force: Force overwrite of existing files in the output directory.
  • -H, --hugo: Enable Hugo front matter processing.
  • -e, --extensions <extensions>: Comma-separated list of file extensions to process (default: .md,.txt).

Introduction

BulkAI is a powerful Node.js CLI tool designed to automate the processing of markdown and text files using OpenAI's GPT-4. Ideal for developers, content creators, and technical writers, BulkAI allows you to efficiently batch-process your .md and .txt files, adding custom prefixes and suffixes, and even handling Hugo front matter with ease. Whether you're preparing large sets of documents, rewriting entire websites, or translating books, BulkAI simplifies the workflow and maximizes productivity.

Features

🔄 Batch Processing of Markdown and Text Files

BulkAI enables the bulk processing of .md and .txt files, making it perfect for large-scale content management tasks. Simply point the tool to your input directory, and it will recursively scan and process all specified file types.

🎨 Custom Prefix and Suffix Support

Easily add custom prefixes and suffixes to your content before sending it to the OpenAI API. This feature is particularly useful for standardizing content, adding disclaimers, or appending signatures. For example, you can use prefix.md and suffix.md files to define the content you want to prepend or append to your documents.

🚀 OpenAI GPT-4 Integration

Leverage the power of OpenAI's GPT-4 to enhance your content. BulkAI sends your processed content to the OpenAI API, where it can be improved, summarized, or expanded upon, based on your needs. This capability is powerful enough to rewrite entire websites or even translate entire books into different languages, making BulkAI a versatile tool for various content processing tasks.

🛠️ Hugo Front Matter Handling

With the --hugo option, BulkAI automatically detects and handles Hugo front matter in your markdown files. If the AI response contains Hugo front matter (denoted by ---), the tool will strip any content before the first occurrence, ensuring clean, ready-to-use output for your Hugo site.

📝 Flexible File Extension Support

BulkAI allows you to specify which file extensions to process using the --extensions option. By default, it processes .md and .txt files, but you can customize this to fit your specific needs.

💾 Force Overwrite Option

The --force option ensures that processed files are always written to the output directory, even if they already exist. This is useful when you need to re-process files without manually deleting old versions.

🔍 SEO-Friendly Content Processing

Designed with SEO in mind, BulkAI helps you optimize your markdown content for better search engine visibility. By integrating GPT-4's advanced language model, you can generate more engaging, keyword-rich content that resonates with both readers and search engines.

Benefits

  • Boost Productivity: Automate repetitive content enhancement tasks, saving time and reducing manual effort.
  • Enhance Content Quality: Use OpenAI's GPT-4 to improve the readability, engagement, and SEO performance of your markdown files.
  • Flexible and Customizable: Tailor the processing to your specific workflow needs, from file handling to content customization.

License

BulkAI is licensed under the MIT License.