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

@lxgicstudios/meta-tags

v1.1.0

Published

Generate perfect meta tags for SEO. HTML meta, Open Graph, Twitter Cards, JSON-LD schema markup. Copy-paste ready.

Downloads

85

Readme

meta-tags

Generate perfect meta tags for SEO. HTML meta, Open Graph, Twitter Cards, JSON-LD schema. Copy-paste ready.

Installation

npm install -g @lxgicstudios/meta-tags

Or use directly:

npx @lxgicstudios/meta-tags -t "My Page" -d "Description"

Usage

# Basic usage
meta-tags -t "My Website" -d "Welcome to my site" -u "https://example.com"

# With image for social sharing
meta-tags -t "Blog Post" -d "An amazing article" -i "https://example.com/image.jpg"

# Article type with author
meta-tags -t "How to Code" --type article --author "John Doe" --published "2024-01-15"

# From config file
meta-tags --config seo.json -o head.html

Options

| Option | Description | |--------|-------------| | -t, --title | Page title (required) | | -d, --description | Meta description | | -u, --url | Canonical URL | | -i, --image | OG/Twitter image URL | | -k, --keywords | Keywords (comma-separated) | | --site-name | Website name | | --twitter | Twitter handle | | --type | OG type: website, article, product | | --author | Article author | | --published | Published date (ISO format) | | --robots | Robots directive | | --locale | Locale (e.g., en_US) |

Output Formats

# HTML (default)
meta-tags -t "Title" -d "Description"

# JSON
meta-tags -t "Title" --format json

# React (Helmet/Next.js)
meta-tags -t "Title" --format react

# Vue (useHead)
meta-tags -t "Title" --format vue

Config File

Create seo.json:

{
  "title": "My Website - Home",
  "description": "Welcome to my website. We do amazing things.",
  "url": "https://example.com",
  "image": "https://example.com/og-image.jpg",
  "siteName": "My Website",
  "twitter": "@myhandle",
  "type": "website",
  "locale": "en_US"
}

Then run:

meta-tags --config seo.json

Example Output

<!-- Primary Meta Tags -->
<title>My Website - Home</title>
<meta name="title" content="My Website - Home">
<meta name="description" content="Welcome to my website.">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://example.com">

<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:title" content="My Website - Home">
<meta property="og:description" content="Welcome to my website.">
<meta property="og:url" content="https://example.com">
<meta property="og:image" content="https://example.com/og-image.jpg">

<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="My Website - Home">
<meta property="twitter:description" content="Welcome to my website.">
<meta property="twitter:image" content="https://example.com/og-image.jpg">

<!-- Schema.org JSON-LD -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "My Website - Home",
  "description": "Welcome to my website.",
  "url": "https://example.com"
}
</script>

Programmatic Usage

const { generate } = require('@lxgicstudios/meta-tags');

const html = generate({
  title: 'My Page',
  description: 'Page description',
  url: 'https://example.com',
  image: 'https://example.com/image.jpg'
});

console.log(html);

2026 SEO Features

AI Search Optimization

Make your content AI-crawler friendly (GPTBot, Claude-Web, CCBot):

meta-tags -t "My Page" -d "Description" --ai-friendly

FAQ Schema (High value for AI citations)

# Create faq.json
[
  {"question": "What is X?", "answer": "X is..."},
  {"question": "How does Y work?", "answer": "Y works by..."}
]

meta-tags -t "FAQ Page" --type faq --faq faq.json

HowTo Schema

# Create steps.json
[
  {"name": "Step 1", "text": "First, do this..."},
  {"name": "Step 2", "text": "Then, do that..."}
]

meta-tags -t "How to Build X" --type howto --howto steps.json

Product Schema with Ratings

meta-tags -t "My Product" --type product --price 29.99 --currency USD --rating 4.5 --rating-count 123

Breadcrumb Navigation

# Create breadcrumbs.json
[
  {"name": "Home", "url": "https://example.com"},
  {"name": "Products", "url": "https://example.com/products"},
  {"name": "Widget", "url": "https://example.com/products/widget"}
]

meta-tags -t "Widget" --breadcrumbs breadcrumbs.json

Speakable Specification (Voice/AI assistants)

meta-tags -t "News Article" --type article --speakable

Why meta-tags?

  • Complete - All essential tags in one command
  • 2026 Ready - AI search optimization, FAQ/HowTo schemas, Speakable
  • Framework support - React, Vue, plain HTML
  • JSON-LD included - Schema.org markup for rich results
  • Copy-paste ready - Just paste into your <head>

Built by LXGIC Studios

GitHub: https://github.com/lxgicstudios Twitter: https://x.com/lxgicstudios

Want more free tools like this? We have 100+ on our GitHub: github.com/lxgicstudios