358 Repositories
Rust wasm-example Libraries
LaTeX support for Typst, powered by Rust and WASM
MiTeX LaTeX support for Typst, powered by Rust and WASM. MiTeX processes LaTeX code into an abstract syntax tree (AST). Then it transforms the AST int
The example anchor implementation for solana-swap
anchor-liquidity-pool This is the example anchor implementation for solana-swap. The curve is always ConstantProduct in this implementation. The fee r
Infer a JSON schema from example data, produce nonsense synthetic data (drivel) according to the schema
drivel drivel is a command-line tool written in Rust for inferring a schema from an example JSON (or JSON lines) file, and generating synthetic data (
2D particle system with custom material traits. Works well in wasm webgl2 and mobile
Bevy Enoki Enoki - A 2D particle system for the Bevy game engine. Overview The Enoki particle system is a CPU calculate particle system, that uses GPU
Example of CVE-2024-24576 use case.
CVE-2024-24576 PoC The Command::arg and Command::args APIs state in their documentation that the arguments will be passed to the spawned process as-is
example codes for CIS198 https://cis198-2016s.github.io/
CIS198: RUST 编程语言 学习背景 rust 和 c/c++/Java/Python/golang 不太一样 rust 学习曲线比较陡峭 rust 有很多颠覆认知的特性: 所有权,生命周期,借用检测 cargo 工具 函数式+命令式支持 视频讲解见 B站 课程大纲 Timeline Lec
Example of reading the BME280 sensor on an ESP32-C3 using Rust
Rust ESP32-C3 BME280 Example of reading the BME280 sensor on an ESP32-C3 using Rust Hardware: ESP32-C3 microcontroller BME280 sensor Breadboard Jump w
A 3D bin packing library in Rust/WebAssembly.
packme-wasm Demo https://packme.vercel.app This repository hosts an implementation of Dube, E., & Kanavathy L. (2006). Optimizing Three-Dimensional Bi
A simple tool to convert a WebAssembly module to a WASI component (component model, WASI-preview2).
A simple tool to convert a WebAssembly module (wasm32-wasi, wasm32-freestanding) to a WASI component (component model, WASI-preview2). Installation In
👾 Run WebAssembly (WASM-4) games on small devices (like PyBadge)
👾 gamgee Run WebAssembly (WASM-4) games on small devices. Gamgee is a WASM-4 games emulator written in Rust and designed to be executed on devices wi
A Wasm component optimizer (mostly a wrapper around wasm-opt)
component-opt An optimizer for Wasm Components Current Status This project currently only offers one optimization and does not allow it to be configur
Rust based WASM/JS bindings for ur-rust
ur-wasm-js WASM/JS bindings for the ur-rust rust library Getting started Installation Either build the library yourself with wasm-pack or install for
Show HTML content "inside" your egui rendered application
hframe Show HTML content "inside" your egui rendered application. "hframe" stands for "HTML Frame". Note: hframe only works when the application is co
LaTeX support for Typst, powered by Rust and WASM.
MiTeX LaTeX support for Typst, powered by Rust and WASM. MiTeX processes LaTeX code into an abstract syntax tree (AST). Then it transforms the AST int
RDF playground using WASM-compiled Sophia
SoWasm: an RDF playground based on Sophia This started as an experiment of compiling Sophia into WebAssembly, and grew into a (hopefully) useful playg
Arrow User-Defined Functions Framework on WebAssembly.
Arrow User-Defined Functions Framework on WebAssembly Example Build the WebAssembly module: cargo build --release -p arrow-udf-wasm-example --target w
siamstr.com Nostr Address Provider written in Rust.
Siamstr Nostr Address Provider Running project Rust Toolchain You'll need to use the nightly Rust toolchain, and install the wasm32-unknown-unknown ta
Adapter plugin to use Ruff in dprint's CLI and with JavaScript via Wasm
dprint-plugin-ruff Adapter for Ruff for use as a formatting plugin in dprint. Formats .py and .pyi files. Note: For formatting .ipynb files, use the J
A collection of example project using Njord.
Example Projects A collection of example project using Njord. Contributors The following contributors have either helped to start this project, have c
Code for my workshop "Production-ready WebAssembly with Rust" presented at RustLab 2023 in Florence
Workshop: Production-ready WebAssembly with Rust A workshop on Rust for WebAssembly by Alberto Schiabel (@jkomyno). 🤓 This workshop was first present
An serverless framework based on wasm runtime.
wasm_serverless An distributed serverless framework based on wasm runtime. Feishu doc https://fvd360f8oos.feishu.cn/docx/XSxcdONk2oVJD5xtZuicxftqn3f?f
A rust chess implementation using a neural network scoring function built on huggingface/candle + rust + wasm
Rusty Chess What is it? Rusty Chess aims to be a high quality embeddable chess engine that runs entirely locally in the browser (no backend required).
Map for WASM. Inspired by leaflet
Kapta Inspired by leaflet Examples and Usage Integrate leptos Cargo.toml kapta = {version = "0.0.2"} leptos_kapta = {version = "0.0.2"} leptos = {vers
An asset for HardHat C2 written in Rust as an example/demo
Rivet An asset for HardHat C2 written in Rust as an example/demo Installation and Use Download cargo for the operating system the team server will be
A simplified example in Rust of training a neural network and then using it based on the Candle Framework by Hugging Face.
candle-simplified-example A simplified example in Rust of training a neural network and then using it based on the Candle Framework by Hugging Face. H
A working, tested example for how to use Rust with warp and JWT
rust-jwt-example Example of JWT authentication and authorization in Rust using Warp Login curl http://localhost:8000/login -d '{"email": "user@userlan
STUPID stuffs built by abusing Harfbuzz WASM Shaper.
Harfbuzz-WASM-Fantasy 💡 STUPID stuffs built by abusing Harfbuzz WASM Shaper. Bad Apple Maze Game MORE CRAZY STUFFS TO COME SOON! Run with Docker You
Let's pretend that life-before-main exists for Rust targeting WebAssembly
Let's pretend that life-before-main exists for Rust targeting WebAssembly. Installation Add a dependency on wasm-init. This crate intentionally provid
A networked (p2p), cross-platform physics simulation example using rollback netcode
bevy_gaff (work in progress) bevy_gaff is an attempt at making a networked (p2p), cross-platform physics simulation using rollback netcode. It synchro
Estratto is a powerful and user-friendly Rust library designed for extracting rich audio features from digital audio signals.
estratto 〜 An Audio Feature Extraction Library estratto is a powerful and user-friendly Rust library designed for extracting rich audio features from
Transform jsx/tsx files to reactive views in js/ts to use in Web Components, insert into DOM or integrate with other libraries/frameworks
viewmill Features | Installation | Getting Started | Notes | Examples viewmill is aimed to create complex UIs from a simple form of JSX. It statically
plugy empowers you to construct agnostic dynamic plugin systems using Rust and WebAssembly.
plugy plugy is a plugin system designed to enable the seamless integration of Rust-based plugins into your application. It provides a runtime environm
TinyTodo is a Cedar Agent example, with a server in Rust and client in python
TinyTodo - OPAL and Cedar Agent Demo TinyTodo is a simple application for managing task lists. It uses OPAL and Cedar Agent to control who has access
Example implementation of a 3d hexagon tile-based map editor using bevy
bevy-hex-sandbox Example implementation of a 3d hexagon tile-based map editor using bevy v0.10. smol.mov This is not a maintained project. Instead, th
Example app & project structure for Golem Cloud
Synopsis This project serves as an example/template for building an application using WebAssembly Component Model (and in this case, an app for Ziverg
Compile your WebAssembly programs into SPIR-V shaders
wasm2spirv - Compile your WebAssembly programs into SPIR-V shaders Warning wasm2spirv is still in early development, and not production ready. This re
Conway's Game of Life, visualised using Rust and WebAssembly
Game of Life, using Rust and WebAssembly Tutorial Built with 🦀 🕸 by The Rust and WebAssembly Working Group About Conway's Game of Life, which consis
A HTTP Filter checking for OIDC Authentication, made for Envoy Plugins, written in Rust
WASM OIDC Plugin A plugin for Envoy written in Rust. It is a HTTP Filter, that implements the OIDC Authorization Code Flow. Requests sent to the filte
Tiny toy virtual DOM based framework for Rust
Respo in Rust tiny toy virtual DOM based framework for Rust. Status: experimenting, unhappy without HMR. Respo was initially designed to work in a dyn
High-performance Javascript color gradient library powered by Rust + WebAssembly
colorgrad-js High-performance Javascript color gradient library powered by Rust + WebAssembly. No dependencies. Faster than d3-scale, chroma-js, culor
An example CosmWasm contract for connecting contracts over IBC.
CosmWasm IBC Example This is a simple IBC enabled CosmWasm smart contract. It expects to be deployed on two chains and, when prompted, will send messa
A blazingly fast compiling & optimization tool for CosmWasm smart contracts.
cw-optimizoor A blazingly fast alternative to CosmWasm/rust-optimizer for compiling & optimizing CW smart contracts. It's primarily meant to speed up
A macro to generate constructor to instanicate structs from JsValue using duck-typing.
ducktor ducktor is a Rust crate that allows you to create types from wasm_bindgen::JsValue using duck typing. With ducktor, you can define a struct th
`dfx new --type=rust` + burn-rs MNIST web inference example
ic-mnist The frontend provides a canvas where users can draw a digit. The drawn digit is then sent to the backend canister running burn-rs for inferen
This is an example Nostr rust project to enable '402 Payment Required' responses for requests to paid content.
Nostr Paywall Example This is an example Nostr rust project to enable 402 Payment Required responses for requests to paid content. To prove payment, a
CosmWasm-Examples is a collection of example contracts and applications built using the CosmWasm framework
CosmWasm-Examples is a collection of example contracts and applications built using the CosmWasm framework. CosmWasm is a secure and efficient smart contract platform designed specifically for the Cosmos ecosystem.
simple operating system written in Rust with wasi support.
Agave OS Agave OS is a simple operating system written in Rust with wasi support. It is designed to be lightweight and easy to use. It is also designe
An attempt to build full-featured WebAssembly-based monolith charts
Graphima Graphima (Greek: γράφημα) is an attempt to build full-featured WebAssembly-based monolith charts. See "Can I Use" WebAssembly for browser sup
A command-line tool for extensible LED matrix control with Raspberry Pi devices.
Matricks "Teach an old matrix new tricks..." Matricks is a WASM-based extensible LED matrix control tool intended for use on Raspberry Pi devices. LED
Fast regex in Rust for Apache Arrow, compiled to WASM
Rust regex in wasm I have been looking for a fast regular expression library in Javascript that runs on Apache Arrow for a few years. Arrow uses UTF-8
Cross-platform compute shader engine
wgpu-compute-toy This is the compute shader engine for https://compute.toys As well as running on the web via WebAssembly and WebGPU, it can run nativ
Proof of concept writing a monolith BBS using Rust, GraphQL, WASM, and SQL. WILL BE ARCHIVED ONCE PROVEN
GraphQL Forum Important DO NOT even think about using this in production, lest your sanity be destroyed and credentials lost! Loosely following the aw
zzhack-cli is a Command Tool to help you quickly generate a WASM WebApp with simple configuration and zero code
English | 中文文档 zzhack-cli is a Command Tool that can help you quickly generate a WASM WebApp with simple configuration and zero code. It's worth menti
🚀 An OSS project to develop and run serverless applications on WebAssembly
Wasm Workers Server Wasm Workers Server (wws) is a framework to develop and run serverless applications server in WebAssembly. These applications are
run Typst in JavaScriptWorld.
Typst.ts Typst.ts allows you to independently run the Typst compiler and exporter (renderer) in your browser. You can: locally run the compilation via
Rust in Anger: high-performance web applications
Rust in Anger: Book demo This is the code repository that accompanies the Rust in Anger blog post. The following folders each come with their own buil
Operating system based off of blog_os, with the goal of running wasm modules as executables
yavkOS - A OS that attempts at running WASM modules as userspace programs Recommended Development Environment You need nix with the flakes, and nix-co
Renders typst code blocks in Obsidian into images using Typst through the power of WASM!
Obsidian Typst Renders typst code blocks into images using Typst through the power of WASM! This is still very much in development, so suggestions/bug
Little example projects for learning Rust and building awesome cli tools! ⭐️
rust-cli-examples Examples of clean and well-tested command line utilities, written in Rust. 🦀 👍 What is this repo? This repo is a collection of man
Using BDK from nodejs using WASM webpack 🦀
BDK + nodejs = ❤️ This repository shows how to use the bdk library in nodejs. It's just a proof-of-concept, not a complete example, and as such, it's
Example (with solution) for the Rust Fundamentals Workshop
Workshop Repo: Rust Fundamentals NOTE: This is Work-In-Progress! Please check for updates a day before the workshop. This Github repository contains a
A timer toolkit that is generic over the underlying timer implementation.
timer-kit A timer toolkit that is generic over the underlying timer implementation. This crate does not implement any platform-specific timer but uses
A simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit frontend.
Rust-auth-example This repository aims to represent a simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit
DNS Server written in Rust for fun, see https://dev.to/xfbs/writing-a-dns-server-in-rust-1gpn
DNS Fun Ever wondered how you can write a DNS server in Rust? No? Well, too bad, I'm telling you anyways. But don't worry, this is going to be a fun o
Leaksignal Proxy-Wasm Filter Module
Website | Docs | Blog | Slack 🔍 There are all kinds of sensitive data flowing through my services, but I don’t know which ones or what data. 🤷 LeakS
Accompanying code for my talk "No free lunch: Limits of Wasm as a bridge from Rust to JS" presented @ EuroRust2022 in Berlin
No free lunch: Limits of Wasm as a bridge from Rust to JS Accompanying code for the talk I presented at EuroRust 2022 in Berlin, Germany Slides for th
CosmWasm + zkVM RISC-V EFI template
cosmwasm-risc0-example CosmWasm + RISC-V zkVM gm example Overview CosmWasm RISC Zero This example exists to explore the patterns of use of CosmWasm an
Create WASM plugins easily in Rust.
Scotch Library for creating WASM plugins with Rust. Scotch allows you to pass complex types to/from functions in WASM plugins. It achieves that by enc
Zinnia is a runtime for Filecoin Station modules. It provides a sandboxed environment to execute untrusted code on consumer-grade computers.
🌼 Zinnia Zinnia is a runtime for Filecoin Station modules. It provides a sandboxed environment to execute untrusted code on consumer-grade computers.
Reimplementation of Matthias Müller's "Ten Minute Physics" demos in Rust with WASM + WebGL
ten-minute-physics-rs reimplements Matthias Müller's "Ten Minute Physics" demos in Rust with WASM + WebGL. Compared with the source pure Javascript im
Rust bindings for Supabase JavaScript library via WebAssembly.
supabase-js-rs Rust bindings for Supabase JavaScript library via WebAssembly. Usage Add supabase-js-rs to Cargo.toml supabase-js-rs = { version = "0.1
Example NFT marketplace project using ink! smart contract.
NFT Marketplace project This contract is an example for the NFT marketplace implementation. License Apache 2.0 🏗️ How to use - Contracts 💫 Build Use
Example of an dark-mode toggle button based on progressive enhancement
Leptos Starter Template This is a template for use with the Leptos web framework and the cargo-leptos tool. Creating your template repo If you don't h
An example of a common Wi-Fi set up scenario on ESP32 using Rust
UTC IoT fetcher This repo is an example of how to configure a Wi-Fi client on an ESP32-based IoT device using an external device connection to the int
iOS app example - AI Selfies Generator like Lensa: Stable Diffusion In Action
Magic Avatars In this repository, we look at several approaches to creating avatars, changing backgrounds, and deep image processing for more detailed
Welcome to our bird training simulator! Here you can observe the birds in real time, and use the genetic algorithm to train them to fly and eat food. Through the process of natural selection, this allows the best birds to survive and evolve over generations.
Flyoff Flyoff is a project that uses Rust and WebAssembly (WASM) to train virtual birds to get the most food using a genetic algorithm and a custom ne
A minimal boilerplate for Astro / Vite with the Nannou creative framework (Rust → WASM). Supports multiple sketches + hot-reload.
Astro x Nannou Starter astro-nannou-demo-1c.mov 🕹 Try it online! # 0a. Rust language tools open https://www.rust-lang.org/tools/install # 0b. wasm-p
Distribute a wasm SPA as HTML by wrapping it as a polyglot "html+wasm+zip"
A packer that adds a webpage to WASM module, making it self-hosted! Motivation At the moment, Browsers can not execute WebAssembly as a native single
A simple example showcasing how to use Bevy to display a square with acceleration (controllable with your keyboard) that wraps around the screen!
Bevy Wrapping Square example A simple example showcasing how to use Bevy to display a square with acceleration (controllable with your keyboard) that
A GB emulator that is written in Rust 🦀!
Boytacean A Game Boy emulator that is written in Rust 🦀 . This emulator has been written for educational purposes and shouldn't be taken too seriousl
A Domain Driven Design example application in Rust.
Rust Domain Driven Design Example rust-ddd Rust Domain-Driven-Design (DDD) Summery This repository is used to present how I find implementing DDD in R
Low level tooling for WebAssembly in JavaScript using wasm-tools
js-wasm-tools js-wasm-tools compiles some of the API of wasm-tools to JavaScript and WebAssembly via wasm-bindgen. This offers low level tooling for W
Adds support for wasm/wat assets in Bevy, and enables easier scripting
bevy_wasm_scripting Adds support for wasm/wat assets in Bevy, and enables easy scripting. This is enabled through the wasmer crate. Prepare for public
Small example using Slint on the MXCHIP IoT DevKit (AZ3166)
Small example using Slint on the MXCHIP IoT DevKit (AZ3166) To Build and run: You need: The hardware: an MXCHIP IoT DevKit https://en.mxchip.com/az316
Simple devcontainer for Rust + WASM development
Devcontainer WASM-Rust Simple devcontainer for Rust development Usage Github Codespaces Just click the button: Visual Studio Code Note this assumes th
This gives Emacs awesome power!
WASI gives Emacs awesome power !! This provides the ability to run WASI: WebAssembly System Interface program on Emacs. This is still in the experimen
An example re-entrancy attack on a flashloan vault.
CosmWasm re-entrancy Exploit Example The exploit example is located in contracts/liquidity_hub/vault-network/exploit_contract. A vault in contracts/li
Tauri and Leptos example.
tauri-leptos-example Tauri Leptos Requires Rust Nightly. See Leptos nightly Note. # Install Tauri CLI cargo install tauri-cli # Build and develop for
Unofficial Rust binding for mapbox-gl-js
mapbox-gl-rs Unofficial Rust binding for mapbox-gl-js What's this? mapbox-gl-js is an open source library for rendering a beautiful vector-based maps
CHIP-8 emulator written in Rust 🦀!
CHIP-Ahoyto 🍪 CHIP-8 emulator written in Rust 🦀 . The goal of this project is purely experimental and a learning tool for rust. The work of this emu
Proof of concept of running WASM w/ Docker
docker-wasm This is a proof of concept: a simple HTTP server, written in rust and compiled to wasm. It should be run using the new Docker WASM technic
Pedersen hashing functions with JS Rust interoperability
Pedersen Hash This library exposes the following functions: pub fn pedersen(x: &str, y: &str) - String: Geometry version. pub fn starknet_pedersen(x:
Simple example of axum, sqlx with sqlite and utoipa (swagger) - without auth
axum_crud_api Simple example to learn creating CRUD rest apis in Rust with axum, sqlx with sqlite and utoipa (swagger) - without auth Also shows how t
Displaying data for the Soroban Futurenet.
Soroban Fiddle https://leighmcculloch.github.io/soroban-fiddle Web frontend-only application that displays data on the Soroban Futurenet network. Feat
Example Blog using Rust, Actix Web, HTMX, Mustache
Actix Blog An example blog built with Actix. It uses htmx and handlebar templates. Running To run the blog, you need to have a recent version of Rust
An example app in Rust for CircleCI's Dynamic Config demo
circleci-dynamic-config-example An example app in Rust for CircleCI's dynamic config demo. Dynamic config allows you to dynamically generate CircleCI'
Mod_wasm - an extension module for the Apache HTTP Server (httpd) that enables the usage of WebAssembly (Wasm).
mod_wasm is an extension module for the Apache HTTP Server (httpd) that enables the usage of WebAssembly (Wasm). This module will allow to execute certain tasks in the backend in a very efficient and secure way.
🥔 MOS-6502 and NES emulator in Rust (SDL/WebAssembly)
🥔 Potatis /mos6502 - Generic CPU emulator. Passes all tests, including illegal ops. (No BCD mode). /nes - A very incomplete NES emulator. /nes-sdl -
Bindings to the Tauri API for projects using wasm-bindgen
tauri-sys Raw bindings to the Tauri API for projects using wasm-bindgen Installation This crate is not yet published to crates.io, so you need to use
Spine runtime for Rust (and wasm!) transpiled from the official C Runtime.
rusty_spine Spine runtime for Rust (and wasm!) transpiled from the official C Runtime. Supports Spine 4.1. [dependencies] rusty_spine = "0.4.0" Onlin