
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
utterances-vue-component
Advanced tools
Type safety vue component for utterances
Vue component for utterances 🔮
Utterances is a lightweight comments widget built on GitHub issues, for blog comments, wiki pages and more.
ES modules and CommonjsLocally
Local import of components is recommended. This is a type-safe props.
<template>
<Utterances
repo="TomokiMiyauci/utterances-component"
theme="github-dark"
issueTerm="pathname"
/>
</template>
<script setup lang="ts">
import { Utterances } from 'utterances-vue-component'
</script>
Globally
You can also register a component globally. There will be no more type inference for props. If there is no reason to do so, local import is recommended.
import { createApp } from 'vue'
import App from './App.vue'
import { plugin } from 'utterances-vue-component'
createApp(App).use(plugin).mount('#app')
<template>
<Utterances
repo="TomokiMiyauci/me"
issue-term="pathname"
theme="github-light"
/>
</template>
npm i utterances-vue-component
or
yarn add utterances-vue-component
The module that bundles the dependencies is obtained from skypack.
import like this:
import { Utterances } from 'https://cdn.skypack.dev/utterances-vue-component'
peerDependency
| package | version |
|---|---|
vue | ^3.0.0 |
It has a strict type definition. No default value is set to respect the original behavior.
| Name | Type | Description | |
|---|---|---|---|
repo | ${String}/${String} | Repository for Utterances to connect to. Expected value: username/repo | |
theme | Theme | The Utterance theme. | |
label | string? | Choose the label that will be assigned to issues created by Utterances. | |
issueTerm | Term | string[]1 | The mapping between blog posts and GitHub issues. | One of them2 |
issueNumber | number | You configure Utterances to load a specific issue by number. Issues are not automatically created. |
declare type Theme =
| 'github-light'
| 'github-dark'
| 'preferred-color-scheme'
| 'github-dark-orange'
| 'icy-dark'
| 'dark-blue'
| 'photon-dark'
| 'boxy-light'
declare type Term = 'pathname' | 'url' | 'title' | 'og:title'
If you chose "Issue title contains specific term", specify the specific term as string array.
Unfortunately, props in vue cannot be exclusively defined. You can specify either an issueTerm or an issueNumber.
Contributions, issues and feature requests are welcome!
Feel free to check
issues.
Give a ⭐️ if this project helped you!
Copyright © 2021-present TomokiMiyauci.
Released under the MIT license
FAQs
Type safety vue component for utterances
We found that utterances-vue-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.