indulgent
v0.0.10
Published
A simple collection of TypeScript utilities for building web applications, dependency free and with reasonable runtime performance.
Readme
Indulgent
A simple collection of TypeScript utilities for building web applications, dependency free and with reasonable runtime performance.
See the github.io page for documentation: https://frodi-karlsson.github.io/indulgent/ and the examples directory for example projects.
ApiService
The main reason to want to use this is rich autocomplete for API calls. See example below:
I aim to use this only for my own personal projects, but if you think it looks useful, go ahead and use it / contribute / complain :)
Signals
A very simple reactive state management system inspired by Angular 17+. Dependencies are tracked automatically, and updates are batched to avoid unnecessary recomputations.
import { signal, computed, storeSignal } from 'indulgent/signal';
const count = signal(0);
const input = storeSignal('my_key', '', { storage: sessionStorage });
const doubleCount = computed(() => count.get() * 2);Installation
npm install indulgent
# or
yarn add indulgent
# or
pnpm add indulgent