Litestream & LiteFS are both physical, async replication tools so they actually work at the page level. When a transaction commits, the changed pages are shipped off to a replication destination. By replaying those changes in the same order, you can rebuild the current state of the database (or any point-in-time state in between). Both of these systems require a single primary node at a time so multi-master doesn't work with them.
Litestream only replicates to "dumb storage" (e.g. S3, SFTP) whereas LiteFS replicates to other live nodes so you can have live replicas.
[0] https://github.com/vlcn-io/cr-sqlite/
[1] https://github.com/rhashimoto/wa-sqlite/
[2] https://github.com/rhashimoto/wa-sqlite/discussions/63
[3] https://github.com/vlcn-io/cr-sqlite/#how-does-it-work