.LOCKB

LOCKB ファイル

Bun Binary Lockfile
質問する
クイック回答

.lockbファイルは、Bunのバイナリインストールロックファイルであり、ほとんどの場合bun.lockbという名前です。Bunは、bun installを実行した際に、すべての依存関係の正確なバージョンと整合性ハッシュを固定し、インストールを再現可能にするためにこのファイルを書き込みます。手動で開くようには設計されていません。内容を確認するには、プロジェクトフォルダでbun bun.lockbを実行すると、yarn.lock形式のテキストビューが表示されます。または、Bunがインストールされたエディタでプロジェクトを開いてください。

開発元: Oven (Bun) カテゴリ: 開発用ファイル MIME: application/octet-stream
対応OS Windows macOS Linux
関連: .DO · .MD · .HEX · .XSD

このページの内容

19k+ 個の拡張子を索引済み
最終確認日:Aug 26, 2026

ファイルの種類がわかりませんか?

ファイルを識別ツールにドロップしてください。最初の数バイトを読み取って形式を特定します。

ファイルを識別する

LOCKB ファイル形式とは?

.lockbファイルは、OvenによるJavaScriptおよびTypeScriptのパッケージマネージャー兼ランタイムであるBunによって作成されるバイナリロックファイルです。通常、プロジェクトのルートにbun.lockbという名前で配置されます。Bunはbun installの実行時にこれを書き込み、解決された完全な依存関係グラフ(各パッケージ、正確なバージョン、メタデータ、サブ依存関係、整合性ハッシュ)を記録します。これらすべてを固定することで、チームメンバー全員やCIジョブが同じツリーをインストールできるようになります。

Ovenは、速度を重視してこの形式をバイナリとして構築しました。データは線形配列に格納され、パッケージはインデックスまたはパッケージ名のハッシュによって参照され、長い文字列は重複排除されます。ファイルはASCIIヘッダーbun-lockfile-format-v0で始まります。欠点は、バイナリロックファイルはレビューが難しく、Gitの差分(diff)に表示されないことです。そのため、Bun v1.1.39でテキストロックファイルが追加され、Bun v1.2では新規プロジェクトのデフォルトがbun.lockになりました。既存のbun.lockbファイルは引き続き動作します。

セキュリティと安全性

リスク: LOW

A bun.lockb file is generated data, not an executable, so opening or committing it is safe. Bun can 'run' the file only in the sense that bun ./bun.lockb prints its contents; it does not execute arbitrary code from the file. The only real caution is supply-chain trust: the lockfile pins specific package versions and their sources, so review dependency changes as you would any lockfile update. Never edit it by hand, since a corrupted binary lockfile will fail to parse.

形式の詳細

概要
正式名称Bun Binary Lockfile別名 bun.lockb, Bun lockfile
開発元Oven (Bun)登場時期 2022
MIME タイプapplication/octet-stream
タイプBinary
マジックバイト ・ ファイルシグネチャ
オフセット
000102030405060708090a0b0c0d0e0f101112131415
16進数
62756E2D6C6F636B66696C652D666F726D61742D7630
ASCII
bun-lockfile-format-v0
Files begin with the ASCII header string 'bun-lockfile-format-v0' identifying the binary lockfile format version. The rest of the file is a serialized struct-of-arrays dump and has no line structure.

LOCKB ファイルを開くプログラム

Windows3 apps
Bun (CLI) オープンソース Run bun bun.lockb in the project directory to print the lockfile as readable yarn.lock-style text, or bun install to use it.
Visual Studio Code with the bun.lockb extension 無料 Install Bun, then open the project so the editor can show a readable view of bun.lockb.
@hyrious/bun.lockb parser オープンソース Use this JavaScript library or its web tool to parse bun.lockb and print its contents without installing Bun.
macOS3 apps
Bun (CLI) オープンソース Run bun bun.lockb to print the lockfile as readable text, or bun install to reinstall from it.
Visual Studio Code with the bun.lockb extension 無料 Install Bun, then open the folder to view bun.lockb as text inside the editor.
@hyrious/bun.lockb parser オープンソース Parse and print bun.lockb contents in Node or the browser without Bun installed.
Linux3 apps
Bun (CLI) オープンソース Run bun bun.lockb for a readable text dump, or bun install to install dependencies from it.
Visual Studio Code with the bun.lockb extension 無料 With Bun installed, open the project to inspect bun.lockb as readable text.
Git with textconv オープンソース Configure git config diff.lockb.textconv bun so git diff shows bun.lockb changes as readable text.

技術的詳細

詳細仕様
EncodingBinary (serialized struct-of-arrays memory dump)
Byte orderLittle-endian (native to the machine that wrote it)
ContainerFlat custom binary format, not a standard container
CompressionNone; long strings over 88 characters are deduplicated to save space
Typical sizeA few KB to a few hundred KB depending on dependency count
StructureA header/magic string followed by linear arrays: package list, string buffer, dependency slices, resolutions, and hoisting trees. Packages are referenced by an auto-incrementing index or a hash of the package name rather than by repeated name strings.
IntegrityStores npm-style integrity hashes for each resolved package; the format itself is version-tagged via the header string
PlatformsWindows, macOS, Linux
NotesDesigned for fast reads and memory mapping. It is not human-readable and does not render in Git or GitHub diffs without a textconv helper. Superseded as the default by the text-based bun.lock (JSONC) in Bun v1.2, but still supported.
Human ReadableNo
リリース日2022
最新バージョンbun-lockfile-format-v0
仕様書github.com

LOCKB の変換

コミュニティ Q&A

ユーザーからの質問
質問する
LOCKB ファイルを扱うユーザーからヘルプを得られます。OSやソフトウェアのバージョンなど、具体的に記載してください。
アカウント不要 ・ 通常1日以内に回答されます

まだ質問はありません。LOCKB ファイルについて最初の質問をしてみましょう。

よくある質問

bun.lockbファイルを開くにはどうすればよいですか?
プロジェクトフォルダでターミナルを開き、bun bun.lockbを実行してください。Bunはロックファイルを読み取り可能なyarn.lock形式のテキストとして出力します。これにはBunのインストールが必要です。
なぜbun.lockbはテキストではなくバイナリなのですか?
Ovenは、JSONやYAMLよりもロックファイルの読み込みと保存を大幅に高速化するためにバイナリ形式を選択しました。トレードオフとして、ヘルパーなしでは読み取りや差分の確認ができないため、後にテキストベースのbun.lockが追加されました。
bun.lockbをGitにコミットすべきですか?
はい。ロックファイルは正確な依存関係のバージョンを固定するため、すべてのマシンとCI実行で同じツリーがインストールされます。他のロックファイルと同様にコミットしてください。読み取り可能な差分を表示するには、ファイルに対してBunを実行するGitのtextconvを設定してください。
bun.lockbを新しいbun.lockに変換するにはどうすればよいですか?
bun install --save-text-lockfile --frozen-lockfile --lockfile-onlyを実行し、古いbun.lockbを削除してください。Bun v1.2以降、新規プロジェクトではテキストベースのbun.lockがデフォルトで使用されます。
bun.lockbファイルを手動で編集できますか?
いいえ。これはテキストではなくシリアル化されたバイナリ構造です。package.jsonで依存関係を変更し、bun installを実行してロックファイルを再生成してください。バイナリを直接編集すると破損します。
新しいバージョンのBunでもbun.lockbはサポートされていますか?
はい。Bun v1.2からbun.lock(テキスト)がデフォルトになりましたが、Bunは移行を強制することなく、既存のbun.lockbファイルからの読み込みとインストールを引き続きサポートしています。

参考文献

1Bun docs - Lockfilebun.com
2Bun Blog - Bun's new text-based lockfilebun.com

さらに探索

データベース全体から

今週のトップ拡張子

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.MDMarkdown Document
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

関連する拡張子

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

無料ファイルツール

ブラウザで動作するファイル識別および画像変換ツール。すべてお使いのデバイス上で実行されます。

ツールボックスを開く

ファイル拡張子を A-Z で閲覧