file in abyss
フォーマット一覧へ戻る

Web

WEBMANIFEST Web App Manifest

PWAの名前、アイコン、表示方式などを記述するJSONベースのWebアプリ設定ファイル。

Extensions .webmanifest
MIME application/manifest+json

マジックナンバー

ファイルを解析
オフセット 0 JSON objectで始まるWeb manifest
7B
{

構造

  1. JSON object
  2. name
  3. icons
  4. start_url
  5. display

注意点

  • JSONと同じ先頭になるため、manifest固有の判定にはnameやiconsなどのキー確認が必要です。

判定コード例

SIGNATURE = bytes.fromhex("7b")
OFFSET = 0

def is_webmanifest(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

実践的な使い方

ユースケース

Web App Manifest はデータ交換、インポート/エクスポート、パーサのテスト、検証ワークフローで使われます。エンコーディング・区切り文字・バージョン・コンテナ構造が実装の挙動を変えることがあります。

よくある判定ミス

  • .webmanifest という拡張子だけではファイルの中身を保証できません。アップロードや変換の処理では、拡張子・MIMEタイプ・先頭バイト・形式固有の構造チェックを組み合わせるべきです。
  • Web App Manifest は 7B のようなシグネチャで始まりますが、関連するコンテナや破損ファイルでは追加の検証が必要になる場合があります。

セキュリティ上の注意

形式が判定できたからといって、信頼できない入力が安全とは限りません。パーサ例外・巨大ファイル・想定外のエンコーディング・外部参照を考慮してください。

サンプルの活用

11 個のサンプルで、先頭バイト判定・パーサのエラー・アップロード上限・ダウンロード挙動をテストできます。

サンプルファイル

11 / 11 files
Sample Traits Size Source / license / SHA-256
Web

Blue Sky WEBMANIFEST

Blue Sky WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

01-blue-sky.webmanifest
Type Sample
Small file
323 B
SHA-256 a1118202840507a9463f860fb27d1f57471953a6ef177f47826fd51d0c543d04
Download
Web

Flower Garden WEBMANIFEST

Flower Garden WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

02-flower-garden.webmanifest
Type Sample
Small file
352 B
SHA-256 eef127160923ca09488c5d29dec1dab624aca94aac0fb5fd7fbc42c299f78e6c
Download
Web

Navy Blue Sky WEBMANIFEST

Navy Blue Sky WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

03-navy-blue-sky.webmanifest
Type Sample
Small file
344 B
SHA-256 8e0dbcd1131b2f60f715b7c3389b5104ccbbbbc4ee3ec65f99ed96cae1da5310
Download
Web

Nature of the Sky WEBMANIFEST

Nature of the Sky WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

04-nature-sky.webmanifest
Type Sample
Small file
334 B
SHA-256 9cb48a614207221de2a79b236f72bc4ed7645201a8bba697342b01628ef87510
Download
Web

Sky Landscape WEBMANIFEST

Sky Landscape WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

05-sky-landscape.webmanifest
Type Sample
Small file
353 B
SHA-256 eb11dc5d563a2baaf8690fcfc2999ff585e7bcc318d5274f5a08c354a710f85c
Download
Web

Starry Sky WEBMANIFEST

Starry Sky WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

06-starry-sky.webmanifest
Type Sample
Small file
334 B
SHA-256 0c3c3e69bd4fbeea93f962179ab868f22d0b12dc0401292b257844ad46dff4af
Download
Web

Blue Night Sky WEBMANIFEST

Blue Night Sky WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

07-blue-night-sky.webmanifest
Type Sample
Small file
330 B
SHA-256 6023e36c74558a74df60bdf5a0c024b1f118f795b310cc9caae2124e626668f9
Download
Web

Hibiscus Flower WEBMANIFEST

Hibiscus Flower WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

08-hibiscus-flower.webmanifest
Type Sample
Small file
357 B
SHA-256 09e21b04ec711650660ce9802c3fa71fab13d143acd9c566a4e146b5e7cb1858
Download
Web

Arctic Sky WEBMANIFEST

Arctic Sky WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

09-arctic-sky.webmanifest
Type Sample
Small file
336 B
SHA-256 19215d869be10789687871a0ce774bdf23fd781245532aaeb036b78d60b719e5
Download
Web

Sunset Rays WEBMANIFEST

Sunset Rays WEBMANIFEST is a Web App Manifest sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

10-sunset-rays.webmanifest
Type Sample
Small file
340 B
SHA-256 d38702e1cabd3611690e693e6b4875a9ce0850100288da2865fe0ab226b8b012
Download
Web

NASA Blue Marble WEBMANIFEST

NASA Blue Marble WEBMANIFEST is a Web App Manifest sample based on NASA Image and Video Library. It can be used to test downloads, parsers, previews, and file type detection.

nasa-blue-marble-2012-east.webmanifest
Type Sample
Small file
392 B
SHA-256 72c3dc4637b4ffba79fb2511189c38f45b0aa82fe6f5850a9c48966b04383b99
Download

よくある質問

Web App Manifest のマジックナンバー(ファイルシグネチャ)は?

Web App Manifest ファイルはバイトシグネチャ 7B ("{") で始まります。拡張子に頼らず、この先頭バイトを読み取って形式を判定してください。

Web App Manifest のMIMEタイプは?

Web App Manifest のMIMEタイプは application/manifest+json です。

Web App Manifest の拡張子は?

Web App Manifest ファイルは .webmanifest 拡張子を使います。拡張子は慣習にすぎず中身を保証しないため、シグネチャや構造のチェックと組み合わせてください。

関連フォーマット