
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@limitless-angular/sanity
Advanced tools
A powerful Angular library for Sanity.io integration, featuring Portable Text rendering and optimized image loading.
This library provides Angular integrations for Sanity.io, enhancing your ability to work with Sanity content in Angular applications.
Check out our example project in the monorepo: apps/sanity-example
You can also see a live demo of the Sanity example here: Limitless Angular Sanity Example
npm install --save @limitless-angular/sanity
Which Version to use?
| Angular version | @limitless-angular/sanity |
|---|---|
| >=18.0.0 | 18.x |
A complete implementation for rendering Portable Text in Angular applications.
import { Component } from '@angular/core';
import { PortableTextComponent, PortableTextComponents } from '@limitless-angular/sanity/portabletext';
@Component({
selector: 'app-your-component',
template: `<div portable-text [value]="portableTextValue" [components]="customComponents"></div> `,
standalone: true,
imports: [PortableTextComponent],
})
export class YourComponent {
portableTextValue = [
/* array of portable text blocks */
];
customComponents: PortableTextComponents = {
// optional object of custom components to use
};
}
For more detailed information on using Portable Text, including styling, customizing components, and available components, please refer to the Portable Text README.
The image loader allows you to connect the NgOptimizedImage directive with Sanity to load images using the @sanity/image-url package.
import { NgOptimizedImage } from '@angular/common';
import { SanityImageLoader } from '@limitless-angular/sanity/image-loader';
@Component({
standalone: true,
template: '<img ngSrc="image-id" width="100" height="100" />',
imports: [NgOptimizedImage],
providers: [
provideSanityLoader({
projectId: 'SANITY_PROJECT_ID',
dataset: 'SANITY_DATASET',
})
],
// ...
})
For more details on the Image Loader, check out the Image Loader README.
Check out our example project in the monorepo: apps/sanity-example
FAQs
A powerful Angular library for Sanity.io integration, featuring Portable Text rendering and optimized image loading.
The npm package @limitless-angular/sanity receives a total of 1,075 weekly downloads. As such, @limitless-angular/sanity popularity was classified as popular.
We found that @limitless-angular/sanity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.