biff 2026-11-28

On prod env, what is right way to check state for debugging, after connecting via biff prod-nrepl for eg how to get system ctx map, same as request handler is seeing; or checking the tab state atom etc does anyone have a reference repl.clj style code handy somewhere especially for an authenticated user

the starter project comes with a repl.clj file, and the last line shows how to get the ctx map and how to query the database: https://github.com/jacobobryant/biff-starter/blob/306292a4a817f956106defbd52741abcd55cab9e/repl.clj#L21 tab state is stored in the DB (see schema.clj in the starter app) so you can do "select * from tab_state". though to get a particular user's tab state ID you'll need to do a (prn (:biff.datastar/tab-id ctx)) in some ring handler

awesome, have bookmarked this repo as well. thanks!

🙌 1