Announcing Fieldbook Codelets

Fieldbook is an information tool that lets anyone create a database, as easily as a spreadsheet. Our aim has always been to be more user-friendly than any database and more developer-friendly than any spreadsheet. Today we just got a lot more developer-friendly, with the launch of Fieldbook Codelets.

What’s a Codelet?

A codelet is a snippet of code you upload to a Fieldbook that creates a new API endpoint for the book. You can send HTTP requests to this endpoint, and your code generates the response.

In just a few minutes and a couple dozen lines of code, Codelets let you:

  • Create a Slackbot for your book that responds to slash commands
  • Handle webhook callbacks from other services (such as GitHub or Stripe) to keep your book in sync with external data
  • Add a custom form and form-submission logic to your book

In just 21 lines of code…

Take an employee directory in Fieldbook like this:

And say you want to look up co-workers from Slack like this:

Here’s all the code needed to make this happen:

… That’s it. No, really.

Boilerplate is bullshit

Codelets make things as easy as they ought to be:

  • There’s no need to host a server. Normally a Slackbot or a webhook handler would require a separate Heroku app or something even more cumbersome. Codelets host the code for you.
  • There’s no boilerplate code to write. No webserver to initialize, no middleware stack to configure, no parsing or serializing. Just write the code that matters.
  • Your Fieldbook data is at your fingertips. Each codelet is given a pre-initialized Fieldbook API client object, so reading or writing the data through our API is a one-liner.

Try it now

Check it out in action on this book. Then sign up to make a copy and tweak the data and code yourself.

Making data work easier, one feature at a time

At Fieldbook, our mission is to create the world’s best tool for working with structured information. We believe no one should have to settle for tools that don’t truly fit them, just because of the overhead of operations and boilerplate code. Fieldbook Codelets are one step on the road to eliminating those barriers and delivering custom information tools to everyone.

We can’t wait to see what you do with it!

Like what you read? Give Fieldbook a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.