Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AetherScriptNew to Visual Studio Code? Get it now.
AetherScript

AetherScript

Laptopper

|
2 installs
| (0) | Free
AetherScript IDE and interpreter with a full library guide and examples.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AetherScript

AetherScript is a small, interpreted programming language with its own Aether Studio IDE, available as both a standalone Windows app and a Visual Studio Code extension. Both versions include a syntax-highlighted editor, custom interpreter, run controls, output console, file actions, and language quick reference.

Try it

Windows installer

Run AetherScript Studio Setup 0.9.16.exe and choose a per-user installation folder. Setup creates Start Menu and desktop shortcuts, adds aetherdip and aetherun to your user PATH, and launches AetherScript Studio when it finishes. On first launch, install the 15 standard libraries. Additional bundled libraries are installed from CMD with aetherdip install <library-name>, not from the Studio library manager. Reopening AetherScript Studio launches the IDE directly.

In Aether Studio, press Ctrl+S to save the current program (or Cmd+S on macOS in the VS Code Studio view).

Use aetherun "C:\Projects\hello.aether" to run an AetherScript file directly from any folder. Pass optional program arguments after the filename; programs can read them from args. aetherdip (Aether Development Install Program) handles library installs and development commands such as aetherdip install aethergame and aetherdip repl. It also accepts local handmade libraries with aetherdip install "C:\Projects\my-library.aether". Open a new terminal after installation so it receives the updated PATH.

The installer does not install Python or modify another language's installation. The app is not code-signed, so Windows may display a SmartScreen warning.

VS Code extension

Install the aetherscript-0.9.16.vsix in VS Code, or open this project and press F5 to launch an Extension Development Host. Open the Command Palette and choose AetherScript: Open Aether Studio. You can also open a .aether file and use Ctrl+F5.

To run the tests, use npm test. To build both distributables, run npm install, npm run package, and npm run desktop:exe. The extension is output as a .vsix in the project directory; the Windows installer is output in release/.

AetherScript editor tools

  • Aether Trace (✦ Trace in Aether Studio or AetherScript: Trace File in VS Code) runs the program and shows statement-by-statement snapshots of visible variables. The trace is capped at 500 steps, includes steps reached before a runtime error, and does not change ordinary Run behavior. VS Code also binds it to Ctrl+Shift+F5 (Cmd+Shift+F5 on macOS).
  • Spell Map in Aether Studio lists spell, def, function, and procedure definitions as you type; select one to jump to its declaration. In VS Code, AetherScript: Navigate Spells opens a searchable spell picker, and the standard Outline view also lists spells.
  • Format in either Aether Studio editor fixes indentation for AetherScript and Python-style blocks. VS Code also provides syntax diagnostics, keyword/library completions, AetherScript: Format Document, and the standard Shift+Alt+F formatting shortcut.

These features are built into AetherScript's interpreter and editors, including variable-snapshot tracing and spell navigation. They work without Python or external debugger extensions.

Publish to the Visual Studio Marketplace

  1. Create a publisher at Visual Studio Marketplace publisher management and choose an available publisher ID. The manifest currently uses aetherscript; change the publisher value in package.json if your publisher ID differs.
  2. Create a Marketplace Personal Access Token with Marketplace > Manage scope. Keep it private; do not put it in this project.
  3. Install dependencies and run tests, then package with npm run package.
  4. Sign in with npx vsce login <your-publisher-id> and publish with npx vsce publish. You can also upload the generated .vsix from the publisher management page.

Language guide

# Variables and output
weave name = "traveler"
shine "Hello, " + name

# Change a variable and branch
weave score = 7
when score >= 10
  shine "A bright star!"
otherwise
  shine "Keep exploring"
end

# Repeat while a condition is true
weave count = 3
orbit count > 0
  shine count
  set count = count - 1
end

# Define and call a spell (function)
spell greet(person)
  return "Welcome, " + person
endspell
shine greet("Aether")

You can also write programs with familiar beginner-friendly words:

let name = "traveler"
print "Hello, " + name

if name equals "traveler"
  show "Welcome!"
else
  output "Who are you?"
endif

function greet(person)
  give "Hello, " + person
endfunction
print greet(name)

More coding tools without libraries

These features are built into the language; no summon statement is needed:

weave scores = [8, 10, 7]
weave total = 0

for score in scores
  set total += score
endfor

shine "Average: " + (total / len(scores))
shine "Is 2 in range? " + (2 in range(5))
shine "3 squared: " + 3 ** 2

for name in list repeats once per list item; strings can be looped character by character. The loop variable exists only inside its loop. Use endfor to finish the loop, leave to exit early, and continue (or next/skip) to move to the next item. The in operator checks a list or string. ** raises a number to a power. set also supports +=, -=, *=, /=, and %=. range(stop), range(start, stop), or range(start, stop, step) creates a list of numbers (at most 10,000 items).

20 more built-in features

These are part of the language itself, not libraries:

  1. otherwise when and else if add more choices to a when block; elseif is also accepted.
  2. repeat 3 times runs a block a fixed number of times; endrepeat closes it.
  3. repeat 3 times as turn also gives each iteration a local counter starting at zero.
  4. for n from 1 to 5 counts through a number range, including both ends.
  5. Add by 2 to a number range to choose its step; counting down works too.
  6. choose value, case value, otherwise, and endchoose select a matching block.
  7. constant name = value makes a variable you cannot later change.
  8. check condition stops with a clear error if the condition is false.
  9. check condition, "message" shows your own message when a check fails.
  10. increment count adds one.
  11. increment count by 3 adds a chosen amount.
  12. decrement count subtracts one.
  13. decrement count by 3 subtracts a chosen amount.
  14. // divides and rounds down to the next whole number.
  15. **= raises a variable or list item to a power and stores the result.
  16. is compares two values for equality.
  17. is not checks that two values are different.
  18. not in checks that a value is absent from a list or string.
  19. length, absolute, minimum, maximum, and round are available without summon math.
  20. join(list, separator) combines list values into text; split(text, separator) turns text into a list.

AetherGame 2D, perspective 3D, and isometric 3.5D

The aethergame library draws bounded scenes in the GAME PREVIEW panel in Aether Studio. Install it from CMD with aetherdip install aethergame, then try examples/aethergame_2d.aether or examples/aethergame_3d.aether:

summon aethergame
aethergame.start(640, 360, "#17202f")
aethergame.rect(30, 70, 100, 80, "#b7a4ff")
aethergame.circle(220, 110, 30, "orange")
aethergame.line(20, 200, 300, 200, "white", 2)
aethergame.text("My first scene", 24, 32, "white", 20)

start(width, height[, background]) creates a scene up to 1024 by 768 pixels. 2D drawing includes rect, circle, line, text, polygon, triangle, ellipse, and grid. Use setCamera(x, y, z[, focalLength]), point3d, line3d, box3d, and sphere3d for perspective-projected wireframe 3D; tile3d draws isometric 3.5D diamond tiles. Scenes are limited to 1000 drawing items, and colors must be simple color names or hexadecimal values. AetherGame also supports a playable maze scene with arrow-key movement; animation/game loops, image assets, and solid lit meshes are future work.

Run examples/aethergame_maze.aether in Aether Studio or the VS Code Studio view to play the first AetherScript maze game. Running a program that creates an AetherGame scene now opens a separate AetherGame window (or VS Code game panel) as well as the Studio preview. Focus the game view and use the arrow keys to reach the chest. Install AetherGame from CMD with aetherdip install aethergame before running these examples. aethergame.maze(rows, cellSize) takes an odd-sized ASCII map (5–31 rows and columns): # is a wall, . is a path, S is the player start, and C is the chest. Wall movement is blocked, and reaching the chest wins the game.

The 3D example combines these APIs:

summon aethergame
aethergame.start(640, 360, "#101826")
aethergame.setCamera(320, 180, -500, 500)
aethergame.tile3d(0, 0, -60, 110, "#395f59")
aethergame.box3d(280, 150, 100, 110, 110, 110, "#b7a4ff")
aethergame.sphere3d(390, 160, 80, 48, "#ffcf70")
aethergame.line3d(80, 240, 40, 520, 240, 40, "white")

Local machine learning

The aetherml library trains small models locally; it does not call cloud services or require Python, TensorFlow, or PyTorch:

summon aetherml
weave features = [[0], [1], [2], [3]]
weave targets = [1, 3, 5, 7]
weave model = aetherml.trainLinear(features, targets, 0.01, 500)
shine aetherml.predictLinear(model, [4])

trainLinear uses gradient descent for numeric regression. trainLogistic trains a binary classifier, and predictClass returns 0 or 1. normalize, split, accuracy, mse, precision, and recall help prepare and evaluate small datasets. Training is bounded to 1,000 epochs and 1,000,000 feature updates per call. This is a real, small educational training implementation, not a general-purpose deep-learning framework.

aetherml.loadDataset(path[, targetColumn]) reads a supervised numeric dataset from the selected project folder. It accepts delimited .txt, .csv, and .tsv files with a header, JSON arrays or {rows: [...]} / {data: [...]} containers, and JSONL. JSON rows can be {features: [...], target: number} or lists whose last value is the target. For delimited files, choose the target by header name or zero-based column index; otherwise the final column is the target. The target column must be numeric; columns containing text are skipped as features, and remaining numeric columns become model inputs. It returns an object with features and targets, which can be passed directly to the training functions. Dataset files follow the same project-root and 1 MiB file limits as files.readText.

summon aetherml
weave dataset = aetherml.loadDataset("training.csv", "score")
weave model = aetherml.trainLinear(dataset.features, dataset.targets, 0.01, 500)
shine aetherml.predictLinear(model, [4])

AetherGUI standalone desktop windows

The separate aethergui library creates its own interactive desktop window; it is not an AetherGame scene. Install it with aetherdip install aethergui, then run examples/aethergui_demo.aether. The same program opens an interactive VS Code panel when run through Aether Studio in VS Code.

The current Tkinter-inspired toolkit provides labels, buttons, text entries and areas, checkboxes, radio groups, sliders, progress bars, list boxes, dropdowns, frames, menus, tabs, and drawing canvases. Use pack, grid, or place for layout, get and set for values, bind or widget callback arguments for events, and show, hide, close, and message for window flow and notices. Button handlers are AetherScript spells with (widget, event, value) parameters. The canvas supports bounded drawRect, drawLine, and drawText operations and click callbacks.

summon aethergui
spell greet(widget, event, value)
  aethergui.set("message", "Hello from the button!")
endspell
aethergui.window("Hello", 480, 320)
aethergui.label("message", "Click the button")
aethergui.button("hello", "Say hello", "greet")
aethergui.grid("message", 0, 0)
aethergui.grid("hello", 1, 0)

This is a growing native toolkit, not a complete drop-in implementation of every Tkinter feature or widget. It does not expose Python, arbitrary host code, or unrestricted filesystem access to GUI callbacks. For all available calls and a larger example, open examples/aethergui_demo.aether in the project.

Project-scoped file management

In standalone Studio, choose Project Folder before using file calls. In VS Code, AetherScript uses the first open workspace folder. Paths must be relative to that root; path traversal and links escaping the root are rejected. Text operations are capped at 1 MiB per file, directory listing is one level deep, and remove only removes a file or an empty directory.

summon files
files.writeText("notes/hello.txt", "Hello from AetherScript")
files.appendText("notes/hello.txt", "!")
shine files.readText("notes/hello.txt")
shine files.list("notes")

Available calls are readText, writeText, appendText, list, exists, makeDirectory, remove, copy, move, and size. The folder must be selected first, and parent folders must exist except when created with makeDirectory.

Data and vector tools

data includes CSV/JSON conversion, flattening, chunking, frequencies, min-max normalization, seeded shuffling, and sampling. utils provides clamping, interpolation, range mapping, repeatable random numbers, 2D/3D vectors, distances, vector normalization, and 2D angles. For example:

summon data
summon utils
weave rows = data.parseCsv("name,score\nAether,9")
shine data.minmax([10, 20, 30])
shine utils.distance3([0, 0, 0], [2, 3, 6])

The 50 newly added APIs across AetherGame, aetherml, files, data, and utils are listed with examples and constraints in the included ROADMAP.md file.

Beginner-friendly words

These 25 words are aliases for AetherScript's existing commands and operators. You can mix them with the original words:

Word Same as Purpose
let, make weave Create a variable
change, update set Change a variable
print, show, output shine Display a value
if when Start a condition
else otherwise Choose the other branch
endif end Finish a condition
while, repeat orbit Repeat while a condition is true
endwhile end Finish a loop
function, procedure spell Define a function
endfunction, endprocedure endspell Finish a function
give return Send a value back from a function
exit, break leave Exit the current loop
import, use summon Load a library
nil, null nothing Write an empty value
equals == Compare two values for equality

Standard libraries

The 15 standard libraries are available after Studio setup. Their identifiers can be used directly with summon.

Bring extra tools into a program with summon. Math, text, and list helpers are built into AetherScript:

summon math
summon strings
summon lists

shine math.sqrt(81)
shine strings.upper("hello, aether!")

weave planets = ["Ember", "Tide"]
lists.push(planets, "Gale")
set planets[0] = "Cloud"
shine lists.join(planets, ", ")

summon math as m also works if you prefer a shorter library name.

Library What it does Functions and values
math Constants and common numeric operations. pi, e, tau, abs, floor, ceil, round, sqrt, pow, min, max, clamp, sin, cos, tan, log, log10
strings Change, search, split, and slice text. upper, lower, trim, contains, startsWith, endsWith, replace, split, slice
lists Edit, search, sort, join, and slice lists. push, pop, insert, remove, contains, reverse, sort, join, slice
numpy Small list-based arrays and numeric operations. array, zeros, ones, arange, sum, mean, dot, add, shape
pandas Simple rectangular in-memory tables. frame, head, column, row, shape, unique
matplotlib Display basic charts as console text. bar, line
seaborn Display simple statistical charts as console text. histogram, heatmap
sklearn Demonstrate simple fitting and prediction. linearFit, predict, accuracy, nearest
tensorflow Demonstrate small list-based tensor operations. tensor, relu, sigmoid, softmax, dot
keras Demonstrate small list-based layer operations. tensor, relu, sigmoid, softmax, dot
torch Demonstrate small list-based tensor operations. tensor, relu, sigmoid, softmax, dot
scipy Basic numerical integration and interpolation. trapezoid, derivative, interpolate
opencv Transform supplied nested pixel lists. dimensions, grayscale, invert
pillow Crop and transform supplied nested pixel lists. dimensions, grayscale, invert, crop
files Work with files in the selected project folder. readText, writeText, appendText, list, exists, makeDirectory, remove, copy, move, size

Lists use square brackets, zero-based indexing (planets[0]), and mutable indexed assignment (set planets[0] = "Cloud"). lists.push, insert, pop, remove, sort, and reverse update the supplied list. math.min and math.max accept multiple numbers or a single list of numbers.

Additional libraries (aetherdip install)

The other 64 bundled libraries are installed from a terminal, for example aetherdip install aethergame. Each module is AetherScript-native; use summon <name> to import it, then call its listed functions as <name>.<function>(arguments).

Library What it does Functions
requests Parse URLs and fetch a public URL. parseUrl, isHttps, encode, get
beautifulsoup Extract information from HTML text you supply. text, title, links
flask Build in-memory route and response descriptions. route, response
django Build route/response descriptions and paginate lists. route, response, paginate
plotly Display basic charts as console text. bar, line
bokeh Display basic charts as console text. bar, line
nltk Split text into words/sentences and count words. words, sentences, frequency
spacy Find words, sentences, and capitalized phrases. words, sentences, capitalizedPhrases
wifi Read-only local interface/address details plus simulated profiles and public HTTP GET; no network control. profiles, connect, status, connection, fetch
aethergame Draw 2D, projected 3D, and isometric scenes in Studio. start, maze, rect, polygon, triangle, ellipse, grid, setCamera, point3d, line3d, box3d, sphere3d, tile3d, circle, line, text
aethergui Create separate interactive desktop windows and controls. window, label, button, entry, checkbox, radio, slider, progress, textArea, listBox, dropdown, frame, canvas, menu, tab, pack, grid, place, bind, get, set, remove, clear, widgets, message, show, hide, close, title, drawRect, drawLine, drawText
aetherml Train and evaluate small local numeric models. trainLinear, predictLinear, trainLogistic, predictClass, normalize, split, accuracy, mse, precision, recall
data Parse/format JSON and CSV and reshape/sample lists. parseJson, toJson, parseCsv, toCsv, flatten, chunks, frequencies, minmax, shuffle, sample
utils Reusable game and math helpers. clamp, lerp, mapRange, seededRandom, vector2, vector3, distance2, distance3, normalizeVector, angle2
calendar Find the weekday of an ISO date. dayOfWeek
datetime Validate and format an ISO date. isoDate
statistics Find the median of numbers. median
random_tools Make repeatable seeded random choices. integer, choose
text_patterns Search/replace literal text (not regular expressions). contains, replaceAll
encoding Encode and decode URI or base64 text locally. uriEncode, uriDecode, base64Encode, base64Decode
hashing Make a deterministic, non-cryptographic text hash. fnv1a
identifiers Make a repeatable UUID-shaped identifier from a seed. fromSeed
geometry Measure 2D distance and rectangle area. distance, rectangleArea
physics Calculate speed and force from supplied values. speed, force
sound Convert semitones from A4 to frequency. frequency
keyboard Normalize a key label; does not capture key presses. normalizeKey
mouse Normalize supplied coordinates; does not capture mouse input. relative
tiles Convert a position to a tile-grid cell. cell
collision Test overlap of axis-aligned rectangles. rectanglesOverlap
animation Interpolate between animation values. lerp
camera Project a point through a simple perspective camera. project
mesh Return educational facts about simple meshes. cubeEdgeCount
matrix Transpose a rectangular list-based matrix. transpose
vectors Calculate equal-length vector dot products. dot
probability Run repeatable seeded chance checks. chance
linear Calculate the slope between two points. slope
normalize Scale a numeric list to the zero-to-one range. minMax
validate Check whether values are text or finite numbers. isNumber, isText
convert Convert text and finite numbers. toNumber, toText
formatting Pad text on the left. padLeft
console Convert values to JSON text for display. stringify
config Read a value from simple key=value text. get
timer Convert seconds to milliseconds; no background timer. milliseconds
stopwatch Subtract supplied time values; no running stopwatch. elapsed
text_tools Convert a label to a lowercase URL-style slug. slugify
pixels Calculate brightness from RGB values. brightness
colors Convert between RGB values and hex strings. hexToRgb, rgbToHex
shapes Calculate a circle's area. circleArea
collections Remove duplicate values while preserving order. unique
queue Add/remove values at the ends of a queue list. enqueue, dequeue
stack Push/pop values on a stack list. push, pop
graphs Find neighbors from a list of directed edges. neighbors
search Find the first matching value in a list. indexOf
sorting Sort finite numeric lists ascending. ascending
sets Find values shared by two lists. intersection
paths Read an extension from path text (no file access). extension
json_tools Format a value as readable JSON. pretty
csv_tools Split one quoted CSV line into fields. splitLine
coordinates Convert polar coordinates to Cartesian coordinates. polarToCartesian
units Convert Celsius to Fahrenheit and meters to feet. celsiusToFahrenheit, metersToFeet
logic Calculate exclusive-or. xor
network_tools Parse URL text offline; opens no connections. parseUrl
web_tools Escape HTML-special characters in supplied text. escapeHtml
testing Compare numbers using a tolerance. approximatelyEqual

These are learning-oriented language libraries, not Python package ports: they do not train neural networks, start web servers, access cameras or image files, scan/connect to Wi-Fi, or run Python code. Images and tables are represented using AetherScript lists. requests.get(url) and wifi.fetch(url) make one explicit HTTP GET per program run; only public HTTP/HTTPS hosts are accepted, redirects and credentials are rejected, and requests time out after five seconds with a 1 MB response limit. wifi.connection() only reports non-internal local interface addresses; it does not scan nearby networks or change network connections. The online helpers use the system curl command, which must be available on PATH.

For example, install and use an optional module from CMD:

aetherdip install statistics
summon statistics
shine statistics.median([2, 8, 4])
summon requests
weave page = requests.get("https://example.com/")
shine page

Handmade libraries

A library is an .aether file containing one or more spell definitions and optional summon imports, for example examples/hello_tools.aether. Its lowercase filename becomes its library name:

aetherdip install .\hello_tools.aether

Open a new terminal after installation, then use the library in a program:

summon hello_tools
shine hello_tools.double(6)

You can also use Libraries → Import .aether library in Aether Studio, or run AetherScript: Install Library from the VS Code Command Palette. aetherdip, Aether Studio, and the VS Code extension share the per-user custom library folder. Custom libraries run in the AetherScript interpreter; they cannot execute JavaScript, access files, or make network requests. Online publishing is not configured because this project has no library registry or upload server; installs are local to your account.

aetherdip commands

Open CMD after installing AetherScript Studio. Install the direct executable-converter command once:

aetherdip install auto_aether_to_exe

Then run commands from CMD (a new terminal window may be needed after installing):

aetherdip repl
aetherun .\hello.aether traveler
auto_aether_to_exe .\hello.aether .\hello-app
aetherun .\hello.aether
aetherdip check .\hello.aether
aetherdip install statistics
aetherdip install camera
aetherdip install .\hello_tools.aether
aetherdip list
aetherdip auto_aether_to_exe .\hello.aether

aetherdip repl starts an interactive prompt. Enter complete statements directly, or enter multiline blocks and finish them with their normal AetherScript end marker. Variables persist between entries. Use :help for prompt help and :quit or :exit to leave. aetherun <program.aether> [arguments...] runs a program and passes each remaining CMD argument as a string in the built-in args list, starting at index zero; quote arguments that contain spaces. For example:

shine args[0]

aetherdip install auto_aether_to_exe adds an auto_aether_to_exe.cmd command beside the installed aetherdip shim, in the folder the installer added to your user PATH. auto_aether_to_exe creates a folder containing hello.exe and its runtime files. Share the whole folder, not just the .exe. Opening the generated app runs the bundled program and shows its output. The package also includes the currently installed bundled-library selection and your custom .aether libraries. Command output and errors are written in the terminal.

Keywords and values

Syntax Purpose
weave name = value Declare a variable in the current scope
name = value Python-style variable assignment; creates the name if needed
set name = value Update an existing variable
shine expression Print a value
when condition / otherwise / end Conditional branch
orbit condition / end Loop while the condition is true
for item in items / endfor Loop over a list or string
repeat count times / endrepeat Repeat a fixed number of times
for item from start to stop / endfor Count through an inclusive number range
choose value / case value / endchoose Run the matching case
constant name = value Declare a value that cannot be changed
check condition Stop with an error if the condition is false
spell name(args) / endspell Define a function
def name(args): / endspell Python-style function header
if condition: / elif condition: / else: / end Python-style conditional headers
while condition: / end Python-style while header
for item in items: / endfor Python-style for header
pass Do nothing on this line
assert condition, "message" Stop with an error when the condition is false
from math import sqrt as root Import one library member with an optional alias
try: / except Error as problem: / finally: / endtry Catch runtime errors and optionally run cleanup code
raise expression Stop with an error using the expression as its message
del name Remove a variable from its scope
return expression Return from a function
leave, exit, break Exit the innermost loop
continue, next, skip Skip to the next loop iteration
summon math Import a standard library; optional as alias
true, false, nothing (True, False, None) Boolean and empty values
and, or, not Boolean operators

Python-style headers accept a trailing colon, but blocks still close with AetherScript's explicit end, endfor, endspell, or endtry; indentation does not determine block boundaries. except currently catches runtime errors without filtering by exception class. Strings use double quotes and support \\n, \\r, \\t, \\", and \\\\. Comments start with #. Arithmetic supports +, -, *, /, %, and **; comparisons support ==, !=, <, <=, >, and >=. The in operator checks for a value in a list or string. Assignment supports =, +=, -=, *=, /=, and %=. Parentheses group expressions. + joins values when either side is a string.

Global built-in functions are len, text, number, kind, first, last, isEmpty, contains, sum, average, sorted, reverse, and range. For example, range(4) creates [0, 1, 2, 3], sum([2, 3]) returns 5, and first("Aether") returns "A". Ranges are capped at 10,000 items. The interpreter limits execution to 100,000 steps and spell calls to 100 nested calls.

Commands

  • AetherScript: Run File — run the active .aether document (Ctrl+F5).
  • AetherScript: Run Selection — run the selected code, or the whole file if no selection is active.
  • AetherScript: Open Aether Studio — open the full-size Studio editor.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft