https://github.com/tomusdrw/as-lan
JAM stuff in AssemblyScript
https://github.com/tomusdrw/as-lan
Last synced: 3 months ago
JSON representation
JAM stuff in AssemblyScript
- Host: GitHub
- URL: https://github.com/tomusdrw/as-lan
- Owner: tomusdrw
- License: mpl-2.0
- Created: 2025-01-16T11:32:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-27T13:20:58.000Z (9 months ago)
- Last Synced: 2025-10-27T15:15:07.043Z (9 months ago)
- Language: TypeScript
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🦁 as-lan
AssemblyScript SDK for building [JAM](https://graypaper.com/) services.
**[Full Documentation](https://todr.me/as-lan/)**
## Prerequisites
- [Node.js](https://nodejs.org/) (v22+)
- [wasm-pvm-cli](https://crates.io/crates/wasm-pvm-cli) — compiles WASM to JAM PVM binaries
```bash
cargo install wasm-pvm-cli@0.7.1
```
## Quick Start
Scaffold a new service project with one command:
```bash
curl -sL https://todr.me/as-lan/start.sh | bash -s my-service
cd my-service
npm run build
```
This creates basic project with the SDK wired up as a git submodule. Edit `assembly/service.ts` to implement your service logic.
See the [Getting Started guide](https://todr.me/as-lan/getting-started.html) for details on what gets generated and next steps.
## Development
```bash
# Install dependencies
npm install
# Build the fibonacci example (WASM + PVM)
npm run build
# Run tests (SDK + example)
npm test
# Lint & format
npm run qa
npm run qa-fix
```
The build produces both `.wasm` and `.pvm` (PolkaVM/JAM SPI binary) files in the `build/` directory of each service. The `.pvm` file is what gets deployed to JAM.
## License
MPL-2.0