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

kobil-portal-web-components

v0.0.34

Published

Reusable `kb-*` web components built with Lit.

Readme

Kobil Portal Web Components (Lit)

Reusable kb-* web components built with Lit.

Components

  • kb-title: Tipografi başlık bileşeni; type ve aria-level destekler.
  • kb-tabs / kb-tab: Sekmeli düzen; her sekmede başka kb-* bileşenleri render edilebilir.
  • kb-sliderpack: Yatay kaydırılabilir uygulama kartları.
  • kb-gridpack: Izgara görünümünde uygulama kartları.
  • kb-listpack: Liste görünümünde uygulama satırları.
  • kb-spotlight: Geniş banner + başlık/metin; haber/spotlight için uygundur.
  • kb-apps: 2:3 oranlı (genişlik:yükseklik) uygulama kartları; mobilde 3 sütun, desktop’ta satırı eşit doldurur.

Install

npm i kobil-portal-web-components
npm i lit

lit bir peer dependency’dir; host uygulamanın ayrıca kurması gerekir.

Usage (Bundlers)

Vite/Webpack/Rollup/Next vb.

import 'kobil-portal-web-components/kb-title';
import 'kobil-portal-web-components/kb-tabs';
import 'kobil-portal-web-components/kb-sliderpack';
import 'kobil-portal-web-components/kb-gridpack';
import 'kobil-portal-web-components/kb-listpack';
import 'kobil-portal-web-components/kb-spotlight';
import 'kobil-portal-web-components/kb-apps';
<kb-title type="heading" aria-level="2">Başlık</kb-title>

<kb-tabs selected-index="0">
  <kb-tab label="Uygulamalar">
    <kb-sliderpack></kb-sliderpack>
  </kb-tab>
  <kb-tab label="Izgara">
    <kb-gridpack></kb-gridpack>
  </kb-tab>
  <kb-tab label="Liste">
    <kb-listpack></kb-listpack>
  </kb-tab>
</kb-tabs>

<kb-spotlight></kb-spotlight>

<kb-apps></kb-apps>

Props & API (özet)

  • kb-title
    • type: title | heading | subheading
    • aria-level: 1..6
  • kb-tabs
    • selected-index: Aktif sekme indeksi (0 tabanlı)
    • Slot: <kb-tab label="..."> ... </kb-tab>
  • kb-sliderpack | kb-gridpack | kb-listpack
    • .items: { id?, title, description?, logo?, href? }[]
  • kb-spotlight
    • .items: { id?, title, description?, href?, banner, logo? }[]
    • aspect-ratio: 1x1 | 16x9 | 4x3 | 2x1
    • detail-mode: none | inside | outside
  • kb-apps
    • .items: { id?, title, logo?, href? }[] (Kart oranı sabit: 2 / 3)

Usage (Plain HTML via CDN)

Bu paket ESM ve dışa alınmış lit ile gelir; import map veya bağımlılıkları yeniden yazan bir CDN kullanın.

Option A — Import Map (jsDelivr):

<script type="importmap">
  {
    "imports": {
      "lit": "https://cdn.jsdelivr.net/npm/[email protected]/+esm"
    }
  }
</script>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/kobil-portal-web-components/dist/kb-title.js"
></script>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/kobil-portal-web-components/dist/kb-tabs.js"
></script>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/kobil-portal-web-components/dist/kb-sliderpack.js"
></script>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/kobil-portal-web-components/dist/kb-gridpack.js"
></script>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/kobil-portal-web-components/dist/kb-listpack.js"
></script>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/kobil-portal-web-components/dist/kb-spotlight.js"
></script>
<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/kobil-portal-web-components/dist/kb-apps.js"
></script>

Option B — esm.sh (auto rewrite):

<script type="module" src="https://esm.sh/kobil-portal-web-components/dist/kb-title.js"></script>
<script type="module" src="https://esm.sh/kobil-portal-web-components/dist/kb-tabs.js"></script>
<script
  type="module"
  src="https://esm.sh/kobil-portal-web-components/dist/kb-sliderpack.js"
></script>
<script type="module" src="https://esm.sh/kobil-portal-web-components/dist/kb-gridpack.js"></script>
<script type="module" src="https://esm.sh/kobil-portal-web-components/dist/kb-listpack.js"></script>
<script
  type="module"
  src="https://esm.sh/kobil-portal-web-components/dist/kb-spotlight.js"
></script>
<script type="module" src="https://esm.sh/kobil-portal-web-components/dist/kb-apps.js"></script>

Exports

  • kobil-portal-web-components/kb-title
  • kobil-portal-web-components/kb-tabs
  • kobil-portal-web-components/kb-sliderpack
  • kobil-portal-web-components/kb-gridpack
  • kobil-portal-web-components/kb-listpack
  • kobil-portal-web-components/kb-spotlight
  • kobil-portal-web-components/kb-apps

Types are published under dist/types and referenced in package.json exports.

Build

npm run build

Outputs to dist/.

Publish Notes

  • Ensure name in package.json is correct for npm.
  • Consider adding license, author, and repository fields before publishing.
  • prepublishOnly runs the build automatically.