# lincd-server-utils

Latest version **1.0.3** (published 2025-11-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install lincd-server-utils
pnpm add lincd-server-utils
yarn add lincd-server-utils
bun add lincd-server-utils
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2025-11-26 |
| First published | 2023-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 228.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rene_reborn |
| Keywords | lincd, linked data, interoperable, semantic web, web3 |

## Links

- npm: https://www.npmjs.com/package/lincd-server-utils
- npm.io page: https://npm.io/package/lincd-server-utils

## Dependencies (5)

- [lincd](https://npm.io/package/lincd.md) ^1.0
- [formidable](https://npm.io/package/formidable.md) ^3.5.1
- [lincd-jsonld](https://npm.io/package/lincd-jsonld.md) ~1.0
- [@capacitor/core](https://npm.io/package/@capacitor/core.md) ^5.2.2
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^6.14.2

## Recent versions

- 1.0.3 (latest) — 2025-11-26
- 1.0.2 — 2025-05-08
- 1.0.1 — 2025-05-08
- 0.1.11 — 2024-08-10
- 1.0.0 — 2024-05-30
- 0.1.10 — 2023-09-01
- 0.1.9 — 2023-09-01
- 0.1.8 — 2023-08-31
- 0.1.7 — 2023-08-04
- 0.1.6 — 2023-07-06
- 0.1.5 — 2023-07-05
- 0.1.4 — 2023-07-05
- 0.1.3 — 2023-06-30
- 0.1.2 — 2023-05-19
- 0.1.1 — 2023-05-16

## README

# lincd-server-utils

provides a set of utilities for applications with a lincd-server backend.

## Server

```tsx
import { Server } from 'lincd-server-utils/lib/utils/Server';
```

Call the server from the frontend.

## LinkedEmail

Send emails from anywhere in the backend.

Make sure to install an email client first, like `lincd-zeptomail`.
By adding `lincd-zeptomail` to your project (in package.json), it will automatically be used as the default email client.

After this, you can send emails from anywhere in the backend.

```tsx
LinkedEmail.sendEmail({
  ...
});
```

### Setting a default provider

If you want to implement an email client, you can use `LinkedEmail.setDefaultProvider` to set the default email client.
You can do this in the constructor of your backend provider. Here is an example:

```tsx
import { LinkedEmail } from 'lincd-server-utils/lib/utils/LinkedEmail';
// import your email client from this package
import { MyMailClient } from './utils/MyMailClient';
import { BackendProvider } from 'lincd-server-utils/lib/utils/BackendProvider';
export class MyBackendProvider extends BackendProvider {
  constructor(s) {
    super(s);
    LinkedEmail.setDefaultProvider(new MyMailClient());
  }
}
```

---
_Source: https://npm.io/package/lincd-server-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
