hi! I just published a package to npm called cohost-api. you can take a look at the GitHub page here.
Why a new library?
I am aware of cohost.js, and have already tried working on it and adding more features. unfortunately, it looks like Cohost has moved to a new API since cohost.js's creation(?), and they now use the tRPC library. the old API is not dead yet, but it's much harder to map out the old one now that the website has switched over. I figured it would give this project the most flexibility and maintainability to start from scratch using tRPC, the same library Cohost is using.
What can I do with it?
cohost-api is very close to feature parity with cohost.js. the only feature present in cohost.js that cohost-api is missing is the ability to upload attachments (I plan to add this next). edit: that's been added! this means you can create posts, create and publish drafts, and like+unlike posts; plus, I am actively maintaining this library and I plan to add a whole bunch of new features. what exists now is enough to create a basic Cohost bot for, say, a progress bar for the current year à la year_progress from Twitter?
anyways, give it a shot, open an issue if you run into any bugs, and have fun :)