News for hackers. Stuff that matters.

bjabrboe1984

I wrote about building production LLM workflows in JavaScript and created a complete working example.

The 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`.

Show HN: Deploy a Production Webhook Delivery System in 5 Minutes

https://codehooks.io/blog/build-webhook-delivery-system-5-minutes-codehooks-io

Building a production-ready webhook delivery system from scratch takes weeks. Setting up webhook infrastructure, managing webhook queues, and handling webhook retries is complex.Play around with this JavaScript code example template and have your own webhook delivery solution up and running in 5 minutes.

( Read More... | 1 comment | 3 points | on HN )
Thanks for taking the time to answer!

The main difference is that codehooks.io embeds a document database, a key-value store, a job scheduler and a worker queue without any config/setup. We want it to be easy to create a complete backend using codehooks.io in the shortest possible time.

Another difference is the speed and simplicity of deployment. Deployment typically takes 1 second or less. This increases developer productivity.

Our goal is that the developer can focus 100% on the application logic and 0% on the setup.

We have considered open sourcing it and we might do that at a later stage.

Show HN: How to quickly build random quotes API using data from Kaggle

https://codehooks.io/blog/serverless-quotes-api

This blog post shows how you can build a fast serverless API for a large data set. We'll use a 144MB file with 500K famous quotes to create an efficient NoSQL datastore using code hooks. We'll build and deploy a public serverless API to serve random quotes from the NoSQL database to clients.

( Read More... | no comments | 4 points | on HN )
Re:SHOW HN: Back-End as a Service for Lazy Developers on Monday September 12, 2022 @06:15PM (#32817804)
Create JS (or TS) hooks (functions), use two types of NoSQL (document, key/value), message queues, cron jobs. Deploy! No config or complex setup like K8.
Re:Ask HN: Create API without coding? on Monday October 31, 2016 @10:28AM (#12836984)
Fieldbook.com