Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4499872
README.txt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
README.txt
View Options
ANT - Ant sized JavaScript Runtime
===================================
A minimal embedded JavaScript engine with async/await, promises, modules,
and built-in APIs for HTTP servers, timers, crypto, and JSON.
BUILD:
meson setup build && meson compile -C build
RUN:
./build/ant script.js
EXAMPLE:
See tests/server/server.cjs for a good server example using Ant.serve()
with Radix3 routing, parameter handling, and various response types.
MODULES:
- Ant.serve() - HTTP server (mongoose)
- Ant.require() - CommonJS module loading
- Timers - setTimeout, setInterval, queueMicrotask
- fetch() - HTTP client (curl)
- crypto.* - Cryptography (libsodium)
- JSON.* - JSON parsing
- console.* - Logging
FEATURES:
- Async/await and Promises
- ES6+ syntax (arrow functions, classes, template literals)
- Signal handlers (SIGINT, SIGTERM, etc.)
- 64MB default memory pool
- Embedded garbage collector
DEPENDENCIES:
libsodium, curl, mongoose, yyjson, argtable3, uuidv7
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 8:10 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
524923
Default Alt Text
README.txt (1 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment