npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vsaas/loopback-sdk-angular

v11.0.3

Published

Fork of LoopBack AngularJS SDK for generating AngularJS $resource clients from @vsaas LoopBack apps

Readme

LoopBack AngularJS SDK

@vsaas/loopback-sdk-angular is a maintained fork of loopback-sdk-angular for the Xompass LoopBack 3 stack.

This fork keeps the familiar service generator API while aligning the package with the rest of the modernized @vsaas/* monorepo:

  • TypeScript source in src/
  • build output in dist/
  • vitest, oxlint, oxfmt, and tsdown
  • scoped workspace dependencies on the local @vsaas/* LoopBack forks
  • smaller dependency surface with no bundled AngularJS runtime in the package

This package is intended for maintaining AngularJS 1.x clients that consume LoopBack 3 style APIs generated from the Xompass forks. It is not targeted at LoopBack 4 or modern Angular.

Installation

npm install @vsaas/loopback-sdk-angular

In practice this package is typically used alongside:

  • @vsaas/loopback
  • @vsaas/loopback-datasource-juggler
  • AngularJS 1.x with ngResource in the client application

Usage

Generate AngularJS services for a LoopBack application:

const fs = require('node:fs');

const loopback = require('@vsaas/loopback');
const { services } = require('@vsaas/loopback-sdk-angular');

const app = loopback();

app.dataSource('db', { connector: 'memory' });
app.use('/api', loopback.rest());

const sdk = services(app, {
  ngModuleName: 'lbServices',
  apiUrl: '/api',
  minify: true,
});

fs.writeFileSync('client/lb-services.js', sdk, 'utf8');

The generated file defines an AngularJS module containing $resource services for the shared LoopBack models and methods exposed by the application.

The legacy call signature is still supported for compatibility:

const sdk = services(app, 'lbServices', '/api');

Scope

This package currently supports:

  • services(app, options) for generating AngularJS $resource clients
  • the legacy services(app, ngModuleName, apiUrl) signature
  • shared model methods and relation/scope helper generation
  • optional schema emission via includeSchema
  • generated common helpers such as LoopBackAuth and LoopBackResource

The generated client code targets AngularJS 1.x and expects angular plus ngResource to be available in the consuming application. This package only generates the client source; it does not ship AngularJS itself.

Options

Supported generator options:

  • ngModuleName Default: "lbServices"
  • apiUrl Default: "/"
  • includeCommonModules Default: true
  • includeSchema Default: false
  • minify Default: false
  • namespaceModels Default: false
  • namespaceCommonModels Default: false
  • namespaceDelimiter Default: "."
  • modelsToIgnore Default: []
  • comments Default: false

Notes for Fork Users

  • This is a fork, not the upstream loopback-sdk-angular package.
  • The package name is @vsaas/loopback-sdk-angular.
  • Published runtime code is exposed from dist/.
  • The package source has been migrated to TypeScript, but generated test files remain plain .js.
  • AngularJS is deprecated upstream; this fork is focused on pragmatic compatibility for existing legacy applications.

Development

npm run build
npm run typecheck
npm run lint
npm test

License

MIT. See LICENSE.