Skip to main content
This release is 1 version behind 0.1.1 — the latest version of @synical/scratch-compiler. Jump to latest

Allows for Scratch projects to be created programmatically with TypeScript.

This package works with Node.js, BunIt is unknown whether this package works with Cloudflare Workers, Deno
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
This package works with Bun
JSR Score
100%
Published
3 months ago (0.1.0)

scratch-compiler (working name)

The goal of this project is to be able to use Typescript to programmatically create playable Scratch games.

In the future, you will be able to use Lua to create scratch games with this. But currently, it only supports the bare minimum of a scratch project.

Supported Feature Checklist

  • :white_check_mark: Targets (Sprites and Stages)
  • :white_check_mark: Scripts
  • :warning: Extensions (Partially, opcodes not implemented)
  • :white_check_mark: Costumes
  • :x: Sounds

If there's any features missing, please make an issue to let me know!

Known Bugs

  • For some reason, some assets are ignored entirely, being replaced with working ones for some odd reason.

If you discovered a bug not listed here, please make an issue!

Add Package

deno add jsr:@synical/scratch-compiler

Import symbol

import * as mod from "@synical/scratch-compiler";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@synical/scratch-compiler";

Add Package

npx jsr add @synical/scratch-compiler

Import symbol

import * as mod from "@synical/scratch-compiler";

Add Package

yarn dlx jsr add @synical/scratch-compiler

Import symbol

import * as mod from "@synical/scratch-compiler";

Add Package

pnpm dlx jsr add @synical/scratch-compiler

Import symbol

import * as mod from "@synical/scratch-compiler";

Add Package

bunx jsr add @synical/scratch-compiler

Import symbol

import * as mod from "@synical/scratch-compiler";