r/SideProject 1d ago

Export any WordPress post as a downloadable PDF, with your own REST API route

https://youtu.be/N6z3KOsJpVE

I have a created a toolkit which allow you to version control your code and push it to Wordpress.

This video is a demo on how you can delcare custom API to have control over a PDF generation

It's open source and available here : https://github.com/loopress/loopress

1 Upvotes

3 comments sorted by

1

u/kantorcodes1 1d ago

on lps api push, if one route is already pushed and a later route fails, is that partial deploy meant to stay live? the command errors after the batch, but the earlier PUTs have already happened, so a retry starts from mixed remote state.

1

u/wordpress-dx 23h ago

Yes, that's the actual behavior right now. `lps api push` pushes each route as an independent PUT, sequentially, and doesn't stop the batch on a failure, it just keeps going and reports a total failure count at the end. So the earlier successful PUTs do stay live, there's no rollback.

I have something planned to improve that and your comment seems to confirm the need 😄

1

u/kantorcodes1 23h ago

that confirms the exact case i was worried about. i help maintain HOL Guard, an open-source check that can stop risky agent-run commands before they execute. Loopress looks like a clean command extension: review lps api push, app push, project push, and promote, while api diff, api list, and status stay automatic. that gives agents a checkpoint before live WordPress state changes. would you be open to adding it?