WorksHub

LOCAL-FIRST FOOD INVENTORY

賞味期限管理

冷蔵庫、冷凍庫、食品棚にある食品をまとめ、賞味期限が近い順に確認できる家庭向けWebツールです。登録やインストールは必要ありません。

管理できること

食品名、数量、カテゴリ、保存場所、賞味期限、開封状態、メモを記録します。期限ありの食品は日付が近い順、期限なしの食品はその後へ並ぶため、先に確認したいものが一覧の上に集まります。

探しやすい一覧

食品名・メモ・カテゴリを対象にした検索に加え、冷蔵庫・冷凍庫などの場所と、期限切れ・3日以内・4日以上・期限なしの状態で絞り込めます。消費した食品は一覧からすぐ削除できます。

データと安全性

  • 独立したCloudflare Workersの配信元に割り当てられたLocal Storageだけに保存し、他のHub作品とはブラウザ保存領域を共有しません。
  • 外部通信を禁止するContent Security Policyを設定しています。食品一覧をサーバーへ送る仕組みはありません。
  • JSONバックアップの書き出しと、形式検証付きの復元に対応します。復元すると現在の一覧はバックアップの内容へ置き換わります。
  • 共有端末では同じブラウザを使う人から記録が見える可能性があります。
  • 期限表示は食品安全を保証しません。開封後の状態、保存温度、見た目、においも確認してください。

活用例と運用のコツ

買い物の直後に入口をそろえる

冷蔵品をしまう際に、食品名、数量、保存場所、賞味期限をまとめて登録します。カテゴリは後から探すための大まかな分類、メモは「金曜の夕食に使う」「開封後は早めに」など具体的な予定に分けると、検索結果が読みやすくなります。期限がない調味料や乾物も登録できますが、全品を細かく記録するより、買い忘れや重複購入を避けたい品目から始めるほうが続けやすくなります。

献立を決める前に期限状態を見る

夕食を考えるときは「3日以内」で絞り込み、冷蔵庫や野菜室など使いたい場所を選びます。期限切れの表示は廃棄を自動判断するものではなく、確認が必要な食品を見つけるための印です。実際に使うかどうかは、表示された日付だけでなく保存状態と食品表示を合わせて判断します。

週に一度、実物と一覧を合わせる

消費した食品を一覧へ残したままにすると、検索や件数が実際の在庫とずれます。週末など決まった時間に冷蔵庫・冷凍庫を一か所ずつ確認し、なくなった品は「消費・削除」、場所を移した品や開封した品は「編集」で更新します。家族で共有する場合は、同じ端末・同じブラウザを在庫確認用に決めると記録が分散しません。

データの保存と削除

食品一覧は、PANTRYを開いたブラウザのLocal Storageへ保存されます。保存項目は食品名、数量、カテゴリ、保存場所、賞味期限、開封状態、メモ、更新日時などです。サーバーアカウントはなく、別のブラウザ、シークレットモード、別端末には自動同期されません。ブラウザのサイトデータを消した場合や、端末の初期化を行った場合も一覧は失われます。

個別の食品は「消費・削除」から、全件はデータ管理欄の「全件削除」から消せます。どちらも確認後に実行され、元に戻す機能はありません。ブラウザ設定からPANTRY配信元のCookieとサイトデータを削除する方法でもLocal Storageを消去できます。共有端末を手放す際は、画面上の全件削除に加えてサイトデータが残っていないか確認してください。

機種変更前は「バックアップ」を押してJSONファイルを書き出し、新しい端末で「復元」から読み込みます。復元は追加ではなく現在の一覧との置き換えです。新端末にすでに登録がある場合は、必要な内容を確認してから実行してください。バックアップファイルには入力した食品情報が平文で含まれるため、共有ストレージへ置く場合は閲覧範囲にも注意が必要です。

よくある質問(FAQ)

料金やアカウント登録は必要ですか?

無料で利用でき、アカウント登録も不要です。入力した食品一覧はアカウントではなく、利用中のブラウザにひも付きます。

スマートフォンでも使えますか?

スマートフォンのブラウザでも使えます。ただし同じスマートフォンでも、異なるブラウザへ記録は共有されません。普段使うブラウザを一つ決めてください。

オフラインで使えますか?

食品データの処理自体はブラウザ内で行われ、アプリから外部APIへの通信は禁止されています。ただしオフライン利用を保証するキャッシュ機能は確認できないため、最初にページを開く際や再読み込み時はインターネット接続が必要です。

期限が近い通知は届きますか?

通知やメールを送る機能はありません。PANTRYを開くと、期限切れと3日以内の件数が画面上部に表示されます。買い物前など確認するタイミングを決めて使います。

データが消えたのはなぜですか?

ブラウザのサイトデータ削除、シークレットモードの終了、端末変更、別ブラウザでの閲覧などが考えられます。重要な一覧は定期的にJSONバックアップを書き出してください。

消費期限の管理にも使えますか?

日付として登録し、近い順に並べることはできますが、画面上の項目名と区分は賞味期限を前提としています。食品の表示に消費期限とある場合は、その意味を混同せず、商品表示と保存方法を優先してください。

関連記事

LOCAL-FIRST FOOD INVENTORY

PANTRY

A household web tool for listing food in the refrigerator, freezer, and cupboard and reviewing it by approaching best-before date. No registration or installation is required.

What you can manage

Record name, quantity, category, location, best-before date, opened state, and notes. Dated food is sorted by nearest date, with undated food after it.

An easy-to-search list

Search names, notes, and categories and filter by location or by expired, within three days, four or more days, and no date. Consumed items can be removed immediately.

Data and safety

  • Records use only Local Storage on an independent Cloudflare Workers origin and are not shared with other Hub works.
  • CSP blocks external traffic; there is no mechanism that sends the food list to a server.
  • JSON export and validated restore are supported. Restore replaces the current list.
  • Other users of the same browser on a shared device may see records.
  • Date status does not guarantee food safety. Check storage, appearance, and smell after opening.

Examples and operating tips

Create a consistent entry point after shopping

Register refrigerated items with name, quantity, location, and date as you put them away. Use broad categories for retrieval and notes for specific plans. Undated condiments and dry goods can also be entered, but starting with items prone to forgotten or duplicate purchases is easier to sustain.

Check date status before planning a meal

Filter by “within 3 days” and the location you want to use. An expired marker flags food for inspection; it does not decide disposal. Consider the displayed date together with storage and the product label.

Reconcile the list with real stock weekly

At a regular time, inspect each storage area, remove consumed items, and edit items that moved or were opened. For family use, designate one device and browser so records do not fragment.

Saving and deleting data

The food list and its names, quantities, categories, locations, dates, opened state, notes, and update times are stored in Local Storage in the browser that opened PANTRY. There is no server account or automatic sync, and deleting site data, resetting a device, or changing browser can lose the list.

Delete one item with “Consume / delete” or all items with “Delete all” under data management. Both require confirmation and have no undo. Browser settings can also delete PANTRY-origin site data. Before disposing of a shared device, check that no site data remains.

Before changing devices, export a JSON backup and restore it on the new device. Restore replaces the current list. The file contains food information in plain text, so control access if it is placed in shared storage.

Frequently asked questions

Is payment or registration required?

No. The list belongs to the current browser, not an account.

Can I use it on a phone?

Yes. Records are not shared between different browsers on the same phone, so choose one regular browser.

Can I use it offline?

Data processing is local and external APIs are blocked, but an offline cache is not guaranteed. First load and reload require a connection.

Will I receive date reminders?

No notifications or email are sent. Opening PANTRY shows counts for expired food and food within three days.

Why did my data disappear?

Possible causes include deleting site data, ending private browsing, changing devices, or using another browser. Export regular JSON backups for important lists.

Can it manage use-by dates?

You can record and sort any date, but labels and categories assume best-before dates. If a product shows a use-by date, respect its different meaning and follow the product label and storage directions.

Related articles