QWriter is your AI editing companion, transforming text and code files into clear, engaging content. With a few simple commands, it enhances clarity and tone, whether it's technical documentation, code comments, or marketing copy. Say goodbye to muddled messages and let QWriter bring professional refinement to your work.
QWriter is an innovative Command Line Interface (CLI) tool designed to elevate your text and code files with professional polish. More than just another ChatGPT API wrapper, QWriter serves as your dedicated editing companion, transforming everyday writing into clear, engaging content. Whether you’re refining technical documentation, making code comments more understandable, or crafting captivating marketing copy, QWriter leverages the power of AI to enhance clarity, tone, and overall readability.\n\n### Why Choose QWriter?\nEven the best writers need a skilled editor, and QWriter ensures that your documents receive the meticulous attention they deserve. With its intuitive setup and versatile command options, you can easily tailor the editing process to meet your specific needs.\n\n### Getting Started\nStart using QWriter by setting up your OpenAI API key as an environment variable and initializing the configuration file with the qwriter init
command. QWriter will prompt you with straightforward questions to help define your objectives, topics, audience, and preferred tone.\n\n### Core Commands & Examples\n1. Initialize Configuration\n Use qwriter init
to create your config file and specify your content goals.\n bash\n npx qwriter init\n
\n\n2. Review and Rewrite Content\n With your configuration in place, utilize qwriter review
to refine files for various purposes, including: \n - Making marketing copy more engaging: \n bash\n npx qwriter review ./content/marketing-copy.txt -c ./qwriter.json\n
\n - Simplifying technical documentation: \n bash\n npx qwriter review ./docs/api-setup.md -c ./qwriter.json -x "Make it approachable for beginners"\n
\n - Enhancing code comments for clarity: \n bash\n npx qwriter review ./src/new-feature.js -c ./qwriter.json -x "Clarify comments without altering functionality"\n
\n\n### Demonstrated Transformations\nSample Marketing Copy \nBefore:\nplaintext\nOur new automated billing feature is designed to streamline your payment processes. It ensures accurate, timely invoicing and provides detailed reports. Manage your finances with ease and gain insights into your business performance.\n
\nAfter QWriter:\nplaintext\nMeet our new automated billing feature—built to simplify your payments! Now, you can automate invoicing, receive timely reports, and get clear insights into your business performance, so you can focus on what matters most.\n
\n\nTechnical Documentation \nBefore:\nmarkdown\n# API Setup Guide\n1. **Obtain API Key**: Go to the Developer Portal and generate an API key. This key will allow you to authenticate requests.\n2. **Install SDK**: Use the command `npm install our-sdk` to install the SDK for JavaScript.\n3. **Configure SDK**: Initialize the SDK by passing your API key into the configuration function.\n4. **Make Your First Request**: Use the SDK’s `fetchData` method to retrieve your data. Refer to the documentation for endpoint details.\n
\nAfter QWriter:\nmarkdown\n# API Setup Guide\n1. **Get Your API Key**: Visit our Developer Portal to generate an API key, which will authenticate your requests.\n2. **Install the SDK**: Run `npm install our-sdk` to add the SDK to your project.\n3. **Set Up the SDK**: Pass your API key to initialize the SDK.\n4. **Retrieve Data**: Call the SDK’s `fetchData` method to pull data from our API. See the documentation for details.\n
\n\n### Command Options\n- -c, --config <path>
: Specify a custom config file path (defaults to ./qwriter.json
).\n- -x, --context <context>
: Provide additional context to guide QWriter’s content improvements (e.g., "tailor to non-technical readers").\n\nQWriter is open to contributions, and we welcome fresh ideas and enhancements. Your documents and code files deserve the insightful touch of QWriter—your friendly, AI-powered editing assistant!