# @cocalc/backend

> CoCalc backend functionality: functionality used by either the hub, the next.js server or the project.

Latest version **1.22.2** (published 2023-09-03) · SEE LICENSE.md license · 0 weekly downloads

## Install

```sh
npm install @cocalc/backend
pnpm add @cocalc/backend
yarn add @cocalc/backend
bun add @cocalc/backend
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.22.2 |
| Published | 2023-09-03 |
| First published | 2021-10-11 |
| Weekly downloads | 0 |
| License | SEE LICENSE.md |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 134.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1288 |
| Author | SageMath, Inc. |
| Maintainers | wstein, hasch |
| Keywords | utilities, cocalc |

## Links

- npm: https://www.npmjs.com/package/@cocalc/backend
- Repository: https://github.com/sagemathinc/cocalc
- Homepage: https://github.com/sagemathinc/cocalc/tree/master/src/packages/backend
- Issues: https://github.com/sagemathinc/cocalc/issues
- npm.io page: https://npm.io/package/@cocalc/backend

## Dependencies (11)

- [debug](https://npm.io/package/debug.md) ^4.3.2
- [awaiting](https://npm.io/package/awaiting.md) ^3.0.0
- [lru-cache](https://npm.io/package/lru-cache.md) ^7.14.1
- [underscore](https://npm.io/package/underscore.md) ^1.12.1
- [@cocalc/util](https://npm.io/package/@cocalc/util.md) 1.77.2
- [@types/debug](https://npm.io/package/@types/debug.md) ^4.1.7
- [shell-escape](https://npm.io/package/shell-escape.md) ^0.2.0
- [password-hash](https://npm.io/package/password-hash.md) ^1.2.2
- [supports-color](https://npm.io/package/supports-color.md) ^9.0.2
- [@cocalc/backend](https://npm.io/package/@cocalc/backend.md) 1.22.2
- [async-await-utils](https://npm.io/package/async-await-utils.md) ^3.0.1

## Recent versions

- 1.22.2 (latest) — 2023-09-03
- 1.19.2 (next-sso) — 2022-08-23
- 1.17.0 (boost-dedi-5796) — 2022-05-11
- 1.12.0 (pr-5723) — 2022-03-06
- 2.0.0 (pr5560) — 2021-11-11
- 1.22.1 — 2023-09-03
- 1.22.0 — 2023-09-03
- 1.21.1 — 2022-11-09
- 1.21.0 — 2022-11-01
- 1.20.0 — 2022-10-12
- 1.19.1 — 2022-08-23
- 1.19.0 — 2022-08-10
- 1.18.2 — 2022-08-01
- 1.18.1 — 2022-06-26
- 1.18.0 — 2022-06-24
- … 29 more at https://npm.io/package/@cocalc/backend/versions

## README

# @cocalc/backend

CoCalc code shared **across** all types of backend node.js code:

- project
- hub
- server
- next

Put code here that tends to get used by a range of node.js server packages.  Thus this is similar to @cocalc/util, but for code that is node.js only (e.g., our password hash algorithm and code for spawning subprocesses).  Also, we put code here to establish common definitions across the project, hub, next, etc., for example the basePath and the debug-based logging.

This package does **NOT** depend on @cocalc/database.  General code that involves queries to our postgreSQL database of course wouldn't be used by @cocalc/project and don't belong here.  Put them in @cocalc/server.

## Notes

- We install the uuid module here to force requests to get installed.  (Why?)

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