Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@interval/sdk

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interval/sdk

The frontendless framework for high growth companies. Interval automatically generates apps by inlining the UI in your backend code. It's a faster and more maintainable way to build internal tools, rapid prototypes, and more.

  • 1.0.0-dev1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
increased by57.16%
Maintainers
3
Weekly downloads
 
Created
Source
Interval

Interval Node.js SDK

npm version Documentation Twitter Discord

Interval lets you quickly build internal web apps (think: customer support tools, admin panels, etc.) just by writing backend Node.js code.

This is our Node.js SDK which connects to the interval.com web app. If you don't have an Interval account, you can create one here. All core features are free to use.

Why choose Interval?

"Node code > no-code"

Interval is an alternative to no-code/low-code UI builders. Modern frontend development is inherently complicated, and teams rightfully want to spend minimal engineering resources on internal dashboards. No-code tools attempt to solve this problem by allowing you to build UIs in a web browser without writing any frontend code.

We don't think this is the right solution. Building UIs for mission-critical tools in your web browser — often by non-technical teammates, outside of your codebase, without versioning or code review — is an anti-pattern. Apps built in this manner are brittle and break in unexpected ways.

With Interval, all of the code for generating your web UIs lives within your app's codebase. Tools built with Interval (we call these actions) are just asynchronous functions that run in your backend. Because these are plain old functions, you can access the complete power of your Node app. You can loop, conditionally branch, access shared functions, and so on. When you need to request input or display output, await any of our I/O methods to present a form to the user and your script will pause execution until input is received.

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:

  • Makes creating full-stack apps as easy as writing CLI scripts.
  • Can scale from a handful of scripts to robust multi-user dashboards.
  • Lets you build faster than no-code, without leaving your codebase & IDE.

With Interval, you do not need to:

  • Write REST or GraphQL API endpoints to connect internal functionality to no-code tools.
  • Give Interval write access to your database (or give us any of your credentials, for that matter).
  • Build web UIs with a drag-and-drop interface.
An image containing a code sample alongside a screenshot of the Interval app it generates.

More about Interval

Keywords

FAQs

Package last updated on 31 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc