$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
plasmoを使ってみた
Search
Daisuke
September 30, 2024
Programming
0
28
plasmoを使ってみた
Daisuke
September 30, 2024
Tweet
Share
More Decks by Daisuke
See All by Daisuke
iOSアプリ開発 with Claude Code
dsuke0614
0
5
GitHubに毎日草を生やし続けたら変わった3つのこと🌱
dsuke0614
1
220
Other Decks in Programming
See All in Programming
connect-python: convenient protobuf RPC for Python
anuraaga
0
380
sbt 2
xuwei_k
0
250
【CA.ai #3】Google ADKを活用したAI Agent開発と運用知見
harappa80
0
290
【Streamlit x Snowflake】データ基盤からアプリ開発・AI活用まで、すべてをSnowflake内で実現
ayumu_yamaguchi
1
120
Building AI Agents with TypeScript #TSKaigiHokuriku
izumin5210
6
1.2k
テストやOSS開発に役立つSetup PHP Action
matsuo_atsushi
0
150
チームをチームにするEM
hitode909
0
290
251126 TestState APIってなんだっけ?Step Functionsテストどう変わる?
east_takumi
0
310
LLMで複雑な検索条件アセットから脱却する!! 生成的検索インタフェースの設計論
po3rin
2
640
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
5
1.7k
これだけで丸わかり!LangChain v1.0 アップデートまとめ
os1ma
6
1.7k
手が足りない!兼業データエンジニアに必要だったアーキテクチャと立ち回り
zinkosuke
0
580
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.2k
Code Reviewing Like a Champion
maltzj
527
40k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.3k
Why Our Code Smells
bkeepers
PRO
340
57k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Speed Design
sergeychernyshev
33
1.4k
Statistics for Hackers
jakevdp
799
230k
Mobile First: as difficult as doing things right
swwweet
225
10k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.1k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
710
Transcript
plasmo を使ってみた
Kida Daisuke(@0614d_suke) web developer. - https://github.com/D-suke0614 - https://zenn.dev/d_suke0614
話すこと - 拡張機能を開発する際の手順 - plasmoの紹介 - plasmoを使ったら簡単に拡張機能が作れる! 話さないこと - 拡張機能やplasmoについての詳細や実装方法など
Chrome拡張機能とは
1. プロジェクトディレクトリの作成 2. manifest.jsonの作成 a. https://qiita.com/shiro1212/items/12f0a767494a7b2ab0b3 3. 機能の実装 4. Chromeで読み込む
https://developer.chrome.com/docs/extensions/get-started/tutori al/hello-world?hl=ja Chrome拡張機能の作り方
1. プロジェクトディレクトリの作成 2. manifest.jsonの作成 a. https://qiita.com/shiro1212/items/12f0a767494a7b2ab0b3 3. 機能の実装 4. Chromeで読み込む
https://developer.chrome.com/docs/extensions/get-started/tutori al/hello-world?hl=ja Chrome拡張機能の作り方
manifest.json - 拡張機能に関する設定ファイル - 名前 - バージョン - 各ファイルのパス指定 -
アイコン - 権限の指定 - ホストの指定など
デモ content scriptsを追加
plasmoとは - 拡張機能を簡単に開発、テスト、リリースできるオールインワンプラット フォーム - TS, React, Preact, Svelte, Vueをサポートしている
- 拡張機能に必要な設定周りをフレームワーク側でいい感じに吸収してくれ ている - ソースファイルを元に、manifest.jsonを自動生成
plasmoを使うと嬉しいこと - ゼロコンフィグで開発を進められる - manifest.jsonをほぼ意識しなくて良い - ロジックや見た目に集中できる - デフォルトでReact +
TSがサポートされている
デモ content scriptsを追加 バニラで実装したときとの比較
plasmoのその他の機能 - Background Service Workerもbackground.tsを追加するだけで実行 できる - Messaging APIが使える -
デプロイ用のスクリプトが用意されている
その他のFW - WXT - Viteベース - 全てのブラウザに対応 - Extension.js -
既存PJに組み込み可能
まとめ - plasmoを使うと簡単に拡張機能が作れておすすめ - manifest.jsonをあまり意識せず、ロジックや見た目に集中できる - 拡張機能を作ってみるきっかけになれば
thank you.