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
110
作成中のFlutterアプリの中間発表
wheatandcat
0
93
最近読んだ技術書を簡単紹介
wheatandcat
0
120
ユニバーサルリンク/アプリリンクを使ってQRコードでゲストログインできるようにする
wheatandcat
0
390
Firebase App Checkを実装したので紹介
wheatandcat
0
330
PlanetScaleの無料プランがなくなるので、NeonとTiDBを試してみた
wheatandcat
0
430
Flutter HooksとRiverpodの解説
wheatandcat
0
590
T3 Stack(応用編: Next Auth & SSRの実装紹介)
wheatandcat
1
410
App Routerの紹介
wheatandcat
0
160
Other Decks in Technology
See All in Technology
医療の現場を変革に挑戦した半年間の軌跡 - PythonとAIで現場を変える / From Code to Care
soudai
PRO
0
300
SmartHR Engineering Team Deck
smarthr
1
3.1k
AI時代に、人は何を、どう学ぶのか #pbl_pub / What and How Do We Learn in the AI Era?
takaking22
1
180
三人寄ればチューリング完全
puhitaku
3
850
その“隠したつもり”が命取り ── 自前と平文をやめて「正解」に委ねる
kuroneko13
0
130
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
平文パスワードはログに“残り” ── 肝心の侵入は“痕跡すら残らない”
kuroneko13
0
110
【GCC2026】鉄拳8でのVFX開発事例
bandainamcostudios
PRO
0
120
2027年のMetricKit
kantacky
0
130
社内の7割が使うデータ基盤を、 データチーム2人で回すためにやったこと
koh_yoshi
4
1.5k
Genie Codeハンズオン応用編
taka_aki
0
130
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
290
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.4k
Balancing Empowerment & Direction
lara
6
1.2k
Music & Morning Musume
bryan
47
7.3k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
250
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
500
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
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 さえ知っていれば誰でも自作できる
ご清聴ありがとうございました 🎉