mtcute/packages/wasm
2023-11-04 06:44:18 +03:00
..
lib feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
src feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
tests feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
.gitignore feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
build.config.cjs feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
package.json feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
README.md feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
tsconfig.json feat: wasm! 🚀 2023-11-04 06:44:18 +03:00
typedoc.cjs feat: wasm! 🚀 2023-11-04 06:44:18 +03:00

@mtcute/wasm

📖 API Reference

Highly optimized for size & speed WASM implementation of common algorithms used in Telegram.

Features

  • Super lightweight: Only 45 KB raw, 22 KB gzipped
  • Blazingly fast: Up to 10x faster than pure JS implementations
  • Implements AES IGE and Deflate (zlib compression + gunzip), which are not available in some environments (e.g. web)

Acknowledgements

  • Deflate is implemented through a modified version of libdeflate, MIT license.
    • Modified by kamillaova to support WASM and improve bundle size
  • AES IGE code is mostly based on tgcrypto, LGPL-3.0 license.
    • To comply with LGPL-3.0, the source code of the modified tgcrypto is available here under LGPL-3.0 license.

Benchmarks

See https://github.com/mtcute/benchmarks