New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-jam-comments

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-jam-comments

The Gatsby plugin for Jam Comments.

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

:warning: JamComments is still in active development, and has not yet been opened to the public. To be notified when it's available, sign up here: jamcomments.com.

gatsby-plugin-jam-comments

The official Gatsby plugin for integrating JamComments into your Gatsby application.

Setup

  1. Create a JamComments account.
  2. Create a site and generate an API key.
  3. Install this plugin: npm install gatsby-plugin-jam-comments.
  4. Configure the plugin by adding the following to your gatsby-node.js:
resolve: 'gatsby-plugin-jam-comments',
  options: {
    api_key: "YOUR-API-KEY",
    domain: "your-domain.me"
  }
},

Usage

Embedding Comments

To include a comment form and existing comments on your blog posts, you'll need to place the <JamComments /> component on your page component(s), along with the required path and pageContext props:

import React from "react";
import JamComments from "gatsby-plugin-jam-comments";

const MyPost = (props) => {
  return (
    <article>
      <h1>{props.title}</h1>
      <div>{props.content}</div>
      <JamComments path={props.path} pageContext={props.pageContext} />
    </article>
  );
};
  
export default MyPost;

Querying for Data

{
  allJamComment(limit: 10) {
    edges {
      node {
        content
        name
        path
        id
      }
    }
  }
}

Keywords

FAQs

Package last updated on 09 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc