Socket
Socket
Sign inDemoInstall

ai-term-web-components

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ai-term-web-components

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


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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
  • Usage
  • Configuration
  • Examples
  • Support

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.

Keywords

FAQs

Last updated on 22 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc