frameassembly-wasm 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/frameassembly_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# FrameAssembly WebAssembly Compiler (`frameassembly-wasm` v3.
|
|
1
|
+
# FrameAssembly WebAssembly Compiler (`frameassembly-wasm` v3.4.0)
|
|
2
2
|
|
|
3
3
|
[](https://frameassembly-lang.dev/)
|
|
4
4
|
[](https://github.com/SteveWinschel/FrameAssembly/blob/main/LICENSE)
|
|
5
5
|
|
|
6
6
|
[**Try in Browser (`frameassembly-lang.dev`)**](https://frameassembly-lang.dev/) • [**Building Locally**](#building-locally) • [**Vite, React & Next.js**](#initialization-vite-react-nextjs--browser-apps) • [**API Reference**](#api-reference)
|
|
7
7
|
|
|
8
|
-
`frameassembly-wasm` (`v3.
|
|
8
|
+
`frameassembly-wasm` (`v3.4.0`) is the **internal WebAssembly compiler, `.pcap`/`.pcapng`-to-`.frasm` decompiler, packet ladder inspector, and UTF-16 diagnostic engine** powering [**`frameassembly-lang.dev`**](https://frameassembly-lang.dev/) and the official VS Code extension (`SteveWinschel.frameassembly-vscode`). It compiles `.frasm` code into classic `.pcap` and `.pcapng` packet captures and decompiles existing captures back into `.frasm` code across 206 L2–L7 protocols (`34` L2, `39` L3, `5` L4, and `128` L7; `1,495` strict-lowercase keywords) inside browser applications and VS Code Desktop/Web Extension Hosts. *(CLI users should install the native binary via `cargo install frameassembly` and update with `frameassembly update`. FrameAssembly is a network packet specification compiler, not x86 Flat Assembler.)*
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -144,7 +144,7 @@ Compiles `.frasm` source code into a binary `Uint8Array` containing a valid clas
|
|
|
144
144
|
Compiles `.frasm` source code into a binary `Uint8Array` containing a valid, standards-compliant PCAPNG byte stream with nanosecond timestamp precision (`IfTsResol = 9`), host `NameResolutionBlock` records, and per-frame `comment` options. Throws a JavaScript `Error` with diagnostic context if `source` exceeds `MAX_WASM_SOURCE_BYTES` or compilation fails.
|
|
145
145
|
|
|
146
146
|
### `reverse_pcap(pcap_bytes: Uint8Array): ReverseJsResult` / `reversePcap(pcap_bytes: Uint8Array): ReverseJsResult`
|
|
147
|
-
Decompiles an in-memory `.pcap` or `.pcapng` byte array (`Uint8Array`) across all
|
|
147
|
+
Decompiles an in-memory `.pcap` or `.pcapng` byte array (`Uint8Array`) across all 206 native Layer 2 through Layer 7 protocols into strict-lowercase `.frasm` code (`host1`, `host2`, ... declarations and an inline `compile` block), returning summary statistics (`packetCount`, `hostCount`). Throws a structured plain JS error object (`{ success: false, error, message }`) if `pcap_bytes` exceeds the `64 MiB` WebAssembly capture limit (`MAX_WASM_PCAP_BYTES`) or is not a valid packet capture.
|
|
148
148
|
|
|
149
149
|
```ts
|
|
150
150
|
interface ReversePcapResult {
|
|
@@ -200,7 +200,7 @@ export async function importCaptureFile(file: File): Promise<string> {
|
|
|
200
200
|
## Features & Engine Capabilities
|
|
201
201
|
|
|
202
202
|
- **Browser & IDE Execution**: Runs locally in WebAssembly inside Chrome, Firefox, Safari, Edge, Web Workers, VS Code Desktop/Web, and Node.js without a backend server.
|
|
203
|
-
- **
|
|
203
|
+
- **206 Native Protocols (`34` L2, `39` L3, `5` L4, `128` L7; `1,495` Keywords)**: Forward compilation and `.pcap`/`.pcapng` decompilation across Ethernet, 802.1Q VLAN, QinQ, MPLS, CFM, CDP, IS-IS, MACsec, MKA, EFM OAM, FCoE, FIP, UDLD, VTP, DTP, TSN/industrial links (`hsr`, `prp`, `mrp`, `epl`, `sercosiii`, `gptp`, `rtag`, `avtp`), PPPoE, PROFINET, EtherCAT, ARP, IPv4/IPv6, ICMP, SRv6, EIGRP, Babel, NHRP, CAPWAP, OpenVPN, LSP Ping, Teredo, TCP (MPTCP/TCP-AO), UDP, SCTP, DCCP, UDP-Lite (plus universal `sctp`/`dccp`/`udplite` carriers), SNMPv1/v2c/v3 USM, AgentX, collectd, Zabbix, DNS, DHCP, RADIUS (including CoA/Disconnect `3799`), HTTP/2, TLS, DTLS, QUIC, ICAP, OCSP, PROXY protocol, SRT, SOCKS4/4a/5, AMQP 0-9-1/1.0, telecom/5G (`ngap`, `s1ap`, `m3ua`, `smpp`, `xnap`, `f1ap`, `e1ap`, `x2ap`), databases/storage (`cql`, `drda`, `p9`, `isns`, `smb1`, `nbss`, `nbdgm`, `kpasswd`), OT/IoT (`modbus`, `dnp3`, `ams`, `rtps`, `dlms`, `rgoose`, `pcom`, `lon`, `asterix`, `slp`, `zep`, `matter`), and MAC-only switch topologies.
|
|
204
204
|
- **Nanosecond Fidelity**: Compiles and reverses PCAP and PCAPNG captures with nanosecond-resolution Section and Interface Description Blocks (`IfTsResol(9)`), host name resolution records, and packet comments.
|
|
205
205
|
- **Bounded In-Memory Processing**: Executes live syntax validation with CRLF-accurate UTF-16 spans, packet ladder inspection, compilation, and drag-and-drop capture reversal in browser memory with bounded input caps (`4 MiB` source, `64 MiB` capture).
|
|
206
206
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"collaborators": [
|
|
5
5
|
"Steve Winschel"
|
|
6
6
|
],
|
|
7
|
-
"description": "Compile FrameAssembly .frasm network traffic code to .pcapng and decompile .pcap/.pcapng packet captures in WebAssembly across
|
|
8
|
-
"version": "3.
|
|
7
|
+
"description": "Compile FrameAssembly .frasm network traffic code to .pcapng and decompile .pcap/.pcapng packet captures in WebAssembly across 206 L2-L7 protocols with live IDE diagnostics and frame inspection.",
|
|
8
|
+
"version": "3.4.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|