FOAM: Feature-Oriented Active Modeller, Version 3
Start here → foam-foundation.github.io/foam3 — guides, tutorials, demos and videos.
Build fully featured high performance apps in less time using FOAM.
"Fast apps Fast"
FOAM3 is the active version of FOAM.
The FOAM1 website still contains many useful demos and videos (but some links may be broken).
Ask questions and get help on the FOAM Discussion Group. Or DeepWiki.
FOAM is a modeling tool and class based object system. To use FOAM, you create a model of your class by describing the properties, methods, event topics, listeners, and dependencies of your class. FOAM takes this model and generates a usable JavaScript class along with several companion features such as database support and network marshaling.
While FOAM is written in JavaScript, it can be used to generate code for any language or platform, including Android Java and iOS Swift.
FOAM has no runtime dependencies, but does have build dependencies:
Once dependencies are installed, update FOAM's javascript dependencies: From the root of the FOAM repository, execute:
./build.sh --install
sudo chown -R $USER /opt
See INSTALL.md for more detailed installation notes.
PythonJob allows long-running Python processes (e.g. ML training) to run as
tracked server-side jobs with live output streaming in the browser. It requires:
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
To verify all AI/Python prerequisites are in place:
./build.sh check-ai
./build.sh -Jdemo
admin and password admin ./build.sh
NOTE: this will create a parent directory above foam3/
./build.sh -T+setup/Project --appName:Example --package:com.foamdev --adminPassword:badpassword
cd ..
./build.sh
The project also includes a Dockerfile and a docker-compose.yml. The
image builds the app and runs it from the JARs, with journals, logs and
documents in named volumes:
docker compose up --build
JOURNALS=production docker compose up --build adds deployment journal sets
to the build (docker is always included), and JAVA_OPTS sizes the heap.
To build and deploy to a remote linux instance
./build.sh -ck[Jpom...]./build.sh -TStandard,RemoteInstall,Java --user:foam user-id:3636 --remote-hostname:hostnameAll code should follow the style guide.
To run all, Java and Javacript, tests from the command-line, run:
./build.sh -W9090 --run-tests
To run individual tests from the command-line, run:
./build.sh -W9090 --run-tests:testName1,testName2,...testNameN
The -W9090 option runs the test server on port 9090 so that it doesn't conflict
with a server that may already be running on the default port 8080.
The full set of guides is published at foam-foundation.github.io/foam3/guides.
[MD] Pages with tags are hard to read in plain markdown viewers, and glossary popups show no definition
https://github.com/foam-foundation/foam3/issues/5992
Labels: 없음
FOAM By Example Flows that share variables across examples are broken
https://github.com/foam-foundation/foam3/issues/5991
Labels: Reflow
[MD] MarkdownView: headings get no id and no inline markup
https://github.com/foam-foundation/foam3/issues/5981
Labels: 없음
[MD] MarkdownView: long code lines wrap instead of scrolling
https://github.com/foam-foundation/foam3/issues/5979
Labels: 없음
[MD] MarkdownView: tables look heavy next to GitHub's
https://github.com/foam-foundation/foam3/issues/5978
Labels: 없음
[MD] MarkdownView: no inline markup inside bold
https://github.com/foam-foundation/foam3/issues/5977
Labels: 없음
[MD] MarkdownView: support reference-style links
https://github.com/foam-foundation/foam3/issues/5976
Labels: 없음
No CONTRIBUTING document was found. Please check the README and open issues.