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

ai-term-web-components

v0.1.1

Published

Unlock the full potential of your website with AI-Term's extensive features. Designed to seamlessly integrate with your existing setup, our innovative tools enhance user engagement, streamline content management, and optimize your site's performance. From

Downloads

2

Readme

VanillaJS Web Components

Version Build License

is a lightweight, easy-to-use library for integrating AI-powered terms and chat components into your web projects. Using standard HTML5 web components, it allows for seamless addition of AI-driven elements to enhance user interaction.

Table of Contents

Installation

Simply include the library in your HTML file. Add the following script tag as the first element inside the <body> tag:

<body>
    <script src="https://github.com/cryptNG/ai-term-vanillajs/ai-term.js" crossorigin="anonymous"></script>
    <!-- Your content goes here -->
</body>

Usage

Element

To use the <ai-term> component, wrap the term you want to enhance within the <ai-term> element. For example:

<h1 class="page-title">
    The <ai-term>Privacy-Friendly</ai-term> Alternative for Secure, User-Respecting Web Human Verification
</h1>

Chat Box

To add an AI-powered chat interface, include the <ai-term-chat> element towards the end of your body content. Provide your API key and optional configuration options as attributes:

<ai-term-chat api-key="your_api_key" options="{context:'page'}"></ai-term-chat>

Configuration

  • api-key: Your unique API key for accessing AI services.
  • options: A JSON object with configuration settings. For example, {context:'page'} sets the context to the current page content.

Examples

Here are some examples of how to use in your project:

  • Basic Term Highlighting: <ai-term>Term</ai-term>
  • Chat Interface: <ai-term-chat api-key="your_api_key"></ai-term-chat>

Support

For support, issues, or contributions, please visit the GitHub repository.