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 🙏

© 2024 – Pkg Stats / Ryan Hefner

html5-layout

v2.1.2

Published

Basic HTML5 template

Downloads

5

Readme

HTML5 Layout

GitHub version Travis Build Status

Base HTML5 layout.

Installation

You can clone the repository

$ https://github.com/ahtohbi4/html5-layout.git

or just copy content of the source file.

Components

Charset (required)

Charset of page content.

<meta charset="utf-8">

Page title (required)

Title which is showing in browser's tab.

<title>%title%</title>

SEO page description

Google will sometimes use the meta description of a page in search results snippets. Lern more...

<meta name="description" content="%description%">

SEO page keywords

May be taken into account when the Yandex robot determines if a page matches a search query. But Google does not use it in web ranking.

<meta name="keywords" content="%keywords%">

Open Graph

Base meta:

<meta property="og:type" content="website">
<meta property="og:url" content= "/path/to/target/page/">
<meta property="og:title" content="%title%">
<meta property="og:image" content="/path/to/image.jpg">

Additional meta:

<meta property="og:description" content="%description%">
<meta property="og:determiner" content="%determiner%">
<meta property="og:locale" content="en_EN">
<meta property="og:locale:alternate" content="ru_RU">
<meta property="og:site_name" content="%name%">
<meta property="og:audio" content="/path/to/audio/file.mp3">
<meta property="og:video" content="/path/to/video/file.avi">

Twitter Cards

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@username">
<meta name="twitter:title" content="%title%">
<meta name="twitter:description" content="%description%">
<meta name="twitter:image" content="/path/to/image.jpg">

Google instructions

<meta name="google" content="notranslate">

Mobile viewport scale

<meta name="viewport" content="width=device-width, initial-scale=1">

Phone number detection by device

<meta name="format-detection" content="telephone=no">

Cononical link

<link rel="canonical" href="/cannonical/link/to/current/page/">

Alternate link

<link rel="alternate" hreflang="ru" href="/path/to/alternate/ru/language/of/current/page/">
<link rel="alternate" hreflang="ar" href="/path/to/alternate/ar/language/of/current/page/">
...

Prefetch DNS

Identifies a DNS query to resolve the background, so that requests can occur more quickly. Lern more...

<link rel="dns-prefetch" href="//example.com">

Pre connect

Initiating an early connection, which includes the DNS lookup, TCP handshake, and optional TLS negotiation, allows the user agent to mask the high latency costs of establishing a connection. Lern more...

<link rel="preconnect" href="//example.com" crossorigin="use-credentials">

Prefetch of resources

Identifies a resource file, such as an image or a CSS stylesheet, to be downloaded into the cache. Lern more...

<link rel="prefetch" href="//example.com/path/to/next/page/or/single/resource/" crossorigin="use-credentials">

Pre render of next page

Identifies a webpage to load in the background, in case the user wants to navigate to it next. Lern more...

<link rel="prerender" href="//example.com/path/to/next/page/">

Browser MS configuration

<meta name="msapplication-config" content="/browserconfig.xml">

Other meta by Microsoft

<meta name="application-name" content="%name%">
<meta name="msapplication-badge" content="frequency=60; polling-uri=http://example.com/path/to/polling.xml">

CSS for layout

Use a some number of subdomains to parallel downloads.

<link rel="stylesheet" href="//st1.example.com/path/to/first-view-style.css">

Google Analytics code

<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','%id%','auto');ga('send','pageview');</script>

Tests

Always check your pages with official W3C validator.

License

MIT © Alexander Antonov [email protected]