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

@pensil-inc/web-sdk

v0.1.18-beta.2

Published

The pensil web sdk can be used to leverage the functionalities of Pensil Social Platform. It include the `PensilService` and `React UiKit` both.

Readme

Pensil Web SDK

The pensil web sdk can be used to leverage the functionalities of Pensil Social Platform. It include the PensilService and React UiKit both.

Installing Pensil Web SDK

Run the following command in your project

 npm i @pensil-inc/web-sdk@latest

or

 yarn add @pensil-inc/web-sdk@latest

Using the web-sdk in a React App

1. Import and initialise the PensilService

import { PensilService } from "@pensil-inc/web-sdk";
  const configuration = {
    token: "<user_token>",
    baseUrl: "<base_url>",
  };
  const pensil_service_instance = new PensilService(configuration);

In this step we are creating pensil_service_instance, which is consumable by the UIKit.

configuration object

The configuration object will receive the following properties -

2. Add the pensil stylesheets

import "@pensil-inc/web-sdk/lib/esm/styles/index.css";

Pensil styles are scoped to the sdk components, so no need to worry about messing us your UI.

3. Import any UiKit element and use it

import { UIKit } from "@pensil-inc/web-sdk";
...
  return (
    <div className="">
      <UIKit.SectionDetail service={pensil_service_instance} groupId="<group_id>" sectionId="<section_id>" />
    </div>
  );  
...

Each UIKit item has its own input requirement, which you can refer to the documentation to get more insights on. Every UIkit item will have one thing in common and that is the pensil_service_instance, it is required to pass on the configurations and the authorization details to the child components.

We have created pensil_service_instance in Step 1

Demo

Simplest implementation for the SDK in new create-react-app -


import React from 'react';
import logo from './logo.svg';
import './App.css';
import { UIKit, PensilService } from "@pensil-inc/web-sdk";
import "@pensil-inc/web-sdk/lib/esm/styles/index.css";

function App() {

  const pensilServiceInstance = new PensilService({
    token: "<user_token>",
    baseUrl: "<base_url>",
  });

  return (
    <div className="">
      <UIKit.SectionDetail
        service={pensilServiceInstance}
        groupId="<group_id>"
        sectionId="<section_id>" />
    </div>
  );
}

export default App;

Please contact [email protected] to get more details on the variables used.

Authors

Support

For support, email [email protected] or join our Slack channel.

Pensil