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

@wellbees/meta-tag-seo

v1.0.2

Published

Meta tags and seo information manager for Reactjs

Downloads

54

Readme

Meta Tag SEO

MIT License

Meta tags and seo information manager for Reactjs

Example Usage

Show Demo in CodeSandBox

Installation

  npm install @wellbees/meta-tag-seo

Usage/Examples

Provider is not required. If you want use only <MetaTags/> or other components, you can use it alone.


Provider and Special Location Tags Usage

import React from 'react'
import { MetaFooter, MetaHeader, MetaBody, MetaProvider } from '@wellbees/meta-tag-seo'
import seoConfig from './seoConfig' // Below is an example

const App = () => {
  return (
    <MetaProvider config={seoConfig}>
      <MetaHeader>{/* Adds to the bottom inside the head tag */}</MetaHeader>
      <MetaBody>{/* Adds to the top inside the body tag */}</MetaBody>
      <div>
        Page Layout
      <div>
      <MetaFooter>{/* Adds to the bottom inside the body tag */}</MetaFooter>
    </MetaProvider>
  )
}

export default App

Single MetaTags Usage

import React from 'react'
import { MetaTags } from '@wellbees/meta-tag-seo'

const Page = () => {
  return (
    <div>
      {/* Small Usage */}
      <MetaTags title='' description='' equalTitle equalDescription />

      {/* Full Usage */}
      <MetaTags
        title=''
        description=''
        keywords=''
        openGraph={{
          type: '',
          title: '',
          description: '',
          image: '',
          video: '',
          audio: ''
        }}
        twitter={{
          card: '',
          title: '',
          description: '',
          image: ''
        }}
      >
        {/* Adds to the bottom inside the head tag */}
      </MetaTags>

		  Page Layout
	  </div>
  )
}

export default Page

Example SEO Config Value

const seoConfig = {
  translate: false,
  language: 'en',
  charset: 'utf-8',
  favIcon: 'http://example.com/favicon.png',
  viewport: 'width=device-width, initial-scale=1, shrink-to-fit=no',
  themeColor: '#2A2A2A',
  title: 'Title | Default Page',
  description: 'Description | Default Page',
  keywords: 'Keywords | Default Page',
  robots: 'Robots | Default Page',
  owner: 'Owner | Default Page',
  author: 'Author | Default Page',
  copyright: 'Copyright | Default Page',
  openGraph: {
    locale: 'Locale | Facebook Meta (og:locale)',
    type: 'Type | Facebook Meta (og:type)',
    url: 'Url | Facebook Meta (og:url)',
    site_name: 'Site Name | Facebook Meta (og:site_name)',
    title: 'Title | Facebook Meta (og:title)',
    description: 'Description | Facebook Meta (og:description)',
    image: 'Image Url | Facebook Meta (og:image)',
    video: 'Video Url | Facebook Meta (og:video)',
    audio: 'Audio Url | Facebook Meta (og:audio)',
    appId: 'AppId | Facebook Meta (fb:appId)'
  },
  twitter: {
    card: 'Card | Twitter Meta (twitter:card)',
    site: 'Site | Twitter Meta (twitter:site)',
    creator: 'Creator | Twitter Meta (twitter:creator)',
    title: 'Title | Twitter Meta (twitter:title)',
    description: 'Description | Twitter Meta (twitter:description)',
    image: 'Image | Twitter Meta (twitter:image)'
  },
  verification: {
    google: 'Google Verification Code (google-site-verification)',
    yandex: 'Yandex Verification Code (yandex-verification)',
    bing: 'Bing Verification Code (msvalidate.01)',
    baidu: 'Baidu Verification Code (baidu-site-verification)'
  }
}

Props

| Name | Type | Default | Available Component | Description | | --- | --- | --- | --- | --- | | config | Object | | MetaProvider | Sets the default meta settings of the page. | | equalTitle | Boolean | false | MetaProvider, MetaHeader, MetaTags | Syncs facebook and twitter headers to the page title. | | equalDescription | Boolean | false | MetaProvider, MetaHeader, MetaTags | Syncs facebook and twitter descriptions to page description. | | children | Node | | MetaProvider, MetaHeader, MetaBody, MetaFooter, MetaTags | Any html tags can be written inside the tags. |

Features

  • Set default meta config with provider

  • Head, body and footer components for special code location

  • Meta tag components for simple usage

  • Sync page title and description, facebook and twitter meta to work

Min React Version

React: 16.13.1

Kullanılan Paketler

prop-types

Feedback

If you have any feedback, please contact us at [email protected].

Authors