Today we’re releasing two new blocks: Event and Workflow.
Event Block
Inspired by our previous Analytics offering, we're introducing a more powerful “Event” Block. It comes with two layouts that adapt to your needs: a table layout for complex data structures and a time-series layout.
The table layout excels at showcasing detailed event information with customizable columns and filtering options. The time-series layout enables trend analysis across different time ranges, perfect for metrics and reporting.
For developers, we've rebuilt the event functions from the ground up. The new sendEvent
, updateEvent
, and getEvents
are fully type-safe and work seamlessly with the Event Block’s schema.
Read our docs and jump right in, or keep reading to see some demos!
Workflow Block
Collecting and reviewing data is nice, but what can we do with all this data? This is a question we asked ourselves while designing the Event Block, and that’s why we built the Workflow Block. The workflow block, as its name implies, is designed to automate different actions inside your repo. V1 launches with essential triggers:
New commits,
Collection updates (row create/update/delete), and
Event submissions.
When any of these happen, you can send a webhook to a server you own, or an internal notification. Each combination of trigger + action opens up new automation possibilities: from simple “contact us” forms, to fully functional newsletter subscriptions, workflows will help you enhance your repository's capabilities.
Read more about the Workflow Block in our Docs.
basehub
SDK v8
These new Blocks require the new version of our SDK:
pnpm i basehub@latest
Take a look at the release notes when upgrading.
Demos Please!
Let’s get to the fun part. These are longer-than-usual demos, but we truly hope you enjoy them.
Demo #1: “Feedback” Form
This first demo goes over everything needed to start working with Forms in BaseHub. It covers: creating the Event Block, hooking it up with the Next.js App, as well as listening for new submissions and posting them to a Discord Channel via a Workflow Block.
Demo #2: “Newsletter” Form
This one shows off how, via the same simple primitives, you can create a fully featured newsletter in your website. It features a Resend integration!
Demo #3: View Counter
A much simpler demo showing a view counter in julianbenegas.com (source).
Demo #4: Form Builder
Powerful (but short) demo showing off a programmatic form builder in our Marketing Website Template.
Closing Thoughts
With this release, we hope to have conveyed our commitment to creating powerful primitives that, when paired together, can enable more functionality than they seem to on their own. See you in the next one!