37 built-in modules — from AI to Graphics, Databases to Email
Mathematical functions, constants, and random number generation.
// Calculate circle area Var radius As Double = 5.0 Var area As Double = Math.PI * Math.Pow(radius, 2) Console.Print("Area: " + area.ToString()) // Random number between 1 and 100 Var n As Integer = Math.RandomInt(1, 100) Console.Print("Random: " + n.ToString())
| Method / Property | Description |
|---|---|
Math.PI | Pi constant (3.14159...) |
Math.E | Euler's number (2.71828...) |
Math.Infinity | Positive infinity |
Math.Sqrt(x) | Square root |
Math.Sin(x) | Sine (radians) |
Math.Cos(x) | Cosine (radians) |
Math.Pow(x, y) | x raised to power y |
Math.Floor(x) | Round down |
Math.Ceil(x) | Round up |
Math.Round(x) | Round to nearest |
Math.Abs(x) | Absolute value |
Math.Min(a, b) | Smaller of two values |
Math.Max(a, b) | Larger of two values |
Math.Random() | Random Double 0.0 to 1.0 |
Math.RandomInt(min, max) | Random integer in range |
Operating system information, paths, environment variables, and timing.
// Print system information Console.Print("Platform: " + System.Platform) Console.Print("OS: " + System.OSVersion) Console.Print("User: " + System.UserName) Console.Print("Temp: " + System.TempDirectory) Var start As Integer = System.CurrentTimeMillis() System.Sleep(500) Console.Print("Elapsed: " + (System.CurrentTimeMillis() - start).ToString())
| Method / Property | Description |
|---|---|
System.Platform | Operating system name |
System.OSVersion | OS version string |
System.UserName | Current user name |
System.TempDirectory | Temp folder path (property) |
System.HomeDirectory | Home folder path |
System.Sleep(ms) | Pause execution |
System.Exit() | Terminate the program |
System.Environment(name) | Read environment variable |
System.CurrentTimeMillis() | Epoch milliseconds |
Text output, colored messages, and interactive input from the user.
// Greet the user Var name As String = Console.ReadLine("What is your name? ") Console.Print("Hello, " + name + "!") Console.Print("[INFO] Welcome to Neuridion") Console.Print("[ERROR] This appears in red")
| Method / Property | Description |
|---|---|
Console.Print(text) | Print text with newline |
Console.PrintLine(text) | Print text with newline |
Console.ReadLine() | Read a line of input |
Console.ReadLine(prompt) | Read input with prompt |
Console.Clear() | Clear the console |
Read, write, copy, and manage files and directories on disk.
// Write and read a file Var path As String = System.TempDirectory + "test.txt" FileAndFolder.WriteAllText(path, "Hello, File!") Var content As String = FileAndFolder.ReadAllText(path) Console.Print(content) Var files As Array = FileAndFolder.ListFiles(System.TempDirectory) Console.Print(files.Count.ToString() + " files")
| Method / Property | Description |
|---|---|
FileAndFolder.ReadAllText(path) | Read entire file as string |
FileAndFolder.WriteAllText(path, text) | Write string to file |
FileAndFolder.Exists(path) | Check if file exists |
FileAndFolder.Delete(path) | Delete a file |
FileAndFolder.CreateFolder(path) | Create a directory |
FileAndFolder.ListFiles(path) | List directory contents |
FileAndFolder.Open(path, mode) | Open file handle (read/write/append) |
HTTP requests, REST API calls, persistent sessions, and TCP sockets.
// Fetch data from an API Var resp As Object = Network.Get("https://api.example.com/users") If resp.OK Then Console.Print("Status: " + resp.StatusCode.ToString()) Console.Print(resp.Body) End If
| Method / Property | Description |
|---|---|
Network.Get(url) | HTTP GET request |
Network.Post(url, body) | HTTP POST request |
Network.Put(url, body) | HTTP PUT request |
Network.Delete(url) | HTTP DELETE request |
Network.Session() | Persistent session with headers |
resp.StatusCode | HTTP status code |
resp.Body | Response body text |
resp.OK | True if status 200-299 |
resp.Headers | Response headers |
SQLite database connections with full SQL query support.
// Create table, insert, query Var db As Object = Database.Open("app.db") db.Execute("CREATE TABLE IF NOT EXISTS users (name TEXT, age INTEGER)") db.Execute("INSERT INTO users VALUES ('Alice', 30)") Var rows As Array = db.Query("SELECT * FROM users") For Each row In rows Console.Print(row["name"]) End For db.Close()
| Method / Property | Description |
|---|---|
Database.Open(path) | Open or create a SQLite database |
db.Execute(sql) | Run SQL (CREATE, INSERT, etc.) |
db.Query(sql) | Run SELECT, returns array of rows |
db.Scalar(sql) | Return single value |
db.Close() | Close the connection |
Build desktop GUI windows with 14 control types, modal and event-loop modes.
// Login form with event loop Var win As Object = Form.Window("Login", 350, 200) win.AddLabel("lbl", "Username:", 20, 20, 100) win.AddTextField("user", "", 20, 50, 300) win.AddButton("btnOK", "Login", 20, 100, 120) win.Open() While True Var ev As Object = win.WaitForEvent() If ev["_control"] = "btnOK" Then Console.Print("User: " + ev["user"]) Exit While End If End While win.Close()
| Method / Property | Description |
|---|---|
Form.Window(title, w, h) | Create a window |
win.AddLabel(name, text, x, y, w) | Add label control |
win.AddButton(name, text, x, y, w) | Add button control |
win.AddTextField(name, text, x, y, w) | Add text field |
win.AddCheckBox(name, text, x, y, w) | Add checkbox |
win.AddComboBox(name, items, x, y, w) | Add dropdown |
win.AddTable(name, data, x, y, w) | Add data table |
win.Show() | Show modal, returns values |
win.Open() | Open for event loop |
win.WaitForEvent() | Wait for next UI event |
win.GetControl(name) | Get live control reference |
win.Close() | Close the window |
Date and time creation, formatting, arithmetic, and parsing.
// Show current date formatted Var now As Object = DateAndTime.Now() Console.Print("Year: " + now.Year.ToString()) Console.Print("Month: " + now.Month.ToString()) Console.Print(now.Format("yyyy-MM-dd HH:mm")) Var tomorrow As Object = now.AddDays(1) Console.Print("Tomorrow: " + tomorrow.Format("dd.MM.yyyy"))
| Method / Property | Description |
|---|---|
DateAndTime.Now() | Current date and time |
DateAndTime.Today() | Today at midnight |
DateAndTime.Create(y, m, d) | Create specific date |
DateAndTime.Parse(str) | Parse date from string |
date.Year / Month / Day | Date components |
date.Hour / Minute / Second | Time components |
date.AddDays(n) | Add days, returns new date |
date.Format(fmt) | Format as string |
Parse, generate, and pretty-print JSON data.
// Parse and access JSON data Var text As String = "{\"name\": \"Alice\", \"age\": 30}" Var data As Object = JSON.Parse(text) Console.Print(data["name"]) // Generate JSON from object Var output As String = JSON.PrettyPrint(data) Console.Print(output)
| Method / Property | Description |
|---|---|
JSON.Parse(str) | Parse JSON string to object |
JSON.Stringify(obj) | Convert object to JSON string |
JSON.PrettyPrint(obj) | JSON with indentation |
Regular expression matching, searching, and text replacement.
// Extract emails from text Var text As String = "Contact alice@test.com or bob@test.com" Var emails As Array = RegEx.MatchAll("[\\w.]+@[\\w.]+", text) For Each email In emails Console.Print(email) End For Var clean As String = RegEx.Replace("\\d+", "abc123", "#") Console.Print(clean) // abc#
| Method / Property | Description |
|---|---|
RegEx.Match(pattern, text) | First match or null |
RegEx.MatchAll(pattern, text) | All matches as array |
RegEx.Replace(pattern, text, repl) | Replace matches |
RegEx.IsMatch(pattern, text) | True if pattern matches |
Create and manipulate colors with RGB, hex, and HSL values.
// Create colors in different formats Var red As Object = Color.RGB(255, 0, 0) Console.Print("Hex: " + red.Hex) Var blue As Object = Color.Hex("#0000FF") Console.Print("Blue: " + blue.Blue.ToString()) Var random As Object = Color.Random() Console.Print("Random: " + random.Hex)
| Method / Property | Description |
|---|---|
Color.RGB(r, g, b) | Create from RGB (0-255) |
Color.Hex(str) | Create from hex string |
Color.HSL(h, s, l) | Create from HSL values |
Color.Random() | Random color |
color.Red / Green / Blue | Component values (0-255) |
color.Hex | Hex string representation |
color.ToArray() | Array of [R, G, B] |
Create images, draw shapes, render text, and manipulate pixels.
// Draw shapes on a canvas Var pic As Object = Graphics.CreatePicture(400, 300) pic.DrawRect(10, 10, 380, 280, "blue") pic.DrawCircle(200, 150, 80, "red") pic.DrawLine(0, 0, 400, 300, "green") pic.DrawText("Hello!", 150, 150, "white") pic.SaveToFile("drawing.png") pic.Show()
| Method / Property | Description |
|---|---|
Graphics.CreatePicture(w, h) | Create blank canvas |
pic.DrawRect(x, y, w, h, color) | Draw rectangle |
pic.DrawCircle(x, y, r, color) | Draw circle |
pic.DrawLine(x1, y1, x2, y2, color) | Draw line |
pic.DrawText(text, x, y, color) | Render text |
pic.SetPixel(x, y, color) | Set single pixel |
pic.SaveToFile(path) | Save as PNG |
pic.Show() | Display in window |
Hashing, HMAC, encryption, random bytes, and UUID generation.
// Hash and encrypt data Var hash As String = Crypto.Hash("SHA256", "secret") Console.Print("Hash: " + hash) Var cipher As String = Crypto.Encrypt("Hello", "password123") Var plain As String = Crypto.Decrypt(cipher, "password123") Console.Print(plain) // Hello Console.Print(Crypto.UUID())
| Method / Property | Description |
|---|---|
Crypto.Hash(algo, text) | Hash with SHA256, MD5, etc. |
Crypto.HMAC(algo, text, key) | Keyed-hash message auth |
Crypto.Encrypt(text, password) | AES encrypt text |
Crypto.Decrypt(cipher, password) | AES decrypt text |
Crypto.RandomBytes(n) | Random bytes as hex |
Crypto.UUID() | Generate UUID v4 |
Claude AI integration for text generation, summarization, and translation.
// Ask the AI a question Var answer As String = AI.Ask("Explain recursion in simple terms") Console.Print(answer) // Summarize a long text Var longText As String = "..." Var summary As String = AI.Summarize(longText) Console.Print(summary)
| Method / Property | Description |
|---|---|
AI.Ask(prompt) | Ask a question, get answer |
AI.Chat(messages) | Multi-turn conversation |
AI.Summarize(text) | Summarize long text |
AI.Translate(text, lang) | Translate to language |
Parse XML strings and files, navigate element trees, read attributes.
// Parse XML and access elements Var xml As String = "<library><book><title>Neuridion</title></book></library>" Var doc As Object = XML.ParseString(xml) Var book As Object = doc.GetChild("book") Var title As Object = book.GetChild("title") Console.Print(title.Text)
| Method / Property | Description |
|---|---|
XML.ParseString(xml) | Parse XML from string |
XML.LoadFromFile(path) | Load XML from file |
node.Tag | Element tag name |
node.Text | Element text content |
node.Attributes | Attribute dictionary |
node.Children | Child element array |
node.GetChild(name) | First child by tag name |
node.GetChildren(name) | All children by tag name |
Load and play sound files, record audio from the microphone.
// Load and play a sound file Var player As Object = Audio.LoadSound("music.mp3") player.Play() Console.Print("Now playing...") System.Sleep(3000) player.Stop() // Record audio Var rec As Object = Audio.StartRecording() System.Sleep(2000) rec.Stop()
| Method / Property | Description |
|---|---|
Audio.LoadSound(path) | Load audio file |
player.Play() | Start playback |
player.Pause() | Pause playback |
player.Stop() | Stop playback |
Audio.StartRecording() | Start mic recording |
recorder.Stop() | Stop recording |
Zip and unzip files and directories for archiving and distribution.
// Zip a folder and unzip it Compression.Zip("/path/to/folder", "/path/to/archive.zip") Console.Print("Compressed!") Compression.Unzip("/path/to/archive.zip", "/path/to/output") Console.Print("Extracted!")
| Method / Property | Description |
|---|---|
Compression.Zip(source, dest) | Compress file or folder |
Compression.Unzip(archive, dest) | Extract zip archive |
Compression.ZipFiles(files, dest) | Zip specific files |
Text-to-speech synthesis using the macOS speech engine.
// Text-to-speech in multiple languages Speech.Say("Hello from Neuridion!") Speech.Say("Hallo Welt!", "Anna") // List available voices Var voices As Array = Speech.Voices() For Each v In voices Console.Print(v) End For
| Method / Property | Description |
|---|---|
Speech.Say(text) | Speak text with default voice |
Speech.Say(text, voice) | Speak with named voice |
Speech.Voices() | List available voices |
Read and write the system clipboard for copy-paste operations.
// Copy and paste text Clipboard.SetText("Hello from Neuridion!") Var text As String = Clipboard.GetText() Console.Print("Clipboard: " + text) Clipboard.Clear()
| Method / Property | Description |
|---|---|
Clipboard.GetText() | Get clipboard text |
Clipboard.SetText(text) | Set clipboard text |
Clipboard.Clear() | Clear the clipboard |
Show macOS desktop notifications with title, message, and optional subtitle.
// Show desktop notifications Notification.Show("Build Complete", "Your project compiled successfully.") Notification.Show("Alert", "Disk space is low.", "Warning")
| Method / Property | Description |
|---|---|
Notification.Show(title, message) | Show notification |
Notification.Show(title, message, subtitle) | Show with subtitle |
Execute terminal commands and capture their output.
// Run a shell command Var output As String = Shell.Output("whoami") Console.Print("User: " + output) Shell.Execute("open", ["https://neuridium.com"])
| Method / Property | Description |
|---|---|
Shell.Execute(command) | Run command |
Shell.Execute(command, args) | Run with arguments |
Shell.Output(command) | Run and return stdout |
Persistent key-value storage that survives between program runs.
// Store and retrieve data Storage.Set("username", "Alice") Storage.Set("visits", "42") Var name As String = Storage.Get("username") Console.Print("Welcome back, " + name) Var keys As Array = Storage.Keys() Console.Print(keys.Count.ToString() + " stored keys")
| Method / Property | Description |
|---|---|
Storage.Set(key, value) | Store a value |
Storage.Get(key) | Retrieve a value |
Storage.Delete(key) | Remove a key |
Storage.Keys() | All stored keys |
Storage.Clear() | Remove all data |
Generate QR code images from text, URLs, or any string data.
// Generate a QR code image Var path As String = System.TempDirectory + "qr.png" QRCode.Generate("https://neuridium.com", path) Console.Print("QR code saved to: " + path) // With custom size QRCode.Generate("Hello World", path, 512)
| Method / Property | Description |
|---|---|
QRCode.Generate(text, path) | Generate QR code image |
QRCode.Generate(text, path, size) | Generate with custom size |
Read, write, and parse comma-separated values files.
// Read a CSV file Var rows As Array = CSV.Read("data.csv") For Each row In rows Console.Print(row[0] + " - " + row[1]) End For // Write data to CSV Var data As Array = [["Name", "Age"], ["Alice", "30"]] CSV.Write("output.csv", data)
| Method / Property | Description |
|---|---|
CSV.Read(path) | Read CSV file as 2D array |
CSV.Write(path, data) | Write 2D array to CSV |
CSV.Parse(text) | Parse CSV string |
Create PDF documents with text, images, and multiple pages.
// Create a simple PDF document Var doc As Object = PDF.Create("report.pdf") doc.AddPage() doc.AddText("Neuridion Report", 50, 750) doc.AddText("Generated automatically.", 50, 720) doc.AddImage("chart.png", 50, 400, 300, 200) doc.Save()
| Method / Property | Description |
|---|---|
PDF.Create(path) | Create new PDF |
doc.AddPage() | Add a page |
doc.AddText(text, x, y) | Add text at position |
doc.AddImage(path, x, y, w, h) | Add image |
doc.Save() | Save the PDF file |
Audio synthesizer engine with waveforms, frequencies, and MIDI-style notes.
// Play a tone with the synthesizer Var synth As Object = Synth.Create() synth.SetWaveform("sine") synth.SetFrequency(440) synth.Start() System.Sleep(1000) synth.Stop() // Play notes synth.NoteOn(60) // Middle C System.Sleep(500) synth.NoteOff(60)
| Method / Property | Description |
|---|---|
Synth.Create() | Create synthesizer |
synth.SetWaveform(type) | sine, square, sawtooth, triangle |
synth.SetFrequency(hz) | Set frequency in Hz |
synth.Start() | Start sound output |
synth.Stop() | Stop sound output |
synth.NoteOn(midi) | Play MIDI note |
synth.NoteOff(midi) | Release MIDI note |
Create bar, line, pie, and scatter charts from data arrays.
// Create a bar chart (2 args: labels, values) Var labels As Array = ["Jan", "Feb", "Mar", "Apr"] Var values As Array = [120, 250, 180, 310] Var chart As Object = Chart.Bar(labels, values) chart.Title = "Monthly Sales" chart.Show()
| Method / Property | Description |
|---|---|
Chart.Bar(labels, values) | Create bar chart |
Chart.Line(labels, values) | Create line chart |
Chart.Pie(labels, values) | Create pie chart |
Chart.Scatter(labels, values) | Create scatter chart |
chart.Title | Set chart title |
chart.SetSize(w, h) | Set chart dimensions |
chart.SetColor(color) | Set chart color |
chart.Show() | Display chart window |
chart.SaveToFile(path) | Save as image |
Translate text between languages using Apple Translation and online APIs.
// Translate text between languages Var result As String = Translate.Text("Hello, World!", "en", "de") Console.Print(result) // Hallo, Welt! Var lang As String = Translate.DetectLanguage("Bonjour") Console.Print("Detected: " + lang)
| Method / Property | Description |
|---|---|
Translate.Text(text, from, to) | Translate text |
Translate.DetectLanguage(text) | Detect source language |
Translate.Languages() | List supported languages |
Encode and decode data in Base64, hexadecimal, and URL formats.
// Base64 encode and decode Var encoded As String = Encoding.Base64Encode("Hello, World!") Console.Print(encoded) // SGVsbG8sIFdvcmxkIQ== Var decoded As String = Encoding.Base64Decode(encoded) Console.Print(decoded) Var url As String = Encoding.URLEncode("hello world") Console.Print(url) // hello%20world
| Method / Property | Description |
|---|---|
Encoding.Base64Encode(text) | Encode to Base64 |
Encoding.Base64Decode(text) | Decode from Base64 |
Encoding.HexEncode(text) | Encode to hexadecimal |
Encoding.HexDecode(text) | Decode from hexadecimal |
Encoding.URLEncode(text) | URL-encode a string |
Encoding.URLDecode(text) | URL-decode a string |
Get screen dimensions and capture screenshots.
// Get screen info and capture Console.Print("Width: " + Screen.Width().ToString()) Console.Print("Height: " + Screen.Height().ToString()) Var path As String = System.TempDirectory + "screenshot.png" Screen.Capture(path) Console.Print("Screenshot saved!")
| Method / Property | Description |
|---|---|
Screen.Width() | Screen width in pixels |
Screen.Height() | Screen height in pixels |
Screen.Capture(path) | Full screen capture |
Screen.Capture(path, x, y, w, h) | Capture screen region |
GPS coordinates, geocoding addresses, and reverse geocoding.
// Get current location Var loc As Object = Location.Current() Console.Print("Lat: " + loc.Latitude.ToString()) Console.Print("Lon: " + loc.Longitude.ToString()) // Geocode an address Var result As Object = Location.Geocode("Berlin, Germany") Console.Print(result.Latitude.ToString())
| Method / Property | Description |
|---|---|
Location.Current() | Get current GPS location |
Location.Geocode(address) | Address to coordinates |
Location.ReverseGeocode(lat, lon) | Coordinates to address |
loc.Latitude | Latitude coordinate |
loc.Longitude | Longitude coordinate |
loc.Altitude | Altitude in meters |
Send emails via SMTP and read emails from IMAP servers.
// Send an email Var mail As Object = Email.Create() mail.To = "friend@example.com" mail.From = "me@example.com" mail.Subject = "Hello from Neuridion" mail.Body = "This email was sent by code!" mail.Send("smtp.example.com", 587, "user", "pass")
| Method / Property | Description |
|---|---|
Email.Create() | Create new email |
mail.To / From / Subject / Body | Set email fields |
mail.HTML | Set HTML body |
mail.Send(host, port, user, pass) | Send via SMTP |
Email.IMAP(host, port, user, pass) | Connect to IMAP |
imap.Fetch() / FetchUnread() | Retrieve messages |
imap.Search(query) | Search messages |
Access, create, and delete calendar events on macOS.
// List upcoming calendar events Var start As Object = DateAndTime.Today() Var end As Object = start.AddDays(7) Var events As Array = Calendar.Events(start, end) For Each ev In events Console.Print(ev["title"]) End For
| Method / Property | Description |
|---|---|
Calendar.Events(start, end) | Get events in date range |
Calendar.CreateEvent(title, start, end) | Create a new event |
Calendar.DeleteEvent(id) | Delete an event by ID |
Access the macOS address book to search and create contacts.
// Search contacts Var results As Array = Contacts.Search("Alice") For Each person In results Console.Print(person.FirstName + " " + person.LastName) Console.Print(" Email: " + person.Email) Console.Print(" Phone: " + person.Phone) End For
| Method / Property | Description |
|---|---|
Contacts.All() | Get all contacts |
Contacts.Search(query) | Search by name |
Contacts.Create(first, last) | Create new contact |
contact.FirstName | First name |
contact.LastName | Last name |
contact.Email | Email address |
contact.Phone | Phone number |
Read CPU, memory, and battery information from the system.
// Show hardware information Console.Print("CPU: " + Hardware.CPUName()) Console.Print("Cores: " + Hardware.CPUCores().ToString()) Console.Print("RAM: " + Hardware.TotalMemory().ToString() + " GB") Console.Print("Free: " + Hardware.FreeMemory().ToString() + " GB") Console.Print("Battery: " + Hardware.BatteryLevel().ToString() + "%") Console.Print("Charging: " + Hardware.IsCharging().ToString())
| Method / Property | Description |
|---|---|
Hardware.CPUName() | CPU model name |
Hardware.CPUCores() | Number of CPU cores |
Hardware.TotalMemory() | Total RAM in GB |
Hardware.FreeMemory() | Available RAM in GB |
Hardware.BatteryLevel() | Battery percentage |
Hardware.IsCharging() | True if charging |
Scan for nearby Bluetooth devices and read their properties.
// Scan for Bluetooth devices Var scan As Object = Bluetooth.Scan() System.Sleep(3000) Var devices As Array = scan.Devices For Each dev In devices Console.Print(dev.Name + " (RSSI: " + dev.RSSI.ToString() + ")") End For scan.Stop()
| Method / Property | Description |
|---|---|
Bluetooth.Scan() | Start scanning |
scan.Devices | Array of found devices |
scan.Stop() | Stop scanning |
device.Name | Device name |
device.UUID | Device identifier |
device.RSSI | Signal strength |
Apply visual filters and effects to images via Graphics picture objects.
// Apply filters to an image Var pic As Object = Graphics.CreatePicture(400, 300) pic.DrawRect(0, 0, 400, 300, "blue") pic.DrawCircle(200, 150, 100, "red") // Apply image filters pic.Blur(5) pic.Brightness(0.2) pic.Grayscale() pic.Show()
| Method / Property | Description |
|---|---|
pic.Blur(radius) | Gaussian blur |
pic.Sharpen() | Sharpen image |
pic.Brightness(val) | Adjust brightness (-1 to 1) |
pic.Contrast(val) | Adjust contrast |
pic.Grayscale() | Convert to grayscale |
pic.Sepia() | Apply sepia tone |
Every module is built in and ready to use — no package manager, no dependencies, no configuration.