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

@pallasoft/ps-remix-crawlers

v1.2.3

Published

[![License: Pallasoft Proprietary](https://img.shields.io/badge/License-Pallasoft_Proprietary-blue.svg)](LICENSE)

Readme

PS-Remix-Crawlers

License: Pallasoft Proprietary

🚀 Getting Started

Installation

npm i @pallasoft/ps-remix-crawlers

Usage

Runtime Generation

  1. Create a sitemap[.]xml route
import { routes } from '@remix-run/dev/server-build';
import { LoaderFunctionArgs } from '@remix-run/node';

import { createSEOGenerator } from '@pallasoft/ps-remix-crawlers';

export const loader = async ({ request }: LoaderFunctionArgs) => {
	const url = new URL(request.url);
	const { sitemap } = createSEOGenerator({
		siteUrl: url.origin,
	});

	return sitemap(request, routes);
};
  1. Create a robots[.]txt route
import { LoaderFunctionArgs } from '@remix-run/node';

import { createSEOGenerator } from '@pallasoft/ps-remix-crawlers';

export const loader = async ({ request }: LoaderFunctionArgs) => {
	const url = new URL(request.url);
	const { robots } = createSEOGenerator({
		siteUrl: url.origin,
	});

	return robots();
};

📝 Guides

Generate Sitemap for Dynamic Routes

import type { SitemapFunction } from '@pallasoft/ps-remix-crawlers';

export const sitemap: SitemapFunction = ({ config, request }) => {
	const posts = await getPosts();

	return posts.map((post) => ({
		loc: `/posts/${post.slug}`,
		lastmod: post.updatedAt,
		exclude: post.isDraft, // exclude this entry
		// acts only in this loc
		alternateRefs: [
			{
				href: `${config.siteUrl}/en/posts/${post.slug}`,
				absolute: true,
				hreflang: 'en',
			},
			{
				href: `${config.siteUrl}/es`,
				hreflang: 'es',
			},
		],
	}));
};

Exclude Route

import type { SitemapFunction } from 'remix-sitemap';

export const sitemap: SitemapFunction = () => ({
	exclude: true,
});

Caching

createSEOGenerator({
	siteUrl: 'https://example.com',
	headers: {
		'Cache-Control': 'max-age=3600',
	},
});

Google: News, Image and Video

Url set can contain additional sitemaps defined by google. These are Google news, image or video. You can add these sitemaps in sitemap function by adding the news, images or videos property.

export const sitemap: SitemapFunction = () => ({
	images: [{ loc: 'https://example.com/example.jpg' }],
	news: [
		{
			title: 'Random News',
			date: '2023-03-15',
			publication: {
				name: 'The Example Times',
				language: 'en',
			},
		},
	],
});

📖 API Reference

Config

  • siteUrl: the website base url
  • autoLastmod = true: (optional) Add <lastmod /> property with the current date.
  • priority = 0.7: (optional) default priority for all entries.
  • changefreq = 'daily': (optional) default changefreq for all entries.
  • format = false: (optional) format the sitemap for a better view.
  • alternateRefs = []: (optional) default multi language support by unique url for all entries.
  • generateRobotsTxt = false: (optional) generate robots.txt file.
  • robotsTxtOptions: (optional) options for generating robots.txt details.
  • rateLimit: (optional) limits the number of sitemap functions that can execute at once.

Runtime only

  • headers = {}: (optional) headers for the sitemap and robots.txt response.
  • cache: (optional) cache the sitemap details.

Build Time only

  • generateIndexSitemap = true: (optional) generate index sitemap.
  • sitemapBaseFileName = 'sitemap': (optional) the name of the generated sitemap file before the file extension.
  • outDir = 'public': (optional) the directory to create the sitemaps files.
  • size = 50000: (optional) max size of the sitemap.

RobotsTxtOptions

  • policies = []: (optional) policies for generating robots.txt.
  • additionalSitemaps = []: (optional) add additionals sitemaps to robots.txt.