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

quillbot-api

v0.0.3

Published

Get paraphrased text

Downloads

17

Readme

Quillbot

Quillbot is an AI article rewriter/spinner. This script uses Chrome Headless Browser via Puppeteer to interact with Quillbot to rephrase (plagiarise) text. Quillbot no longer has an API, so this is the slow scraping method using Puppeteer.

Note that this is a learning project for myself, and I'm a hobbyist programmer.

Features

Supported Features:

  • Text Paraphrasing: Rephrase or rewrite articles or sentences using Quillbot's basic free paraphrasing capabilities.
  • Batch Processing: Break down and paraphrase texts longer than the word limit by processing them in parts.
  • Language Selection
  • Modes: Modes are settings that change what the AI focuses on in your text. Some modes make more changes than others or influence length. You can read more about modes here.
  • Synonym Slider: The Synonym Slider directly affects how many words are replaced with synonyms in your text. You can adjust the slider to have more or fewer words changed. You can read more about the Synonym Slider here.
  • Headless Browser Automation: Automated text input and extraction using Puppeteer with a Chrome Headless Browser.

Not Supported:

  • User Login: The script does not support user authentication or logging into a Quillbot account.
  • Premium Features: Access to premium features of Quillbot is not available. The script only uses the free services offered by Quillbot.
  • Options to edit output (colors indicate a variety of changes and selections that relate to other controls such as rephrasing and thesaurus, synonyms, etc.)
  • Various other settings (gear icon on right), such as the English dialect, contraction usage, and paraphrasing of quotations
  • Detect when you've reached your daily limit.

Install

git clone https://github.com/Luen/quillbot-api
npm install

Options / Parameters

headless: false, // default 'new'
language: 'English (AU)', // default 'English (UK)'
mode: 'Fluency', // default 'Standard'
synonymsLevel: '0', // default '50' other options are '0' or '100' (slider percentage)

Run example script

node example

Example code

const { quillbot } = require('./index');

(async () => {
  const paragraph = 'TCP is a connection-oriented protocol, which means that the end-to-end communications is set up using handshaking. Once the connection is set up, user data may be sent bi-directionally over the connection. Compared to TCP, UDP is a simpler message based connectionless protocol, which means that the end-to-end connection is not dedicated and information is transmitted in one direction from the source to its destination without verifying the readiness or state of the receiver. TCP controls message acknowledgment, retransmission and timeout. TCP makes multiple attempts to deliver messages that get lost along the way, In TCP therefore, there is no missing data, and if ever there are multiple timeouts, the connection is dropped. When a UDP message is sent there is no guarantee that the message it will reach its destination; it could get lost along the way.';
  const paraphrased = await quillbot(paragraph);

  console.log('Before:');
  console.log(paragraph);
  console.log('Paraphrased:');
  console.log(paraphrased);
})();

Note

This script is primarily for educational and experimental purposes. Please keep in mind the ethical implications and Quillbot's terms of service when using this script for paraphrasing content.

Contributing

Contributions are welcome. Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.