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
WebComponentとSSGで作る 個人開発Webフロントエンド / TechTalk #69
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
mazrean
March 05, 2026
Programming
73
0
Share
WebComponentとSSGで作る 個人開発Webフロントエンド / TechTalk #69
mazrean
March 05, 2026
More Decks by mazrean
See All by mazrean
瑠璃の宝石に学ぶ技術の声の聴き方 / 【劇場版】アニメから得た学びを発表会2026 #エンジニアニメ
mazrean
0
340
Go Proposal Weekly Digestの作り方 / Go Connect #11
mazrean
0
130
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
530
GC25 Recap: The Code You Reviewed is Not the Code You Built / #newt_gophercon_tour
mazrean
0
450
社会人になっても趣味開発を続けたい! / traPavilion
mazrean
1
410
KessokuのDIにおけるgoroutineスケジューリング / golang.tokyo #41
mazrean
0
480
作って理解するGOCACHEPROG / Go Conference 2025(Workshop)
mazrean
0
500
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
720
KessokuでDIでもgoroutineを活用する / Go Connect #6
mazrean
0
690
Other Decks in Programming
See All in Programming
AI-DLC Deep Dive
yuukiyo
9
5.6k
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
110
Back to the roots of date
jinroq
0
780
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
160
20260514_its_the_context_window_stupid.pdf
heita
0
850
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
150
20260514 - build with ai 2026 - build LINE Bot with Gemini CLI
line_developers_tw
PRO
0
380
【26新卒研修】OpenAPI/Swagger REST API研修
dip_tech
PRO
0
150
[RubyKaigi 2026] Require Hooks
palkan
1
310
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
200
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
130
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
28
19k
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
440
Raft: Consensus for Rubyists
vanstee
141
7.4k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
180
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
800
Paper Plane (Part 1)
katiecoart
PRO
0
7.3k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.5k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
790
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
780
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
690
Transcript
WebComponentとSSGで作る 個人開発Webフロントエンド @mazrean TechTalk #69
若松俊介 / mazrean ▪ IT本部IT基盤部第二G • Web フロント本職ではない ▪ Frontend
Up! / Go Day ▪ 強制デジタルデトックス中 • スマホが壊れた… @mazrean22 マズリーン 2
「とりあえずNext.js」 していませんか?
Next.jsは大抵Better以上の選択肢 Next.jsは何でもできて優秀 ▪ レンダリング 方法の選択肢の多さ ▪ 強力なエコシステム 4
レンダリング方法の選択肢の多さ ▪ 大抵の方法を選択可能 • CSR(Client-side Rendering) • SSR(Server-side Rendering) •
PPR(Partial Prerendering) ▪ そもそもNext.jsが潮流を作っている 5 Header Sidebar Footer 購入数選択 商品説明
強力なエコシステム ▪ Reactの豊富なライブラリ 群を使用可能 ▪ 大抵の周辺ツール がサポートしている • バンドラ •
Linter • 開発サーバー 6 …
個人開発でBestか? 個人開発でBestとは限らない ▪ 不要なレンダリング の複雑性 ▪ ライブラリ更新 が大変 7
不要なレンダリングの複雑性 ▪ SSRは不要な場合も多い • 初期表示に動的コンテンツがないと意味がない ▪ 手間を生む • サーバー運用 •
AIが最適解を選ばない • 脆弱性も生みやすい(React2Shell) 8 Header Sidebar Footer 購入数選択 商品説明 不要 AIが誤用
ライブラリ更新が大変 ▪ 使ったライブラリ は更新が必要 • 少なくとも脆弱性対応は必要 • 一度サボると更に大変に… ▪ Reactはライブラリ使用前提な部分もある
• 特に状態管理 9 … 使ったら更新必須
Web Components 使いませんか?
Web Componts Web標準で構成されたコンポーネント機構 ▪ 素のブラウザ上で動作 • template + Shadow DOM
▪ CSR相当の役回りが可能 11 Web Components
Lit Web Componentsの薄いラッパーライブラリ ▪ 記述の煩雑さを軽減 • デコレーター による記法提供 • 簡易的な状態管理機構の提供
▪ 外部依存がない • Litのみの更新でok 12
デプロイ時のレンダリング PPRは好きなテンプレートエンジンでok ▪ ejs ▪ tmpl • Goのテンプレートエンジン ▪ PHP
13 テンプレートエンジン
この構成のメリット ▪ 依存が極めて少ない • 基本的にLitとテンプレートエンジンのみ • 加えてLinter、バンドラが入る程度 ▪ 維持コスト が低い
• 静的配信だけなら無料で済む ▪ CSR・PPRのコード上での区別が容易 • AIの書いたコードの読解が楽 14
採用例
Go Proposal Weekly Digest ▪ Go言語本体への機能提案まとめ ▪ 週次更新 16 https://go-proposal-weekly-digest.mazrean.com/
まとめ ▪ Next.js、個人開発には複雑過ぎない? ▪ Web Componentsで最小限の構成が可能 • テンプレートエンジンを組み合わせる • Litで記述も容易にできる
▪ 実際にいくつか開発してみている • Go Proposal Weekly Digest • もっと動的なサービスも作れる 17