Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Plasmoの紹介
Search
Yohei Iino
May 14, 2023
Technology
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Plasmoの紹介
Plasmoの紹介
Yohei Iino
May 14, 2023
More Decks by Yohei Iino
See All by Yohei Iino
1年半放置したExpo製アプリを最新化してみた
wheatandcat
0
120
作成中のFlutterアプリの中間発表
wheatandcat
0
95
最近読んだ技術書を簡単紹介
wheatandcat
0
120
ユニバーサルリンク/アプリリンクを使ってQRコードでゲストログインできるようにする
wheatandcat
0
390
Firebase App Checkを実装したので紹介
wheatandcat
0
340
PlanetScaleの無料プランがなくなるので、NeonとTiDBを試してみた
wheatandcat
0
430
Flutter HooksとRiverpodの解説
wheatandcat
0
590
T3 Stack(応用編: Next Auth & SSRの実装紹介)
wheatandcat
1
420
App Routerの紹介
wheatandcat
0
160
Other Decks in Technology
See All in Technology
WAF 運用改善の承認サイクル/SRE_BizReach_MIXI_1
visional_engineering_and_design
1
360
omasushiというライブラリを作った
polidog
PRO
0
130
Genie Code ワークショップ 応用編 / Genie-Code-Workshop-advanced
databricksjapan
PRO
0
360
こんなアーキテクチャ図は嫌だ BEYOND THE TIME: 半年後の自分へ贈る15のメッセージ / 15 of Anti-pattern in AWS Architecture Diagrams
naospon
3
260
生成AI時代の クレデンシャルとパーミッション設計
nrinetcom
PRO
4
1.6k
When Does a Local Qwen Start to Break
morshoto
0
190
AI時代のAPI品質を支えるガードレール / API Guardrails for API quality in the AI era
yokawasa
1
160
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
240
AIに丸投げしないトイル削減 / Eliminating Toil Without Leaving It All to AI
kohbis
3
990
Driving AI Adoption Using In-House GPUs to Serve Qwen
po3rin
2
460
Bet AI Day 2026丨Agentは、「金融」という巨大産業の何を変えられるのか
layerx
PRO
0
1.2k
AI時代に、プロダクトの数だけ積み上がる所有コストをどうエンジニアリングするか / Engineering the Cost of Ownership
kzkmaeda
1
1.1k
Featured
See All Featured
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
Claude Code のすすめ
schroneko
67
230k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
From π to Pie charts
rasagy
0
360
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
190
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
340
GraphQLとの向き合い方2022年版
quramy
50
15k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
The Spectacular Lies of Maps
axbom
PRO
1
980
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Transcript
Plasmo の紹介 Press Space for next page
自己紹介 📝 飯野陽平(wheatandcat ) 🏢 法人設立(合同会社UNICORN 代表社員) 💻 Work: シェアフル株式会社CTO
📚 Blog: https://www.wheatandcat.me/ 🛠 今までに作ったもの memoir ペペロミア Atomic Design Check List
Plasmo とは? ブラウザ拡張機能を作成するためのReact フレームワーク TypeScript & React で簡単にChrome 拡張が作成できる 従来のChrome
拡張で必要だった設定周りフレームワーク側で抽象化されている
セットアップ 以下のコマンド実行でプロジェクトの作成gは完了 Getting Started | Plasmo $ pnpm create plasmo
コード プロジェクトの作成時は以下のようなコードが生成される import { useState } from "react" function IndexPopup()
{ const [data, setData] = useState("") return ( <div> <h2> Welcome to your{" "} <a href="https://www.plasmo.com" target="_blank"> Plasmo </a>{" "} Extension! </h2> <input onChange={(e) => setData(e.target.value)} value={data} /> <a href="https://docs.plasmo.com" target="_blank"> View Docs </a> </div> ) } export default IndexPopup
簡単なChrome 拡張を作成したので紹介 ▪ plasmo-demo https://github.com/wheatandcat/plasmo-demo
モチベーション 技術系記事をストックする機能が欲しかった ブラウザのブックマークやGoogle Keep だと、見返した時にどこに保存したか忘れるケースが多い 大体のケースは読み終わったら削除してOK だが、既存だと削除が手間なシステムが多い まだ開発中なので、ここから自分好みにカスタマイズしていく予定
デモ 以下は動かしながら紹介する コード https://github.com/wheatandcat/plasmo-demo/blob/main/popup.tsx データの保存はPlasmo のStorage API を使用 デザインはTailwindCSS を使用
右クリックのMenu に追加はBackground Service Worker を使えば可能 コード
まとめ かなり簡単にChrome 拡張が作れるのでオススメ デバッグツールとか作っても良いかも Chrome 拡張特有の部分は抽象化しているので、React さえ知っていれば誰でも自作できる
ご清聴ありがとうございました 🎉