Decode your first web packet
Open web/ in your installed SDK directory, or extract the static web ZIP. Both contain a ready-to-run module, the Rust decoder binary, TypeScript declarations, and the same example.klv as the native SDK. Start with no token set.
The sample ST 0601 packet
The examples below decode this 87-byte MISB ST 0601 revision 19 packet, supplied as example.klv.

- Key. The first 16 bytes,
06 0E 2B 34 02 0B 01 01 0E 01 03 01 01 00 00 00, identify the ST 0601 UAS Datalink Local Set. - Length. The next byte,
46in hexadecimal, is the BER length. It declares 70 bytes of value, including the checksum item. - Value. The local set contains tag-length-value items. For example,
41 01 13means tag 65 has a one-byte value of0x13, which identifies revision 19. Tag 3 carriesTest missionand tag 10 carriesTest platform. - Checksum. The last item is
01 02 68 9C. Tag 1 has a two-byte checksum value of0x689C(26780), computed over the packet bytes through01 02.
- Node.js
- Browser
Use Node.js 22 or later for these commands. In the extracted directory run:
node example.mjs
import {createDecoder} from './index.mjs';
import {readFile} from 'node:fs/promises';
// Start the decoder with an optional web license token.
const decoder = await createDecoder({licenseToken: process.env.LIBMISB_WEB_TOKEN});
try {
// Read the requested file or fall back to the bundled packet.
const packet = await readFile(process.argv[2] ?? new URL('./example.klv', import.meta.url));
console.log(decoder.licenseStatus().mode);
// Print the response as JSON text so large integer values retain their precision.
console.log(decoder.requestJSON(packet));
} finally {
// Release the decoder even if reading or decoding the packet fails.
await decoder.close();
}
To use the npm distribution in your own application, run the following from the directory containing its package.json. For a new application, create the directory and run npm init -y there first. Substitute the path to your supplied tarball.
npm install --offline ./impleotv-libmisb-wasm-VERSION.tgz
node node_modules/@impleotv/libmisb-wasm/example.mjs
The package entrypoint is import {createDecoder} from '@impleotv/libmisb-wasm'. Its loader resolves the bundled binary relative to the module.
From the extracted directory, start the supplied static server with Node.js. Open the printed address. The page loads example.klv automatically and also accepts a packet from your computer.
node serve.mjs
<!doctype html>
<html lang="en"><meta charset="utf-8"><title>ST 0601 decoder</title>
<label>Decode an ST 0601 packet <input type="file" id="packet"></label>
<pre id="result"></pre>
<script type="module">
import {createDecoder} from './index.mjs';
// Start the decoder in demo mode.
const decoder = await createDecoder();
const output = document.querySelector('#result');
// Display the mode and keep the decoded JSON as text to preserve exact integers.
function show(bytes) { output.textContent = decoder.licenseStatus().mode + '\n' + decoder.requestJSON(bytes); }
// Load the bundled packet first, then decode any file the user selects.
show(new Uint8Array(await (await fetch('./example.klv')).arrayBuffer()));
document.querySelector('#packet').onchange = async event => {
const file = event.target.files[0];
if (file) show(new Uint8Array(await file.arrayBuffer()));
};
// Release the decoder when the page closes.
addEventListener('pagehide', () => decoder.close(), {once:true});
</script></html>
Recognize the result
Both examples show demo on the first line, followed by this JSON envelope. Key order and whitespace may vary.
{
"status": "ok",
"value": {
"Checksum": 9400,
"MissionID": "Test mission",
"PlatformDesignation": "Test platform",
"PlatformHeadingAngle": 147.99908445868618,
"PlatformTailNumber": "24",
"PrecisionTimestamp": 1795433587745520,
"SensorLatitude": 41.093374323609,
"SensorLongitude": -104.8687724978052,
"Version": 19
}
}
PrecisionTimestamp is in microseconds. Demo mode omits SensorTrueAltitude and reports a checksum of 9400 for the filtered packet. A licensed decode includes SensorTrueAltitude and reports the original checksum 26780.
Keep the envelope as text when forwarding exact integer values. Next, decode a stream in TypeScript.