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

seomate

v0.0.2

Published

An NPM module providing dead simple way to check your HTML defects

Readme

Build Status npm version Coverage Status License: MIT

SEOMATE

An NPM module providing dead simple way to check your HTML defects.

Getting Started

Prerequisites

Node.js 8+

Installation

npm install seomate

Usage

Command line:

Usage: seomate [options] <filepath>

Options:

-V, --version                    output the version number
-c, --config-path [config path]  configs file path
-r, --rules [rules]              rules to be applied (separated by comma)
-o, --output [file path]         write to file
-h, --help                       output usage information

Example:

seomate index.html -c configs.json -r title,h1 -o /tmp/seomate.log

API:

const = seomate require('seomate');
seomate('your/file/path').then((t) => {
    t.examine('rule1', 'rule2', 'rule3').toConsole();
}).catch((e) => {
    console.log(e);
});

Development Setup

git clone https://github.com/amigcamel/seomate
cd seomate
npm install

Test

mocha

Release History

  • 0.0.2
    • add cli
  • 0.0.1
    • First release

Documentation

configDict

Format

configDict is configured in JSON format. A complete template is shown as the following:

{
	"rule-name": {
		"section": "",
		"tag": "",
		"attribute": "",
		"value": "",
		"action": {
			"name": "",
			"value": ""
		}
	}
}

Here are the basic definitions:

  • rule-name: A rule name user defines
  • section: head or body
  • tag: HTML tag
  • attribute: Tag attribute
  • value: Attribute value of a tag
  • action: Expected behavior of the HTML parser
    • name: rule name, currently supported rules are:
      • must-have
      • must-have-attribute
      • nore-more-than

Fields

seomate laverage the use of css selector and parse fields in cascade manner:

section > tag[attribute=value]

So, every field is dependant with its upper level.

section

head or body.
This should be sepcified to avoi cases like the following:

<html>
	<head></head>
	<body>
		<title>This is a title</title>
	</body>
</html>

This HTML has the <title> in the <body> section, which is still valid but not standard. So, if we configure configDict as this:

{
	"title-rule": {
		"section": "head",
		"tag": "tag",
		"action": {
			"name": "must-have"
		}
	}
}

seomate will tell the non-existence of <title> as it'll look for <title> under <head> section.

tag

An HTML tag.

attribute

A tag attribute. If tag is not set, value will be ignored.

value

An attribute value of a tag. If attribute is not set, value will be ignored.

Rules

must-have

A HTML should have the provided pattern.

Example 1:

{
	"title-rule": {
		"section": "head",
		"tag": "title",
		"action": {
			"name": "must-have"
		}
	}
}

This rule can be read as "This HTML must have <title>."

Example 2:

{
	"img-rule": {
		"section": "head",
		"tag": "body",
		"attribute": "alt",
		"action": {
			"name": "must-have"
		}
	}
}

This rule can be read as "This HTML must have <img> with attribute alt."

Example 3:

{
	"meta-robots-rule": {
		"section": "head",
		"tag": "meta",
		"attribute": "name",
		"value": "robots",
		"action": {
			"name": "must-have"
		}
	}
}

This rule can be read as "This HTML must have <meta> with attribute name whose value is robots, e.g., <meta name='robots'>"

must-have-attribute

A provided pattern should always have a specified attribute.

For example:

{
	"a-rule": {
		"section": "body",
		"tag": "a",
		"attribute": "rel"
	},
	"action": {
		"name": "must-have-attr"
	}
}

This rule can be read as "<a>, if exists, must have attribute rel." If <a> is found with no rel attribute, line numbers will be provide for the ease of debugging.

Notice the field value is not in use with this rule.

nore-more-than

Numbers of provided pattern should be no more than the specified value.

For example:

{
	"strong-rule": {
		"section": "head",
		"tag": "strong",
		"action": {
			"name": "no-more-than",
			"value" 15
		}
	}
}

This rule can be read as "<strong> cannot appear more than 15 times."