# algolia-firestore-sync-ts

> A helper for syncing Algolia indices to Firestore using Firebase Functions in Typescript

Latest version **1.0.6** (published 2018-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install algolia-firestore-sync-ts
pnpm add algolia-firestore-sync-ts
yarn add algolia-firestore-sync-ts
bun add algolia-firestore-sync-ts
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2018-11-09 |
| First published | 2018-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nathan Kern |
| Maintainers | nayfin |
| Keywords | algolia, firestore, firebase, index, sync, typescript |

## Links

- npm: https://www.npmjs.com/package/algolia-firestore-sync-ts
- Repository: https://github.com/nayfin/algolia-firestore-sync-ts
- Homepage: https://github.com/nayfin/algolia-firestore-sync-ts#readme
- Issues: https://github.com/nayfin/algolia-firestore-sync-ts/issues
- npm.io page: https://npm.io/package/algolia-firestore-sync-ts

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2018-11-09
- 1.0.5 — 2018-11-07
- 1.0.4 — 2018-11-07
- 1.0.3 — 2018-11-07
- 1.0.2 — 2018-11-06
- 1.0.1 — 2018-11-06
- 1.0.0 — 2018-11-06

## README

# algolia-firestore-sync
Simple helper for syncing indices to Firestore on Firebase


## Usage

```
import * as functions from 'firebase-functions';
import * as algoliasearch from 'algoliasearch';
import { syncAlgoliaWithFirestore } from 'algolia-firestore-sync-ts';

const algolia = algoliasearch(functions.config().algolia.appid, functions.config().algolia.adminkey);
const index = algolia.initIndex('ingredients');

export const syncIngredients = functions.firestore.document('/<CollectionName>/{id}').onWrite(
  (change, context) => {
    return syncAlgoliaWithFirestore(index, change, context)
  }
);
```

## TODOs:

- interfaces and strong typing
-

---
_Source: https://npm.io/package/algolia-firestore-sync-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
