最終更新: 2026-08-11 / 対象バージョン: v0.3.0 Last updated: 2026-08-11 / Covers v0.3.0

SR Query Builder Plugin

研究プロトコルの入力から PubMed 検索式のドラフト生成・検証・各データベース向け変換までを支援する Chrome 拡張 A Chrome extension that takes you from a research protocol to a drafted, validated PubMed search strategy — and converts it for other databases

操作解説動画 Video walkthrough

研究プロトコルの入力から検証済み検索式のエクスポートまでを、実際の画面で通して解説しています(約 21 分・全 14 章)。説明欄のチャプターから各工程へ頭出しできます。ナレーションは日本語、英語字幕(CC)付きです。 A full walkthrough on the real screens, from entering a research protocol to exporting a validated search strategy (about 21 minutes, 14 chapters). Use the chapters in the video description to jump to a step. Narration is in Japanese with English subtitles (CC).

なにをするツールか What it does

  1. 研究プロトコル(リサーチクエスチョン・PICO 等)を入力します(手入力 / .md / .docx ファイル)。 Enter your research protocol (research question, PICO, …) by hand or import it from a .md or .docx file.
  2. 生成 AI(LLM プロバイダ。既定は Gemini、BYOK)が、プロトコルから PubMed 検索式のドラフトを作成します。 Generative AI (your chosen LLM provider; Gemini by default, BYOK) drafts a PubMed search strategy from the protocol.
  3. NCBI E-utilities を使い、ブロックごとのヒット数・シード論文の捕捉率・MeSH 用語をライブ検証します。 NCBI E-utilities validate the draft live: per-block hit counts, seed-paper capture rate, and MeSH terms.
  4. (実験的機能)境界事例となりそうなシード論文候補を対話的に提示し、include / exclude 判定で検索式を最適化します。 (Experimental) Borderline seed-paper candidates are presented interactively; your include / exclude decisions refine the query.
  5. 最終検索式を CENTRAL / Embase(Dialog) / ClinicalTrials.gov / ICTRP 向けに変換して出力し、PubMed の nbib ダウンロードなどへ案内します。 The final query is converted for CENTRAL / Embase (Dialog) / ClinicalTrials.gov / ICTRP, with guidance to the PubMed nbib download.

画面イメージ Screenshots

研究プロトコル入力画面(#/protocol)
研究プロトコル入力画面(#/protocol) Research protocol input screen (#/protocol)
検索式ブロック承認画面(#/blocks)
検索式ブロック承認画面(#/blocks) Search block approval screen (#/blocks)
検索式ドラフト生成画面(#/draft)。「生成して検証する」でブロックごとのヒット数をライブ表示
検索式ドラフト生成画面(#/draft)。「生成して検証する」でブロックごとのヒット数をライブ表示 Search draft generation screen (#/draft): “Generate and validate” shows per-block hit counts live
検証結果(捕捉率・MeSH 検証。#/draft 内に統合表示)
検証結果(捕捉率・MeSH 検証。#/draft 内に統合表示) Validation results (capture rate and MeSH check, shown inline within #/draft)
各データベース変換・エクスポート画面(#/export)
各データベース変換・エクスポート画面(#/export) Database conversion and export screen (#/export)

画像はテスト用データで、実データは含みません。 The screenshots use test data only; no real study data is shown.

サーバーレス構成(BYOK) Serverless by design (BYOK)

開発者が運用するサーバーは存在しません。データは、利用者自身の Google アカウントと、利用者が自分の API キーで契約する LLM プロバイダ(Gemini または OpenRouter。既定は Gemini) / NCBI API の間でのみ流通します。 There is no developer-operated server. Your data flows only between your own Google account and the LLM provider (Gemini or OpenRouter; Gemini is the default) / NCBI API you use with your own key.

保存先はあなたの Google アカウント Stored in your Google account

プロジェクト DB は Google Sheets、LLM API ログの実体は Google Drive に置かれます。 The project database is a Google Sheet; LLM API log files live in your Google Drive.

要求する OAuth スコープは 1 つだけ Only one OAuth scope

drive.file」のみ。Drive 全体や全スプレッドシートを読む権限は要求しません。 Just drive.file — never full Drive or all-spreadsheet access.

BYOK の API キー Bring your own API keys

検索式ドラフト生成には選択した LLM プロバイダ(既定は Gemini。OpenRouter への切替も可)のキーが必須、NCBI API キーは検証時のレート制限緩和用(任意)です。キーはブラウザ内にのみ保存されます。 Drafting the search strategy requires a key for your selected LLM provider (Gemini by default; OpenRouter can be selected too); an NCBI API key (optional) eases rate limits during validation. Keys never leave your browser.

MIT ライセンスの OSS MIT-licensed open source

ソースコードは GitHub で公開しています。 The source is public on GitHub.

はじめかた Getting started

本拡張は Chrome ウェブストアで公開されています。ストアからインストールし、API キーを設定すれば、すぐに使い始められます。 The extension is published on the Chrome Web Store. Install it from the store, set your API keys, and you’re ready to go.

  1. Chrome ウェブストアから本拡張をインストールします。 Install the extension from the Chrome Web Store.
  2. 拡張アイコンを右クリック →「オプション」で設定画面を開き、ご自身の API キーを保存します(BYOK)。検索式ドラフトの生成には LLM プロバイダの API キーが必須です(既定は Gemini。OpenRouter への切替も可)。NCBI API キーは任意です。 Right-click the extension icon → “Options” to open the settings screen and save your own API keys (BYOK). Drafting the search strategy requires an API key for the LLM provider (Gemini by default; OpenRouter can be selected too). An NCBI API key is optional.
  3. 拡張アイコンをクリックして Popup を開き、Google アカウントでログインしてプロジェクトを作成します。 Click the extension icon to open the Popup, sign in with your Google account, and create a project.

操作の詳細は使い方ガイドを参照してください。 See the user guide for the full walkthrough.

開発者向け: ソースからビルドする For developers: build from source

GitHub からソースを取得して自分でビルドすることもできます。Google ログインまで通すには、利用者自身の Google Cloud OAuth クライアント IDを発行して設定する必要があります。 You can also get the source from GitHub and build it yourself. To get Google sign-in working, you’ll need to issue and configure your own Google Cloud OAuth client ID.

  1. GitHub リポジトリを取得し、 npm install を実行します。 Clone the GitHub repository and run npm install.
  2. Google Cloud Console で OAuth クライアント ID(種類: Chrome 拡張機能。コンソールの表記が「Chrome App」になっている場合もあります)を発行します。アプリケーション ID には bckokafmjighegpjiocopkagghppnjld を指定してください。これは src/manifest.json に固定の公開鍵(key)が含まれているため、誰の環境でビルドしてもこの値になります(手順4の npm run dev はこの鍵を残したままビルドするので拡張 ID が固定されます。鍵を取り除くのは本番ビルドの npm run build の方で、この手順では使いません)。OAuth 同意画面は要求スコープが非センシティブな drive.file のみのため Google の追加審査は不要ですが、画面自体(アプリ名・サポートメール等)の設定は必要です。 In Google Cloud Console, issue an OAuth client ID of type “Chrome Extension” (some versions of the console label this “Chrome App”), using bckokafmjighegpjiocopkagghppnjld as the application ID. This value is fixed because src/manifest.json ships with a pinned public key (key), so it’s the same regardless of who builds it (step 4’s npm run dev keeps this key in the build, which is exactly why the extension ID stays fixed — it’s the production build, npm run build, that strips the key, and this guide doesn’t use that). The OAuth consent screen only needs to request the non-sensitive drive.file scope, so no extra Google verification is required — but you do still need to fill in the basics (app name, support email, etc.).
  3. リポジトリ直下に .env を作成し(.env.example を参考に)、発行したクライアント ID を OAUTH_CLIENT_ID(または LOCAL_OAUTH_CLIENT_ID)に設定します。 Create a .env at the repository root (see .env.example) and set the client ID you issued as OAUTH_CLIENT_ID (or LOCAL_OAUTH_CLIENT_ID).
  4. npm run dev を実行して dist/ を生成します(本番ビルドの npm run build は使わないでください.envOAUTH_CLIENT_ID が無いとエラーで停止するうえ、manifest から key を取り除くため拡張 ID が変わってしまい、手順2で発行した OAuth クライアント ID と一致しなくなります)。 Run npm run dev to produce dist/ (do not use the production build, npm run build: it fails without OAUTH_CLIENT_ID in .env, and it also strips key from the manifest, which changes the extension ID so it no longer matches the OAuth client ID you issued in step 2).
  5. chrome://extensions でデベロッパーモードを有効にし、「パッケージ化されていない拡張機能を読み込む」で dist/ を選びます。 Enable developer mode at chrome://extensions and load dist/ via “Load unpacked”.
  6. 拡張の Options 画面で、ご自身の LLM プロバイダの API キー(必須。既定は Gemini)と NCBI API キー(任意)を保存します(BYOK)。 Save your own API key for the LLM provider (required; Gemini by default) and NCBI API key (optional) in the extension options (BYOK).
  7. Google アカウントでログインし、プロジェクトを作成します。 Sign in with Google and create a project.