md-badges/playground
2025-12-26 12:48:48 +08:00
..
rust ♻️ Make playground parse README.md bulk-selectable and copyable using Rust for better performance and showcase 2025-12-26 11:45:32 +08:00
snapshot ♻️ Make playground parse README.md bulk-selectable and copyable using Rust for better performance and showcase 2025-12-26 11:45:32 +08:00
web ♻️ feat: initialize web project with Vite and React Demonstration Simple Playground 2025-12-26 11:54:17 +08:00
README.md docs: add instructions for building with wasm-pack in README.md 2025-12-26 12:48:48 +08:00

Playground

This project serves as a playground for experimenting with markdown badges and related features.

Purpose

The main goal is to provide bulk selection and instant copyable markdown badges, while showcasing my Rust knowledge through practical implementations and integrations.

Demo

Check out the live demo: Playground Demo

Getting Started

Clone the repository and start exploring different markdown badge implementations.

git clone https://github.com/inttter/md-badges.git
cd md-badges/playground

Building with wasm-pack

To build the Rust code for WebAssembly and integrate it with the web frontend, follow these steps:

  1. Install wasm-pack (if you haven't already):
cargo install wasm-pack
  1. Build the Rust project for the web target:
cd rust
cargo install
wasm-pack build --target web --out-dir ../web/pkg

This command compiles the Rust code to WebAssembly and outputs the generated files to the ../web/pkg directory.

  1. Start the web frontend (if applicable):

Navigate to the web directory and start your frontend development server as needed.

cd ../web
# For example, if using npm:
npm install
npm run dev

Now you can experiment with the playground using the latest Rust-to-WebAssembly integration.