Skip to main content

Introduction

Interval allows you to build internal apps in your backend codebase with zero frontend code.

If you're a Node.js developer who wants to offer your non-technical teammates tools for things like managing accounts, moderating content, and editing database records, Interval is for you.

info

If you're looking for a crash course in Interval, we recommend following our Getting started tutorial which walks you through each step of building and deploying a fully functional customer refund app.

How Interval works‚Äč

Interval apps are defined as actions in your codebase and can be accessed through your team's Interval web dashboard.

Here's a simple app with a single "Hello, world" action:

import Interval from "@interval/sdk";

const interval = new Interval({
apiKey: "<YOUR API KEY>",
actions: {
hello_world: async () => {
const name = await io.input.text("Your name");
return `Hello, ${name}`;
},
},
});

interval.listen();

Interval is a hybrid architecture under which business logic and secrets live within your infrastructure and the rendering of interfaces for your tools is handled by Interval.

The code that defines an action runs in your codebase and on your infrastructure. When you make a call to an I/O method (like io.input.text in the above example), the SDK sends a message back to Interval to render the appropriate UI for the person running your action. When a response is received by the SDK, it's parsed, sanitized, and returned to your function as a soundly typed value.

Architecture diagram

Did this section clearly explain what you wanted to learn?
On this page