Skip to main content

Embeddable DeepChat-based widget for Jims applications

Project description

JIMS DeepChat Widget

DeepChat-based embeddable chat widget for JimsApp backends.

Quick start

1. Run the widget server (point it at your JimsApp):

uv run jims-widget --app my_app:app --port 8090 --cors-origins "*"

2. Embed on any page — add one script tag:

<script
  src="https://YOUR_HOST/static/jims-widget.js"
  data-server="https://YOUR_HOST"
></script>

Optional attributes on the <script> tag:

Attribute Required Default Description
data-server yes Widget backend origin (same host as script)
data-contact-id no (anonymous) Persistent visitor identifier
data-thread-id no (new thread) Resume an existing thread
data-position no bottom-right bottom-right | bottom-left
data-open no false true to start with panel open
data-title no Chat assistant Header title text
data-accent no #4f46e5 Accent colour (hex)

Use as a library

Mount the widget app in your own FastAPI (or ASGI) app:

from jims_widget import create_widget_app

widget_app = create_widget_app(my_jims_app, cors_origins=["https://example.com"])
# mount or include widget_app as needed

A demo page is served at / when running the standalone server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jims_widget-0.6.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jims_widget-0.6.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file jims_widget-0.6.1.tar.gz.

File metadata

  • Download URL: jims_widget-0.6.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jims_widget-0.6.1.tar.gz
Algorithm Hash digest
SHA256 c91a2bab64bfab4b39d0719ec9b8a1828f6b1d271c372dce7bc224ac760364ac
MD5 7fb07835e02cd75b76f87a8651a554b7
BLAKE2b-256 858d0b35b75971ec68250a4d1bce7433c1bed8355abe4237bf970cb14b5f4d2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for jims_widget-0.6.1.tar.gz:

Publisher: publish-jims-widget.yml on epoch8/vedana

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jims_widget-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: jims_widget-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for jims_widget-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f8d128f40cc653b347f4fa1929b1efc9bd49aa61eb54adc364a6ee3ccbfcfc9
MD5 c4db2b9543a293f48a8a64850dbb938f
BLAKE2b-256 bf27b7a118b1d13364891fb172b8b7d749a97db87c9d6d8af4eeab9abbff4611

See more details on using hashes here.

Provenance

The following attestation bundles were made for jims_widget-0.6.1-py3-none-any.whl:

Publisher: publish-jims-widget.yml on epoch8/vedana

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page