Zotero is a citation manager, with a firefox extension to save an article (but really, a tab) with one click.
It also has fulltext search. You can search snapshots of everything you save.
“But I can’t save all my tabs at once”
(There are some solutions, but nothIng official)
Save as you go. Computers simply don’t have enough ram for 2000 tabs.
Anyway, it also seems to be able to run javascript plugins, and I saw you have some experience with that.
It also has support for folders, so you can organize it a bit better than tabs work for that.
I just use termux + the simple http server built into python