GithubHelp home page GithubHelp logo

phault / as-extism Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 30 KB

A proof-of-concept for an overhaul of the Extism AssemblyScript PDK

License: MIT License

TypeScript 100.00%
assemblyscript extism proto wasm

as-extism's Introduction

as-extism

This project started as an exploration into using AssemblyScript as a simpler tech stack to write plugins for proto with, as I feel there's a big gap there between TOML-based and Rust-based plugins.

However it ended up as an exploration into improving the Extism AssemblyScript PDK, adding features such as:

  • JSON support (via as-json)
  • Type-safe inputs and outputs
  • Macros (aka. transforms) via decorators for type-safe WASM imports and exports
  • Result<T, E> type as AssemblyScript does not support catching exceptions
  • Abort handler so that panics are caught and communicated to the host

Contents

Maintainence

I do not intend to maintain this repository, nor are the packages going to be published on npm.

I am going to reach out to the maintainers of the official Extism PDK, to see if there's any interest in upstreaming any of the work.

If you're interested in any of the packages, feel free to fork or rip out what you need.

Development

This project uses:

proto is not a requirement, except for testing the proto test-plugin (duh).

# build all packages
moon run :build

# build test-plugin
moon run test-plugin:build

as-extism's People

Contributors

phault avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.