Show HN: I built a lightweight LLM workflow with only JavaScript and Code hooks
1–2 of 2 posts
Re: Show HN: I built a lightweight LLM workflow with only JavaScript and Code hooks
#2The example demonstrates: - Multi-step workflow state management - OpenAI API integration with automatic retries and exponential backoff - Caching to reduce costs - GitHub webhook integration with signature verification - Serverless deployment (no infrastructure to manage)
This sits between lightweight prompt libraries (LangChain) and heavyweight orchestrators (Airflow). It's for developers who need state persistence, retries, and scheduling without spinning up new infrastructure.
Live example code: https://github.com/RestDB/codehooks-io-examples/tree/main/ll...
Blog post with details: https://codehooks.io/blog/building-llm-workflows-javascript
The example is fully functional - you can deploy it in 5 minutes with `npm install` and `coho deploy`.