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 🙏

© 2025 – Pkg Stats / Ryan Hefner

polaris-digital-assistant

v1.0.0

Published

Akıllı asistan entegrasyonu için modern çözüm

Downloads

7

Readme

Polaris Akıllı Asistan Widget

Modern web siteleri için akıllı asistan widget'ı.

Özellikler

  • 💬 Metin tabanlı sohbet arayüzü
  • 🔊 Ses tanıma ve sesli yanıt
  • 🌙 Koyu/Açık tema desteği
  • 💡 Akıllı öneri sistemi
  • 📱 Tamamen responsive tasarım
  • 🛍️ Ürün önerileri gösterimi

Kurulum

CDN ile Kurulum

Widget'ı doğrudan CDN üzerinden kullanmak için HTML dosyanıza aşağıdaki kodu ekleyin:

<!-- Widget'ın CSS dosyasını ekleyin -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/polaris.css">

<!-- Sayfa sonunda, body tag'inden önce script'i ekleyin -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/polaris.min.js" 
  data-auto-init="true" 
  data-org-id="your-org-id" 
  data-position="bottom-right">
</script>

NPM ile Kurulum

NPM kullanarak projenize eklemek için:

npm install polaris-assistant-widget

React projenizde import edin ve kullanın:

import { initPolaris } from 'polaris-assistant-widget';
import 'polaris-assistant-widget/dist/polaris.css';

// Komponentinizde
useEffect(() => {
  initPolaris({
    organizationId: 'your-org-id',
    position: 'bottom-right',
    theme: {
      primaryColor: '#4285F4',
    }
  });
}, []);

Konfigürasyon Seçenekleri

Widget'ı kişiselleştirmek için aşağıdaki seçenekleri kullanabilirsiniz:

| Seçenek | Tür | Varsayılan | Açıklama | |---------|-----|------------|----------| | organizationId | string | 'default' | Organizasyon ID'niz | | containerId | string | 'polaris-widget-container' | Widget'ın yerleşeceği HTML container ID'si | | position | string | 'bottom-right' | Widget'ın konumu ('bottom-right', 'bottom-left', 'top-right', 'top-left') | | autoOpen | boolean | false | Widget sayfa yüklendiğinde otomatik olarak açılsın mı? | | theme | object | {...} | Tema ayarları (renkler, fontlar vb.) | | features | object | {...} | Özellik bayrakları (ses tanıma, ürün önerileri vb.) |

HTML Öznitelikleri

Script tag'i üzerinde konfigürasyon için şu öznitelikleri kullanabilirsiniz:

  • data-auto-init: Widget'ın otomatik başlatılması (true/false)
  • data-org-id: Organizasyon ID'niz
  • data-position: Widget pozisyonu
  • data-auto-open: Sayfa yüklendiğinde otomatik açılma (true/false)

JavaScript API

// Widget'ı başlatma
window.Polaris.init({
  organizationId: 'your-org-id',
  position: 'bottom-right',
  theme: {
    primaryColor: '#FF5722',
    backgroundColor: '#FFFFFF',
    textColor: '#333333',
  },
  features: {
    voiceEnabled: true,
    productRecommendations: true,
  }
});

Örnekler

Özel Renklerle Kullanım

<script>
  document.addEventListener('DOMContentLoaded', function() {
    window.Polaris.init({
      organizationId: 'your-org-id',
      theme: {
        primaryColor: '#9C27B0',
        secondaryColor: '#2196F3',
        backgroundColor: '#F5F5F5',
      }
    });
  });
</script>

Ses Özelliği Olmadan Kullanım

<script>
  document.addEventListener('DOMContentLoaded', function() {
    window.Polaris.init({
      organizationId: 'your-org-id',
      features: {
        voiceEnabled: false,
      }
    });
  });
</script>

Lisans

MIT