Qrcode Vueのロゴ

Qrcode Vue

コミュニティ
scopewu
qrcode-vue

Generate QR codes in Vue 3 apps with the qrcode.vue component library. Use this skill whenever the user wants to render, style, or download a QR code in Vue — including QR with a logo/image, gradient or rounded modules, SVG vs canvas output, SSR/Nuxt usage, or TypeScript typing — even if they don't name the library explicitly.

概要

公開者scopewu
リポジトリqrcode.vue
スキル名qrcode-vue
スター
827
フォーク
89
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    scopewuがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Qrcode Vue」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/scopewu/qrcode.vue/tree/main/skills/qrcode-vue
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scopewu/qrcode.vue.git /tmp/qrcode.vue
mkdir -p .claude/skills
cp -r /tmp/qrcode.vue/skills/qrcode-vue .claude/skills/qrcode-vue
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでQrcode Vueを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にQrcode Vueを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Qrcode Vueは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

qrcode.vue

A Vue.js component to generate QR codes. Version 3.x targets Vue 3 only (Vue 2 apps must use qrcode.vue 1.x). Peer dependency: vue@^3.0.0. No other runtime dependencies.

Install

bash
npm install --save qrcode.vue   # or: yarn add qrcode.vue

Exports

ts
import QrcodeVue, { QrcodeCanvas, QrcodeSvg } from 'qrcode.vue'
import type { Level, RenderAs, GradientType, ImageSettings } from 'qrcode.vue'
  • QrcodeVue (default) — switches between canvas and SVG via the render-as prop.
  • QrcodeCanvas / QrcodeSvg (named) — single-renderer components. Prefer these when the renderer is fixed.

CommonJS / CDN note: exports are named since 3.5 — use require('qrcode.vue').default or QrcodeVue.default when loading the UMD bundle.

Props

All three components share these props (render-as exists only on QrcodeVue):

PropTypeDefaultNotes
valuestring''Required. QR content.
sizenumber100Element size in px.
render-as'canvas' | 'svg''canvas'QrcodeVue only. Use 'svg' for SSR.
level'L' | 'M' | 'Q' | 'H''L'Error correction. Use 'H' when embedding a logo.
backgroundstring'#fff'Background color.
foregroundstring'#000'Module color (ignored when gradient is on).
marginnumber0Quiet-zone width in modules, >= 0.
radiusnumber0Module corner radius, 0–0.5. 0.5 = circular modules. Inner corners between adjacent modules stay sharp.
gradientbooleanfalseEnable gradient fill.
gradient-type'linear' | 'radial''linear'Gradient direction type.
gradient-start-colorstring'#000'Gradient start.
gradient-end-colorstring'#fff'Gradient end.
image-settingsImageSettings{}Embedded logo, see below.
idstringundefinedID base for internal SVG defs. Pass useId() (Vue 3.5+) for SSR hydration safety.
ts
type ImageSettings = {
  src: string                                          // image URL
  x?: number; y?: number                               // offset; centered when omitted
  height?: number; width?: number                      // default: 10% of `size`
  excavate?: boolean                                   // clear modules behind the image
  borderRadius?: number
  crossOrigin?: 'anonymous' | 'use-credentials' | ''   // required to export canvas with a cross-origin logo
}

Template ref methods

Expose toDataURL and download on all components (QrcodeVue forwards to the active renderer):

html
<script setup>
import { ref } from 'vue'
import { QrcodeCanvas } from 'qrcode.vue'

const qrRef = ref()
const save = () => qrRef.value?.download('qrcode.png')
</script>

<template>
  <qrcode-canvas ref="qrRef" value="https://example.com" />
  <button @click="save">Download</button>
</template>
  • Canvas: toDataURL(type?, quality?), download(filename?) → PNG.
  • SVG: toDataURL(), download(filename?) → SVG.

Recipes

QR with a centered logo — always raise level so the code stays scannable:

html
<qrcode-svg
  value="https://example.com"
  :size="300"
  level="H"
  :image-settings="{ src: logoUrl, width: 60, height: 60, excavate: true, borderRadius: 8 }"
/>

Gradient + rounded modules:

html
<qrcode-vue
  value="https://example.com"
  render-as="svg"
  gradient
  gradient-type="radial"
  gradient-start-color="#000000"
  gradient-end-color="#38bdf8"
  :radius="0.35"
/>

SSR / Nuxt — render as SVG and pass a stable id:

html
<script setup>
import { useId } from 'vue'
import { QrcodeSvg } from 'qrcode.vue'
const uid = useId() // Vue 3.5+; on older versions pass any unique string
</script>

<template>
  <qrcode-svg value="https://example.com" :id="uid" />
</template>

Pitfalls

  • Vue 2: do not use 3.x — install qrcode.vue@1.x.
  • Tainted canvas: with a cross-origin logo, set imageSettings.crossOrigin: 'anonymous' and ensure the image server sends Access-Control-Allow-Origin, or toDataURL/download throws SecurityError.
  • SSR hydration: without an explicit id, internal SVG IDs come from a module-level counter and can mismatch between server and client. Always pass useId() under SSR.
  • Scannability: keep contrast high between foreground/gradient and background; a logo covering too much area breaks scanning even at level H.
  • Multiple instances with gradients: id keeps each SVG's <defs> unique; collisions cause one QR's gradient to leak into another.

よくある質問

AIスキル「Qrcode Vue」では何ができますか?

Generate QR codes in Vue 3 apps with the qrcode.vue component library. Use this skill whenever the user wants to render, style, or download a QR code in Vue — including QR with a logo/image, gradient or rounded modules, SVG vs canvas output, SSR/Nuxt usage, or TypeScript typing — even if they don't name the library explicitly.

TypingMindでQrcode Vueを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Qrcode Vueはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにQrcode Vueをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/scopewu/qrcode.vue/tree/main/skills/qrcode-vueを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Qrcode Vueを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Qrcode Vueで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもQrcode Vueを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Qrcode Vue」は無料ですか?

はい。scopewuがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇