extEncoder().encode(value);
            } else {
                valueBuf = new Uint8Array();
            }
            if (valueBuf.length > 127) throw 'this example currently does not support values longer than 127 bytes - open a PR!';

            dbg.debug('creating `set` stream...');
            const stream = await conn.createBidirectionalStream();
            await wasiKeyvalueStoreBucketSet(
                stream.writable.getWriter(),
                stream.readable.getReader(),
                buc