tildefriends/docs/in-depth.md
2024-05-12 11:20:09 +02:00

1.8 KiB

Tilde Friends in depth

Philosophy

Tilde Friends is a platform for making, running, and sharing web applications.

Architecture

Tilde Friends is a C++ application with a JavaScript runtime that provides restricted access to filesystem, network, and other system resources. The core process runs a core set of scripts that implement a web server, typically starting a new process for each visitor's session which runs scripts for the active application and stopping it when the visitor leaves.

Only the core process has access to most system resources, but session processes can be given accesss through the core process.

Service processes are identical to session processes, but they are not tied to a user session.

/-------\         /-------------\         /--------------\
| C app | <-----> | Server-side | <-----> | Client-side  |
|       |  tfrpc  | JS runtime  |         | JS (Browser) |
\-------/         \-------------/         \--------------/