swipl-playground

A ClojureScript Hoplon project implementing a web-based playground for SWI-Prolog, powered by SWI-Prolog's WebAssembly builds.

Dependencies

  • java
  • pnpm

Usage

Setup

pnpm install

Development

  npx shadow-cljs watch app
  1. Go to http://localhost:8000 in your browser. You should see the SWI-Prolog playground.

  2. If you edit and save a file, it will recompile the code and reload the browser to show the updated version.

Compile an optimized version

 nvm use && npx shadow-cljs release app