From 0e2c5f9e4980ed259bfc36044c50eb9fedfc27b2 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Sun, 16 Jan 2022 05:39:07 +0000 Subject: [PATCH] Initial FossilOrigin-Name: 3f0b9969cca554540ca465095193b9d00d3c132627771b3cbdbf3d22464483e6 --- Makefile | 16 ++++++++++++++++ README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 Makefile create mode 100644 README.md diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89c8d74 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CC ?= cc +CFLAGS = -Wall +LDFLAGS = -lcurl +SRC = $(wildcard src/*.c) +OBJ = $(patsubst %.c,%.o,$(SRC)) +TARGET = ratfe + +all: $(TARGET) + +$(TARGET): $(OBJ) + $(CC) -o $(TARGET) $(LDFLAGS) + +$(OBJ): $(SRC) + $(CC) $(CFLAGS) -c $< -o $@ + +.PHONY: all diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf4548f --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# RatFE + +A pleroma frontend for rats. + +The goal is to create a frontend that's lightweight enough to be viewed without JS, but +usable enough to improve the experience with JS. + +RatFE uses C with FCGI, mastodont-c (another library that complements RatFE) for +communication, and plain JavaScript. It also uses sqlite3 to store any user-specific +information and groups. + +## Isn't FCGI outdated? + +No. + +## Isn't Sqlite3 slow? + +No, in fact, it may likely be faster than if it were using postgresql. The pleroma server +communicates using postgresql because there are lots of incoming requests and outgoing +requests on the server, and there can be multiple requests at once occuring, which get +queued. We don't need that kind of speed and we shouldn't interfere with it anyway. + +Plus, Sqlite3 is only being used for user groups and possibly some session information. + +## Rat? + +Rats are c00l.