100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Web

LoopBack

An extensible Node.js framework for building APIs and connecting to data sources

IntermediateFramework6K learners

js and TypeScript API framework, maintained by IBM/StrongLoop, that generates end-to-end REST APIs with minimal coding by defining data models and connecting them to a wide range of backend data sources through built-in connectors.

Definition

LoopBack is a highly extensible Node.js and TypeScript API framework, maintained by IBM/StrongLoop, that generates end-to-end REST APIs with minimal coding by defining data models and connecting them to a wide range of backend data sources through built-in connectors.

Overview

LoopBack originated at StrongLoop as a framework aimed at solving a recurring problem in API development: connecting an HTTP interface to a database with predictable CRUD behavior, filtering, relations, and access control, without hand-writing repetitive boilerplate for each endpoint. IBM acquired StrongLoop in 2015 and has maintained LoopBack since, with LoopBack 4 (a full TypeScript rewrite) representing the current generation of the framework, built around dependency injection and a more modular architecture than LoopBack 3. At the core of LoopBack is the concept of a 'connector': a pluggable adapter that lets a defined data model talk to a specific backend — relational databases like PostgreSQL and MySQL, NoSQL stores like MongoDB, or even external REST and SOAP services — through a unified repository API. Once a model and its connector are defined, LoopBack can automatically expose a full set of REST endpoints (list, get, create, update, delete, plus relation and filter endpoints) along with an auto-generated OpenAPI specification and interactive API Explorer UI. LoopBack 4 embraces TypeScript decorators and inversion-of-control patterns (similar in spirit to NestJS) for defining controllers, repositories, and services, alongside built-in support for authentication, authorization, and API versioning through extensible 'components.' This makes it well suited to teams that want strong typing and DI discipline while still benefiting from LoopBack's connector-driven, low-boilerplate approach to exposing data as APIs. LoopBack is most often chosen for building CRUD-heavy backend services and API gateways quickly, especially when the data model needs to connect to multiple heterogeneous data sources through a consistent programming model.

Key Features

  • Auto-generates full CRUD REST APIs from declared data models
  • Pluggable 'connector' architecture supporting SQL, NoSQL, and remote service backends
  • LoopBack 4 rewritten in TypeScript with dependency injection and decorators
  • Built-in OpenAPI spec generation and interactive API Explorer
  • Extensible component system for auth, authorization, and versioning
  • Repository pattern abstracting data access from business logic
  • Maintained by IBM as an open-source project with long-term enterprise backing

Use Cases

Rapid generation of CRUD REST APIs over relational or NoSQL databases
API gateways unifying access to multiple heterogeneous backend data sources
Enterprise backends needing strong TypeScript typing and DI-based architecture
Prototyping data-driven APIs with automatic OpenAPI documentation
Backend services requiring pluggable authentication and authorization strategies

Alternatives

Frequently Asked Questions