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

@rivtor/seo

v1.1.0

Published

Production-ready SEO engine with auto-sitemap, dynamic OpenGraph, and zero-config blog

Readme

@rivtor/seo

Production-ready SEO engine with auto-sitemap, dynamic OpenGraph, and zero-config blog

Features

  • Auto-Sitemap: Automatically scans your Next.js app directory and generates sitemap.xml
  • Dynamic OpenGraph: Generate social preview images with custom branding
  • Zero-Config Blog: Pre-wired blog system for Markdown content
  • Robots.txt: Easy robots.txt generation
  • Structured Data: JSON-LD schema support for rich results

Installation

npm install @rivtor/seo
# or
yarn add @rivtor/seo
# or
pnpm add @rivtor/seo

Quick Start

1. Auto-Generated Sitemap

Create a API route at app/api/sitemap/route.ts:

import { seo } from '@rivtor/seo/server';

export async function GET() {
    const sitemap = await seo.generateSitemap({
        appDir: './app',
        baseUrl: 'https://yourdomain.com',
    });

    return new Response(sitemap, {
        headers: { 'Content-Type': 'application/xml' },
    });
}

2. SEO Meta Tags Component

import { VocoSEO } from '@rivtor/seo/react';

export default function Page() {
    return (
        <>
            <VocoSEO
                title="My Page Title"
                description="A compelling description for search engines"
                image="/og-image.jpg"
                type="website"
                keywords={['saas', 'seo', 'nextjs']}
            />
            <main>Your page content</main>
        </>
    );
}

3. Blog System

Create blog posts as Markdown files in content/blog/:

---
title: "Getting Started with Rivtor SEO"
description: "Learn how to use the Rivtor SEO package"
date: "2024-01-15"
tags: ['tutorial', 'seo']
author: "Your Name"
coverImage: "/blog-cover.jpg"
---

Your blog content here...

Render your blog:

import { VocoBlogList } from '@rivtor/seo/react';
import { seo } from '@rivtor/seo/server';

export default async function BlogPage() {
    const posts = await seo.getBlogPosts({
        contentPath: './content/blog',
        baseUrl: 'https://yourdomain.com',
    });

    return <VocoBlogList posts={posts} />;
}

API Reference

Server Functions

import { seo } from '@rivtor/seo/server';

// Generate sitemap.xml
await seo.generateSitemap({
    appDir: './app',
    baseUrl: 'https://example.com',
    outDir: './public', // optional
});

// Generate robots.txt
await seo.generateRobotsTxt({
    sitemap: 'https://example.com/sitemap.xml',
    disallow: ['/api/', '/admin/'],
});

// Get all blog posts
const posts = await seo.getBlogPosts({
    contentPath: './content/blog',
    baseUrl: 'https://example.com',
});

// Get single blog post
const post = await seo.getBlogPost('post-slug', config);

// Generate canonical URL
const url = seo.getCanonicalUrl('https://example.com', '/path');

// Generate JSON-LD structured data
const jsonLd = seo.generateStructuredData('Article', {
    headline: 'Title',
    author: 'Author',
});

React Components

VocoSEO

<VocoSEO
    title="Page Title"
    description="Page description"
    image="/og-image.jpg"
    type="website" // | 'article' | 'product'
    keywords={['tag1', 'tag2']}
    author="Author Name"
    twitterCard="summary_large_image"
    noIndex={false}
    canonical="https://example.com/page"
/>

JsonLd

<JsonLd
    type="Article"
    data={{
        headline: 'Article Title',
        author: { '@type': 'Person', name: 'Author' },
        datePublished: '2024-01-15',
    }}
/>

License

MIT


Made with ❤️ by Rivtor