Manifest V3 구조 이해
manifest.json 파일을 자세히 살펴보고 Manifest V3에 필요한 필드와 일반적인 구성을 배웁니다.
Manifest V3 구조 이해은(는) CoddyKit의 무료 Browser Extensions Development (Chrome & Edge) 강의입니다. 이것은 4개 중 1번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Browser Extensions Development (Chrome & Edge) 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Browser Extensions Development (Chrome & Edge) 강의에는 총 4개의 강의가 포함되어 있습니다.
이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.
The Blueprint of Your Extension
Every browser extension starts with a core configuration file called manifest.json. Think of it as the blueprint or identity card for your extension.
This file tells the browser everything it needs to know: its name, version, what permissions it needs, and which files make up its different parts.
Introducing Manifest V3
Manifest V3 is the latest version of the extension platform, bringing significant changes focused on security, privacy, and performance.
All new extensions must use Manifest V3, and existing extensions are migrating. Understanding its structure is crucial for modern extension development.
Required Field: manifest_version
The manifest_version field is mandatory and tells the browser which set of APIs and security features your extension expects.
- For Manifest V3, this value must always be
3. - It's the very first declaration in your
manifest.jsonfile.
Required Fields: name and version
These two fields are also essential for every extension:
name: This is the user-visible name of your extension. It appears in the browser's extension management page and in the web store.version: This specifies the version of your extension, typically following semantic versioning (e.g., "1.0.0"). It helps users track updates.
Your First Manifest File
Let's see the absolute minimum needed for a valid Manifest V3 file. This simple JSON structure is the foundation for any extension you build.
{
"manifest_version": 3,
"name": "My Basic Extension",
"version": "1.0"
}Optional Field: description
While not strictly required, adding a description is highly recommended. It provides a short summary of what your extension does.
This description is visible to users in the browser's extension management page and is crucial for your listing in the Chrome Web Store or Edge Add-ons store.
Optional Field: icons
The icons field allows you to define images that represent your extension. Browsers use different sizes for various UI contexts:
- Toolbar buttons (16x16, 24x24, 32x32 pixels)
- Extension management page (48x48 pixels)
- Web store listing (128x128 pixels)
Always provide a 128x128 icon for store listings.
Optional Field: action
The action field defines the behavior of your extension's toolbar button, often called the 'browser action' button. This is the icon next to the address bar.
It commonly points to an HTML file (a "popup") that appears when the button is clicked, allowing for quick user interaction with your extension's UI.
A More Detailed Manifest
Let's expand our manifest to include a description, icons, and an action popup. This gives your extension a clear identity and a basic interactive element.
{
"manifest_version": 3,
"name": "My Awesome Extension",
"version": "1.0",
"description": "A simple extension to do awesome things!",
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "icons/icon16.png",
"24": "icons/icon24.png",
"32": "icons/icon32.png"
},
"default_title": "Click to open!"
}
}Quick Check on Manifest Fields
Based on what you've learned, identify the fields that are absolutely required in a Manifest V3 manifest.json file.
Manifest V3: Your Extension's Identity
We've explored the fundamental role of the manifest.json file, understanding it as the blueprint for your browser extension.
- You learned about the three critical required fields:
manifest_version(always 3),name, andversion. - We also touched upon important optional fields like
description,icons, andaction, which define your extension's appearance and basic user interface.
Mastering the manifest file is the first step to building powerful and compliant browser extensions!
자주 묻는 질문
“Manifest V3 구조 이해” 강의는 무료인가요?
네 — “Manifest V3 구조 이해” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Browser Extensions Development (Chrome & Edge) 강의 전체를 잠금 해제할 수 있습니다. Browser Extensions Development (Chrome & Edge) 강의에는 총 4개의 강의가 포함되어 있습니다.
“Manifest V3 구조 이해”에서 뭘 배우나요?
manifest.json 파일을 자세히 살펴보고 Manifest V3에 필요한 필드와 일반적인 구성을 배웁니다. 브라우저에서 직접 실행하는 실습 코드로 Browser Extensions Development (Chrome & Edge)을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.
Browser Extensions Development (Chrome & Edge)을(를) 시작하는 데 경험이 필요한가요?
사전 경험은 필요하지 않습니다. CoddyKit의 Browser Extensions Development (Chrome & Edge)은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 1번째 강의입니다.
“Manifest V3 구조 이해” 강의는 얼마나 걸리나요?
대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.
이 Browser Extensions Development (Chrome & Edge) 강의에서 코드를 작성하고 실행할 수 있나요?
네. 모든 Browser Extensions Development (Chrome & Edge) 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.
이 강의의 모든 강의
- Manifest V3 구조 이해
- 백그라운드 서비스 워커
- 권한 및 호스트 일치
- 작업, 아이콘과 도구 모음 버튼