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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@feedlog-ai/vue

v0.0.27

Published

Vue bindings for Feedlog Toolkit Web Components

Readme

@feedlog-ai/vue

Vue bindings for Feedlog Toolkit web components. Auto-generated from Stencil components with full TypeScript support.

Features

  • Vue Components: Native Vue components with template syntax support
  • TypeScript Support: Full type safety with TypeScript definitions
  • Auto-generated: Generated from Stencil web components for consistency
  • Vue 2 & 3 Support: Compatible with Vue >=2.6.0 and >=3.0.0
  • Event Handling: Vue-friendly event handling with proper typing
  • Tree Shakeable: Only import the components you need

Installation

npm install @feedlog-ai/vue

Components

FeedlogIssuesClient

The main component for displaying issues with built-in SDK integration.

Props:

  • apiKey: API key for Feedlog authentication (required)
  • type?: Filter by issue type - 'bug' or 'enhancement'
  • limit?: Maximum issues to fetch (1-100, default: 10)
  • endpoint?: Custom API endpoint
  • maxWidth?: Container max width (default: '42rem')
  • theme?: Theme variant - 'light' or 'dark' (default: 'light')
  • showThemeToggle?: Show theme toggle button (default: true)

Events:

  • @feedlog-upvote: Emitted when an issue is upvoted
  • @feedlog-theme-change: Emitted when theme changes
  • @feedlog-error: Emitted on errors

Usage

Vue 3 (Composition API)

<template>
  <div>
    <FeedlogIssuesClient
      api-key="your-api-key"
      type="bug"
      :limit="10"
      theme="light"
      max-width="42rem"
      @feedlog-upvote="handleUpvote"
      @feedlog-theme-change="handleThemeChange"
      @feedlog-error="handleError"
    />
  </div>
</template>

<script setup lang="ts">
import { FeedlogIssuesClient } from '@feedlog-ai/vue';

const handleUpvote = (event: CustomEvent) => {
  console.log('Issue upvoted:', event.detail);
  // event.detail: { issueId, upvoted, upvoteCount }
};

const handleThemeChange = (event: CustomEvent<'light' | 'dark'>) => {
  console.log('Theme changed to:', event.detail);
};

const handleError = (event: CustomEvent) => {
  console.error('Error:', event.detail);
  // event.detail: { error, code? }
};
</script>

Vue 3 (Options API)

<template>
  <FeedlogIssuesClient api-key="your-api-key" @feedlog-upvote="onUpvote" @feedlog-error="onError" />
</template>

<script lang="ts">
import { FeedlogIssuesClient } from '@feedlog-ai/vue';

export default {
  components: {
    FeedlogIssuesClient,
  },
  methods: {
    onUpvote(event: CustomEvent) {
      console.log('Issue upvoted:', event.detail);
    },
    onError(event: CustomEvent) {
      console.error('Error:', event.detail);
    },
  },
};
</script>

Vue 2

<template>
  <feedlog-issues-client api-key="your-api-key" @feedlog-upvote="handleUpvote" />
</template>

<script>
import { FeedlogIssuesClient } from '@feedlog-ai/vue';

export default {
  components: {
    FeedlogIssuesClient,
  },
  methods: {
    handleUpvote(event) {
      console.log('Issue upvoted:', event.detail);
    },
  },
};
</script>

With Reactive Data

<template>
  <div>
    <div class="controls">
      <select v-model="issueType">
        <option value="bug">Bugs</option>
        <option value="enhancement">Enhancements</option>
      </select>

      <button @click="toggleTheme">
        Switch to {{ theme === 'light' ? 'dark' : 'light' }} theme
      </button>
    </div>

    <FeedlogIssuesClient
      api-key="your-api-key"
      :type="issueType"
      :theme="theme"
      @feedlog-theme-change="updateTheme"
    />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { FeedlogIssuesClient } from '@feedlog-ai/vue';

const issueType = ref<'bug' | 'enhancement'>('bug');
const theme = ref<'light' | 'dark'>('light');

const toggleTheme = () => {
  theme.value = theme.value === 'light' ? 'dark' : 'light';
};

const updateTheme = (event: CustomEvent<'light' | 'dark'>) => {
  theme.value = event.detail;
};
</script>

Event Handling

<template>
  <FeedlogIssuesClient api-key="your-api-key" @feedlog-upvote="onUpvote" @feedlog-error="onError" />
</template>

<script setup lang="ts">
const onUpvote = (
  event: CustomEvent<{
    issueId: string;
    upvoted: boolean;
    upvoteCount: number;
  }>
) => {
  // Fully typed event detail
  const { issueId, upvoted, upvoteCount } = event.detail;

  if (upvoted) {
    console.log(`User upvoted issue ${issueId}`);
  } else {
    console.log(`User removed upvote from issue ${issueId}`);
  }

  console.log(`Issue now has ${upvoteCount} upvotes`);
};

const onError = (
  event: CustomEvent<{
    error: string;
    code?: number;
  }>
) => {
  const { error, code } = event.detail;
  console.error(`Feedlog error (${code || 'unknown'}):`, error);

  // Handle error in your UI (show toast, etc.)
};
</script>

Other Components

The package also includes Vue bindings for additional UI components:

<template>
  <div>
    <!-- Badge component -->
    <FeedlogBadge variant="primary">New</FeedlogBadge>

    <!-- Button component -->
    <FeedlogButton variant="primary" size="lg" @feedlog-click="handleClick">
      Click me
    </FeedlogButton>

    <!-- Card component -->
    <FeedlogCard>
      <h3>Card Title</h3>
      <p>Card content</p>
    </FeedlogCard>
  </div>
</template>

<script setup lang="ts">
import { FeedlogBadge, FeedlogButton, FeedlogCard } from '@feedlog-ai/vue';

const handleClick = (event: CustomEvent<MouseEvent>) => {
  console.log('Button clicked:', event.detail);
};
</script>

Global Registration

You can register components globally in your Vue app:

// main.ts
import { createApp } from 'vue';
import { FeedlogIssuesClient, FeedlogBadge } from '@feedlog-ai/vue';

const app = createApp(App);

// Register specific components
app.component('FeedlogIssuesClient', FeedlogIssuesClient);
app.component('FeedlogBadge', FeedlogBadge);

// Or use the install function (currently minimal but extensible)
import { install } from '@feedlog-ai/vue';
app.use(install);

TypeScript Support

All components are fully typed. Import types from the core package if needed:

<script setup lang="ts">
import type { FeedlogIssue } from '@feedlog-ai/core';

const handleUpvote = (
  event: CustomEvent<{
    issueId: string;
    upvoted: boolean;
    upvoteCount: number;
  }>
) => {
  // Fully typed event detail
  console.log(event.detail.issueId);
  console.log(event.detail.upvoted);
  console.log(event.detail.upvoteCount);
};
</script>

Requirements

  • Vue >= 2.6.0 or >= 3.0.0
  • Modern browsers with Web Components support

Browser Support

Same as the underlying web components:

  • Chrome 61+
  • Firefox 63+
  • Safari 11+
  • Edge 79+

Migration from Direct Web Components

If you're migrating from using web components directly:

<!-- Before (direct web component) -->
<feedlog-issues-client api-key="key" @feedlog-upvote="handleUpvote" />

<!-- After (Vue component) -->
<FeedlogIssuesClient api-key="key" @feedlog-upvote="handleUpvote" />

Key differences:

  • Use PascalCase component names in templates
  • Event names remain the same (kebab-case)
  • All props and events are properly typed

License

MIT