Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

seo-ai

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seo-ai

Command-line tool to generate SEO metadata and HTML meta tags using AI models

latest
Source
npmnpm
Version
0.7.1
Version published
Maintainers
1
Created
Source

seo-ai

A Command-line tool that generates SEO metadata and HTML meta tags using AI models.

Current version Release License Workflow

Requirements

  • Node >= 18
  • pnpm >= 8

Usage

You can use one of the following AI providers to generate SEO data:

OPENAI_API_KEY

npx seo-ai config set OPENAI_API_KEY=<your-key>

MISTRAL_API_KEY

npx seo-ai config set MISTRAL_API_KEY=<your-key>

GROQ_API_KEY

  • Go to the Groq Console and generate your API key.
  • Set the key:
npx seo-ai config set GROQ_API_KEY=<your-key>

Run

npx seo-ai@latest generate

CLI

[!NOTE]
When running the CLI on a Next.js projects, it will create a medatata object according to the Next.js docs, if you still want to generate HTML meta tags, use the --html or -h option.

npx seo-ai [options] [command]

Options:
-v, --version                 Outputs the seo-ai version.  

Commands:
generate [tags] [options]     Generates an object metadata or HTML meta tags
config [arguments]            Sets API Keys configuration

Generate

npx seo-ai@latest generate [tags] [options]

Arguments:
[tags]       SEO tags to be generated. See [Available Tags](#available-tags)

Options:
-h, --html   Generates HTML meta tags

## Example:
npx seo-ai generate core icons creator

Config

npx seo-ai config [arguments]

Arguments:
set [arguments]    Sets an API Key. Available providers: OPENAI_API_KEY and MISTRAL_API_KEY
get [arguments]    Retrieves an API Key using `mistral` or `openai`
clear              Clears all API Keys

# Example:
npx seo-ai config set OPENAI_API_KEY=<your-key>
npx seo-ai config get openai
npx seo-ai config clear

Available Tags

CommandDescription
coreGenerate meta tags: title, description, keywords, openGraph, twitter, robots, category, generator,applicationName
iconsDefine icon meta tags. It uses DALL-E 2, so you'll be prompted for a OpenAI Key
metadataBaseSet the base URL for metadata relative paths. Available only for Next.js projects
authorsList authors of the content
creatorIdentify the creator of the content
publisherSpecify the publisher of the content
classificationProvide the classification of the content
bookmarksDefine bookmarks for the web application
assetsSpecify the assets related to the content
archivesList archives related to the content
referrerThe referrer setting for the document
alternatesThe canonical and alternate URLs for the document
formatDetectionIndicates if devices should try to interpret various formats and make actionable links out of them
manifestSpecify a link to the web application's manifest file
verificationThe common verification tokens for the document
viewportThe viewport setting for the document

Stack

  • Vercel AI SDK: Tools to build AI-powered products.
  • tsup: A TypeScript-focused module bundler.
  • chalk: Chalk is a library for styling terminal text with color and formatting options, making console output more visually appealing and readable.
  • commander: Commander is a feature-rich library for creating command-line interfaces (CLIs) in Node.js.
  • @clack/prompts: Prompts is a library that creates elegant terminal spinners and loading indicators.
  • zod: TypeScript-first schema validation with static type inference.

Run Locally

1.Clone the seo-ai repository:

git clone https://github.com/xavimondev/seo-ai

2.Install the dependencies:

pnpm install

3.Start the development:

pnpm dev

Contributors

License

MIT.

Keywords

ai

FAQs

Package last updated on 09 Aug 2024

Did you know?

Socket

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.

Install

Related posts