wasm

Standardize tinywasm MCP server and frontend Go compatibility guidelines.

1|Updated Dec 2, 2023
One-click install
npx skills add https://github.com/tinywasm/devflow --skill wasm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wasm
Source: https://github.com/tinywasm/devflow/tree/main/skills/wasm
Command: npx skills add https://github.com/tinywasm/devflow --skill wasm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WebAssembly environments for tinywasm projects can be tricky to coordinate, especially around MCP server orchestration and frontend compatibility. This skill consolidates the rules and practices into a single reference to reduce setup time and errors.

Core Features & Use Cases

  • WebAssembly Environment: Global MCP server on port 3030; start it with the tinywasm -mcp command and attach to logs via a TUI client.
  • Frontend Go compatibility: Use standard library replacements (tinywasm/fmt, tinywasm/time, tinywasm/json) to maximize compatibility with tinygo.
  • Frontend optimization: Avoid unnecessary map declarations to minimize binary size and improve performance in WASM projects.

Quick Start

Start the MCP server with tinywasm -mcp and then start the development toolchain to compile and watch in the background.

Frequently Asked Questions about wasm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce WebAssembly binary size in tinygo frontend projects?

To reduce WebAssembly binary size in tinygo projects, avoid unnecessary map declarations. This prevents binary bloat and directly improves WASM runtime performance.

How do I start an MCP server for WebAssembly development?

Start the MCP server for WebAssembly development by running the tinywasm -mcp command on port 3030. You can then attach to server logs via a TUI client.

Can I use standard Go libraries for frontend WebAssembly compatibility with tinygo?

Standard Go libraries lack full frontend WebAssembly compatibility with tinygo. Use tinywasm replacements like tinywasm/fmt, tinywasm/time, and tinywasm/json to maximize compatibility.

What is the recommended workflow for coordinating WebAssembly server and frontend environments?

Coordinating WebAssembly environments involves standardizing server and frontend guidelines. Start the MCP server with tinywasm -mcp, then launch the development toolchain to compile and watch in the background.

Does using map declarations affect WebAssembly performance in tinywasm projects?

Using map declarations negatively affects WebAssembly performance in tinywasm projects by causing binary bloat. Avoiding them is a specified requirement to minimize size and optimize execution.