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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@codepark-apps/seofaster-nextjs

v0.1.10

Published

SEO Faster API client for Next.js - fetch and display AI-generated SEO content

Downloads

1,047

Readme

@codepark-apps/seofaster-nextjs

Turn Keywords into Traffic-Driving Content

npm version License: MIT

🚀 seofaster.app

SEO Faster generates hundreds of SEO-optimized articles from your keywords using AI — in 19+ languages, with your brand voice.

This package lets you fetch and display that content on your Next.js website in minutes.

Get Started · Get API Key


Why SEO Faster?

  • Programmatic SEO at Scale — Generate 100s of articles from a keyword list
  • 19+ Languages — Reach global audiences with native-quality content
  • Your Brand Voice — AI learns your tone, style, and terminology
  • SEO-Optimized — Built-in scoring, meta tags, FAQs, and schema markup
  • One-Click Publishing — Push to WordPress, Webflow, Ghost, and more

Installation

npm install @codepark-apps/seofaster-nextjs

Quick Start

1. Create a client

// lib/seofaster.ts
import { createSEOFasterClient } from '@codepark-apps/seofaster-nextjs';

export const seoFaster = createSEOFasterClient({
  apiKey: process.env.SEOFASTER_SECRET_KEY!,
});

2. Fetch articles

// app/blog/page.tsx
import { seoFaster } from '@/lib/seofaster';

export default async function BlogPage() {
  const { articles } = await seoFaster.getArticles({ limit: 10 });

  return (
    <div>
      {articles.map((article) => (
        <a key={article._id} href={`/blog/${article.slug}`}>
          <h2>{article.title}</h2>
          <p>{article.metaDescription}</p>
        </a>
      ))}
    </div>
  );
}

3. Display single article

// app/blog/[slug]/page.tsx
import { seoFaster } from '@/lib/seofaster';
import { notFound } from 'next/navigation';

export default async function ArticlePage({
  params,
}: {
  params: { slug: string };
}) {
  const article = await seoFaster.getArticleBySlug(params.slug);

  if (!article) {
    notFound();
  }

  return (
    <article>
      <h1>{article.title}</h1>
      {/* Use content.html for full content with embedded images */}
      <div
        dangerouslySetInnerHTML={{
          __html: article.content.html || article.content.markdown,
        }}
      />
    </article>
  );
}

Tip: Always prefer content.html over content.markdown — HTML includes all section images and rich formatting.

API Reference

createSEOFasterClient(config)

Creates a new SEO Faster client.

const client = createSEOFasterClient({
  apiKey: 'cp_seof_sec_xxx', // Required: Your secret API key
  baseUrl: 'https://...', // Optional: Custom API URL
});

client.getArticles(options?)

Fetches a list of published articles.

const { articles, total, page, limit } = await client.getArticles({
  page: 1, // Page number (default: 1)
  limit: 10, // Articles per page (default: 10)
  locale: 'en', // Filter by locale (optional)
});

client.getArticleBySlug(slug, locale?)

Fetches a single article by its slug.

const article = await client.getArticleBySlug('my-article-slug');
// Returns null if not found

Types

interface ArticleContent {
  markdown: string; // Markdown content
  html?: string; // HTML content with embedded images (preferred)
}

interface Article {
  _id: string;
  title: string;
  slug: string;
  content: ArticleContent; // Use content.html for full rendering
  metaDescription?: string;
  featuredImage?: {
    url: string;
    alt?: string;
  };
  author?: {
    name: string;
    title?: string;
    photo?: { url: string; alt?: string };
  };
  faqs?: Array<{
    question: string;
    answer: string;
  }>;
  seoScore?: number;
  locale?: string;
  status: 'draft' | 'published';
  publishedAt?: string;
  createdAt: string;
  updatedAt: string;
}

Environment Variables

Add your secret API key to .env.local:

SEOFASTER_SECRET_KEY=cp_seof_sec_xxxxx

Note: Use secret keys (cp_seof_sec_*) for Next.js since it runs on the server. Public keys (cp_seof_pub_*) are for static sites where keys are exposed in the browser.

Get your API key from seofaster.app/api-keys.

License

MIT