1 pointby lasgawe6 hours ago1 comment
  • lasgawe6 hours ago
    Writtte is an open source document editor. It’s built on top of TipTap, with all extensions written from scratch to fit our use cases. The frontend uses no framework, just vanilla JavaScript with a custom router. It runs on Bun.js, with custom server files and built-in caching. The whole codebase is included and easy to read. We’re getting a good number of users already, and Sentry hasn’t reported any critical issues (yet). If you’re interested, feel free to check out the repo. Thanks!

    The backend is written in Go and uses minimal external libraries. We built our own logging library and run everything on Go’s standard HTTP package.

    For the database, we use PostgreSQL. All db-related logic is written in SQL files, which allows us to run unit tests (the test files are not included in the repository yet). The backend communicates only through PostgreSQL functions, there is no raw SQL embedded in the application code.

    That’s the overall setup. I’m also still working on the build documentation.

    Like to see your responses...