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 🙏

© 2026 – Pkg Stats / Ryan Hefner

textcortex-typescript

v1.0.0

Published

Generate product descriptions, blogs, ads and more using GPT architecture with a single request to TextCortex API a.k.a HemingwAI

Readme

TextCortex - HemingwAI alt text

Generate product descriptions, blogs, ads and more using GPT architecture with a single request to TextCortex API a.k.a HemingwAI

How To Generate Content using TextCortex Hemingwai:

  1. Signup at https://textcortex.com
  2. Sign-in and click on account on top right.
  3. Go to API Key section and copy your key.
  4. Install textcortex package: npm install textcortex-typescript
  5. Enter your API Key to hemingwai
  6. Generate copy text with a single line of code!

Here is an example request to Hemingwai for generating Product Descriptions:

import TextCortex from 'textcortex-typescript';

// Create the hemingwai object and enter your API Key
const hemingwai = TextCortex('YOUR_API_KEY');

// Generate Product Descriptions using Hemingwai
const productDescription = hemingwai.generateProductDescription({
  product_title: 'Black Leather Backpack Bag',
  product_category: ['Shoes & Bags', 'Women'],
  product_brand: 'Cortexian',
  product_features: ['Color: Black', 'Material: Faux Leather'],
  source_language: 'en',
  character_count: 400,
  creativity: 0.7,
  n_gen: 2,
};

Response:

[
  {
    "generated_text": " The Cortexians collection of shoes and bags are designed with a focus on comfort, style, quality and function. These products are made for the modern woman who wants to look stylish yet still feel comfortable in their footwear. With fashionable colors and designs that will make any outfit pop, Cortexian is sure to be your favorite shoe brand!",
    "rank": 0.9652,
    "text_length": 345,
    "word_frequency": [],
    "word_count": 58
  },
  {
    "generated_text": " The Cortexian is a classic backpack. It features the same style that has been popular for years with its unique design and functionality. This item comes in black color.",
    "rank": 0.9176,
    "text_length": 170,
    "word_frequency": [],
    "word_count": 29
  }
]

What kind of texts are possible to generate?

Currently we support the following methods for generating copy text like the following:

// Generate Blog Articles:
hemingwai.generateBlog;

// Autocomplete the rest using Hemingwai
hemingwai.generate;

// Generate Ad copies using Hemingwai
hemingwai.generateAds;

// Generate Email Body using Hemingwai
hemingwai.generateEmailBody;

// Generate Email Subject using Hemingwai
hemingwai.generateEmailSubject;

// Generate Product Description using Hemingwai
hemingwai.generateProductDescription;

Text Generation Variables

There are some variables that you need to send before making a request to Hemingwai.

Here is a brief summary of what those variables:

prompt: Prompting the HemingwAI to start writing on a specific subject

creativity: Floating number between 0-1. 0 being the lowest creativity and 1 being the highest. Default is 0.7

character_length: Integer which defines the maximum amount of characters that can be produced by the HemingwAI

source_language: Language code of the source language of the written prompt. for example 'en' for English and 'de' for German.
We support 72 languages. If you don't know the language code you can also use 'auto' for this field to automatically sense the input language.

parameters: Used for setting the tone of the generated copy text. It can be basically anything but please keep it plausible :)

Examples: For example while generating ads, you can add your target segment as an option.
See examples.ts for examples.

Still have questions?

You can have a look at the HemingwAI's documentation on TextCortex website

Or talk to us at the TextCortex Dev Community on slack

Maintainer/Creator

TextCortex Team (https://textcortex.com)

License

MIT