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

@onlinefreecv/seo

v0.1.3

Published

SEO toolkit for OnlineFreeCV – shared utilities for titles, meta tags, canonicals, and JSON-LD across all templates.

Downloads

15

Readme

@onlinefreecv/seo

Shared SEO toolkit for OnlineFreeCV – helpers for titles, meta tags, canonicals, JSON-LD, and template mappers.

Install

npm i @onlinefreecv/seo
# or
pnpm add @onlinefreecv/seo

Features

  • Meta Tag Helpers: Build SEO-friendly titles, descriptions, and keywords.
  • Canonical & Robots: Generate canonical URLs and robots meta tags.
  • JSON-LD Structured Data: Easily create schema.org JSON-LD for Person and WebPage.
  • React SEO Head: Drop-in React component for meta tags and social sharing.
  • Persona Template Mapping: Map person data to SEO properties for profile pages.

API Overview

Meta Helpers (src/core/meta.ts)

  • buildTitle({ primary, secondary, brand, max }): Compose and clamp page titles.
  • buildDescription(str, max): Clean and clamp meta descriptions.
  • buildKeywords(list): Deduplicate and join keywords.

Canonical & Robots (src/core/canonical.ts)

  • buildCanonical(host, path): Generate canonical URLs.
  • buildRobots(indexable): Return "index,follow" or "noindex,nofollow".

String Utilities (src/core/clamp.ts)

  • clamp(str, max): Clamp string to max length, add ellipsis.
  • clean(str): Normalize whitespace.

JSON-LD Structured Data (src/core/jsonld.ts)

  • personJsonLd(props): Generate Person schema.org JSON-LD.
  • webPageJsonLd(props): Generate WebPage schema.org JSON-LD.

React SEO Head (src/react/Head.tsx)

  • <SEOHead {...props} />: React component for meta tags, OpenGraph, Twitter, canonical, robots, and JSON-LD.

    Props:

    • title, description, keywords, canonical, indexable, imageUrl, jsonLd, generatorBrand

Persona Template Mapping (src/templates/persona/map.ts)

  • mapPersonToSEO(data, opts): Map person data to SEO properties for profile/persona pages.

Types

See src/types.ts for PersonData and PersonSEOProps definitions.


Example Usage

import { SEOHead, buildCanonical, personJsonLd } from "@onlinefreecv/seo";

<SEOHead
  title="John Doe – Resume"
  description="Experienced developer..."
  canonical={buildCanonical("example.com", "/john-doe")}
  indexable={true}
  imageUrl="https://example.com/john.jpg"
  jsonLd={[personJsonLd({ name: "John Doe", url: "https://example.com/john-doe" })]}
/>

License

MIT © Online Free CV