Skip to content
Adrian Mark Doczi — Home
All projects

Hosvaldo

A book-writing app with a built-in AI assistant and a page editor that exports a print-ready PDF, in English and Hungarian.

Status
Live; payments run in Stripe test mode
My role
My own product. I designed and built it, and I run it on my own server.
Technologies
Next.js, React, TypeScript, Lexical, SQLite, OpenRouter, Stripe, Playwright

The problem

Writing and publishing a book usually takes a word processor, a layout program and an AI tool side by side. Hosvaldo puts them in one place, from the first draft to a print-ready PDF.

The solution

A Next.js app where a customised Lexical editor lays the text out on real book pages, AI models write, rewrite and give feedback through OpenRouter, and the finished book exports as a PDF in the exact page size.

Main features

  • Quick book: pick a genre, writing style, mood and age group, and the AI writes the first draft
  • A page editor with five book sizes, where text flows on to the next page as in a word processor
  • AI rewriting, feedback, chat and "write the next page", always in the language of the book
  • A character panel, text blocks, drawing and images on the page
  • A cover designer that finds stock photos from the words of the title
  • A free preview, then a print-ready PDF in the chosen size

How it is built

  • Web app built with Next.js, React and TypeScript
  • A browser-based book editor on a customised Lexical
  • AI models integrated through OpenRouter
  • AI writing, rewriting and feedback
  • The AI assistant and the editor kept in step
  • Page layout and size-accurate PDF export
  • A customisable cover designer
  • Character management
  • Credit-based usage, with Stripe in test mode
  • SQLite database
  • End-to-end tests with Playwright
  • Multilingual interface
  • Self-hosted on my own server

The hardest part

Making the AI and the editor work together: text the AI writes or rewrites has to land on the pages without breaking the layout or the author's own edits.

Screens

Hosvaldo

100%