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

@elevio/kb-kit

v0.3.10

Published

## What is the Elevio KB-Kit?

Downloads

166

Readme

Introduction

What is the Elevio KB-Kit?

The Elevio (elev.io) KB-Kit is a toolkit for building your own knowledge base powered by Elevio.

It allows you to template your own custom Knowledge Base (KB) and gives you easy access to all of Elevio's smart features.

The kit handles all of the grunt work of making sure the correct page is rendered, the correct data is fetched and all the analytic events are sent so you can take advantage of Elevio insights.

How does it work?

KB-Kit uses React.js under the hood to render the content. However, don't worry if you only know HTML or CSS - this should be enough to get you started! This documentation will point out any differences to HTML/CSS where applicable.

Data is fetched in the background for you based on the URL you are currently visiting.

The data is then made available for you in one of two ways:

You can use "components" to grab the relevant part of the data you need. Example: print the article title to the page.

<Article.Title />

If you want access to the raw data then you can use the provided hooks. Example: use a hook to obtain article data.

const ArticlePage = () => {
const articleData = useArticle();
// Now you have access to the article data to do what you like with
}

Quick Start Guide

To begin make sure you have registered an account with Elevio.

You will need to have Node.js installed on your computer. We recommend using the latest version of Node.js.

Next, copy from the JavaScript starter repository:

https://github.com/dixahq/kb-javascript-starter

Alternatively you can copy from the TypeScript starter repository:

https://github.com/dixahq/kb-typescript-starter

To download a copy of the repository, simply click on the Code button then choose 'Download Zip'.

Once downloaded to your device, unzip the file.

Of course, you can also choose to clone the repository if you choose:

git clone [email protected]:dixahq/kb-javascript-starter.git

You may use any text editor or integrated development environment 'IDE' you wish. We recommend Visual Studio Code which is open source, has excellent intellisense prompting, and is free to use.

Within your IDE, open the settings.json file from the root and fill in your account id. You can find your account id here: https://app.elev.io/installation

There are many options you can fill into settings.json, see the Client Settings API reference documents for more information.

Next, install the required JavaScript modules by opening a terminal and running:

yarn
# or
npm i

This will install everything you need to start developing and deploying your KB.

Then to start working on your KB, in your terminal run this:

yarn start
# or
npm run start

Now open your web browser and visit http://localhost:4000. You should see a basic home page with a list of your categories, and any articles nested within those categories.

Then to see a change open the file src/pages/home.js and change something. Then hit save. Changes you make should occur automatically in your browser.

Read more

The documentation is located at https://kb-kit.elevio.help/en

If you have issues please contact us at [email protected]