open-index/open-npm huggingface dataset:
npm package: @magnet.me/postgresql-replication-lag-influx
Description: Every x time unit, query the cluster and log the replication lag to influx
Author: Rogier Slag
Latest version: 1.0.1

[![Magnet.me Logo](https://cdn.magnet.me/images/logo-2015-full.svg)](https://magnet.me?ref=github-pg-lag "Discover the best companies, jobs and internships at Magnet.me")

[![GitHub release](https://img.shields.io/github/release/magnetme/postgresql-replication-lag-influx.svg)](https://github.com/Magnetme/postgresql-replication-lag-influx/releases)
[![Docker pulls](https://img.shields.io/docker/pulls/magnetme/postgresql-replication-lag-influx.svg)](https://hub.docker.com/r/magnetme/postgresql-replication-lag-influx/)
[![Docker build](https://img.shields.io/docker/automated/magnetme/postgresql-replication-lag-influx.svg)](https://hub.docker.com/r/magnetme/postgresql-replication-lag-influx/)
[![Code Climate](https://img.shields.io/codeclimate/github/magnetme/postgresql-replication-lag-influx.svg)](https://codeclimate.com/github/Magnetme/postgresql-replication-lag-influx)
[![Github stars](https://img.shields.io/github/stars/magnetme/postgresql-replication-lag-influx.svg?style=social&label=Star)](https://github.com/Magnetme/postgresql-replication-lag-influx)

# postgresql-replication-lag-influx

We use the following simple script/Docker container at [Magnet.me](https://magnet.me?ref=github-pg-lag "Discover the best companies, jobs and internships at Magnet.me") monitor the lag or our postgresql slaves continuously.

You can use the container like this:
 
 ```bash
 docker run \
	 -e INFLUX_URL=http://root:root@localhost:8096/infra \
	 -e RATE=250 \
	 -e PGUSER=replication \ 
	 -e PGPASSWORD=yoursecret \ 
	 -e SERVERS=localhost:5433,localhost:5434 \
	 magnetme/postgresql-replication-lag-influx
 ```
npm package: @magnetardev/archive
Description: A port of libarchive to WebAssembly, with a simple JS wrapper.
Author: Magnetar
Latest version: 1.0.5

# Archive

A port of libarchive to WebAssembly, with a simple JS wrapper.

**It is _highly_ recommended that you offload reading and writing to a Worker.** For the browser or deno, that'd be through `Worker` and for node that would be through the `worker_threads` module. There isn't an official worker wrapper yet, but using a library like [Comlink](https://github.com/GoogleChromeLabs/comlink) can get you up and running with one in minutes.

### Install

```shell
# if you use yarn:
yarn add @magnetardev/archive

# if you use npm:
npm install @magnetardev/archive
```

### Why?

Aren't there a few of these ports? Well, yes. In fact, this uses the exact same Dockerfile from [libarchivejs](https://github.com/nika-begiashvili/libarchivejs). However, libarchivejs does not support Node and forces you to use a Worker. I also haven't found one that supports creating archives. Finally, the APIs most of the ports offer are not as simple as they can be, which is a shame. So, I made this.

## Examples

### Reading an archive

```js
import * as archive from '@magnetardev/archive';

const buffer = ...; // Obtain a Uint8Array version of your archive.
const reader = await archive.createReader(buffer);
for (const entry of reader) {
  console.log(entry.path, entry.extract());
}
reader.close();
```

### Creating an archive

```js
import * as archive from "@magnetardev/archive";

// Create a writer.
const writer = await archive.createWriter();

// Add a file
const contents = new TextEncoder().encode("hello, world!");
writer.add("hello.txt", contents);

// Finalize the archive and get a Uint8Array version.
const zip = writer.close();
console.log(zip);
```

## Building

Building is kind of a mess, but is quite easy with Docker. If you choose to do so without Docker, you need to compile OpenSSL, LZMA, and libarchive with `emcc`. This short guide covers the Docker build process:

1. Run `yarn build:wasm`. This can take quite a while the first time, but consecutive builds will be much faster. This builds just the WebAssembly port and the Emscripten wrapper.
2. Run `yarn build`. This builds the JS wrapper.
3. Done.
npm package: @magnetarise/core
Description: Magnetarise is a micro-framework made for FiveM heavily influenced by Nest.
Author: Geoffrey Migliacci
Latest version: 0.0.10

[![Version](https://img.shields.io/npm/v/@magnetarise/core?style=for-the-badge)](https://www.npmjs.com/package/@magnetarise/core)
[![License](https://img.shields.io/badge/License-GNU%20General%20Public%20License%203.0-lightgrey.svg?style=for-the-badge)](LICENSE.md)
[![Downloads](https://img.shields.io/npm/dw/@magnetarise/core?style=for-the-badge)](https://github.com/geofmigliacci/magnetarise/releases)

[![Coverage](https://img.shields.io/sonar/coverage/geofmigliacci_magnetarise?server=https%3A%2F%2Fsonarcloud.io&style=for-the-badge)](https://sonarcloud.io/dashboard?id=geofmigliacci_magnetarise)

[![Twitter Followers](https://img.shields.io/twitter/follow/geofmigliacci.svg?logo=twitter&style=for-the-badge&label=Follow)](https://twitter.com/geofmigliacci)
[![Github Followers](https://img.shields.io/github/followers/geofmigliacci?logo=github&style=for-the-badge)](https://github.com/geofmigliacci)
[![PayPal](https://img.shields.io/badge/Donate-PayPal-ff3f59.svg?style=for-the-badge)](https://www.paypal.com/paypalme/myerffoeg)

# Magnetarise

Magnetarise is a micro-framework heavily inspired on the awesome project <a href="http://www.typescriptlang.org" target="_blank">Nest</a> helping you wrapping FiveM events with the magic of <a href="http://www.typescriptlang.org" target="_blank">TypeScript</a> and its <a href="https://www.typescriptlang.org/docs/handbook/decorators.html" target="_blank">decorators</a>. 

## Description

Magnetarise is a micro-framework for building: clean, reliable and type strong FiveM servers efficiently using the power of <a href="http://www.typescriptlang.org" target="_blank">TypeScript</a> and <a href="https://www.typescriptlang.org/docs/handbook/decorators.html" target="_blank">decorators</a>.

The main goal of Magnetarise is to makes your life easier thanks to the dependency injection, the power of TypeScript with its strong typing, as well as all the awesomeness open source projects that can be found on npm, such as <a href="https://typeorm.io/" target="_blank">TypeORM</a> or <a href="https://cryptojs.gitbook.io/docs/" target="_blank">CryptoJS</a>.

## Samples

If you want to see how Magnetarise works and how to get started quickly take a look at the [samples](https://github.com/geofmigliacci/magnetarise/tree/master/samples).
npm package: @magnetcustomer/n8n-nodes-magnetcustomer
Description: Rest api for CRM Magnet customer
Author: Magnet Customer
Latest version: 1.9.1

<div>


![License](https://img.shields.io/npm/l/n8n-nodes-magnetcustomer)
[![n8n](https://img.shields.io/badge/n8n-community-F94B72)](https://community.n8n.io/)
![dt](https://img.shields.io/npm/dt/n8n-nodes-magnetcustomer)
![dw](https://img.shields.io/npm/dw/n8n-nodes-magnetcustomer)

</div>

<div><img src="./assets/cover.png" alt="Magnet Customer"></div>

# n8n-nodes-magnetcustomer

This is a [N8n](https://community.n8n.io) community node. It allows you to use [Magnet Customer API](https://developers.magnetcustomer.com) api to communicate with CRM Magnet Customer in your workflow.

## Available Resources

This node provides operations for the following Magnet Customer resources:

*   **Customer** (Get, Get Many, Search, Create, Update, Delete)
*   **Deal** (Get, Get Many, Search, Create, Update, Delete)
*   **Lead** (Get, Get Many, Search, Create, Update, Delete)
*   **Organization** (Get, Get Many, Search, Create, Update, Delete)
*   **Prospect** (Get, Get Many, Search, Create, Update, Delete)
*   **Task** (Get, Get Many, Search, Create, Update, Delete)
*   **Staff** (Get, Get Many, Search, Create, Update, Delete) - Including loading Roles and Custom Fields.
*   **Workspace** (Get, Get Many, Search, Create, Update, Delete)
*   **Pipeline** (Get, Get Many, Search, Create, Update, Delete) - Including filtering, sorting, and detailed updates with stages.
*   **Custom Field** (Get, Get Many, Search, Create, Update, Delete)
*   **Custom Field Block** (Get, Get Many, Search, Create, Update, Delete)
*   **Custom Field Type** (Get, Get Many, Search)

# Compatibility

Tested on n8n version 1.62.0

# License
[MIT](./LICENSE.md)

## Notas de Compatibilidade – Custom Fields

- A partir da versão 1.8.3, os carregadores de opções de campos customizados passam a retornar o `ObjectId` puro dos campos (sem o prefixo `customField_`).
- Fluxos existentes que ainda utilizam valores com o prefixo `customField_` continuam funcionando: o node sanitiza o valor automaticamente antes de enviar à API.
- Formato enviado ao backend: cada item em `customFields` é `{ customField: "<ObjectId>", v: <valor> }`.

## Flags de Custom Fields no Node

- `Resolve Custom Fields` (para `get`/`getAll` em `customer/deal/organization/prospect/lead`): quando ativado, os campos customizados retornados como `customField_<id>` são resolvidos para seus nomes e, quando aplicável, para os rótulos das opções.
- `Encode Custom Fields` (para `update` nos mesmos recursos): quando ativado, o node aceita no corpo os nomes dos campos ou valores legíveis, e faz o encode para o formato esperado pela API automaticamente.
npm package: @magnetical/core
Description: Core Magnetical search engine
Author: geogdev
Latest version: 0.2.9

# @magnetical/core

Core search engine for Magnetical - a serverless search engine.

## Features

- Text search with trigram indexing and BM25 scoring
- Vector search with HNSW indexing
- Geographic search with H3 spatial indexing
- Hybrid multi-modal search
- Parquet-based document storage
- Pluggable storage backends

## Installation

```bash
pnpm add @magnetical/core
```

## Usage

```typescript
import { Magnetical } from '@magnetical/core';

// Documentation will be available in Phase 8
```

## Development Status

This package is currently in MVP development. See the main repository README for implementation status.

## License

MIT License - see [LICENSE.md](../../LICENSE.md) for details.
npm package: @magneticjs/cli
Description: Magnetic CLI — build, dev, and deploy server-driven UI apps
Latest version: 0.1.9

# @magneticjs/cli

Build, develop, and deploy [Magnetic](https://github.com/inventhq/magnetic) server-driven UI apps.

## Installation

```bash
npm install -g @magneticjs/cli
```

This also downloads the `magnetic-v8-server` binary for your platform via postinstall.

## Commands

### `magnetic dev`

Start a local development server with hot rebuild on file changes.

```bash
cd my-app
magnetic dev                    # http://localhost:3003
magnetic dev --port 4000        # custom port
magnetic dev --dir ./my-app     # specify app directory
```

What happens:
1. Scans `pages/` for TSX page components
2. Detects `server/state.ts` for business logic
3. Auto-generates the V8 bridge (route map + state wiring)
4. Bundles with esbuild into a single IIFE
5. Starts `magnetic-v8-server` on the specified port
6. Watches for changes, rebuilds + restarts on save

### `magnetic build`

Generate the production bundle without starting a server.

```bash
magnetic build --dir ./my-app
magnetic build --dir ./my-app --minify --verbose
```

Output: `dist/app.js` (~15KB typical)

### `magnetic push`

Build and deploy to a Magnetic platform server.

```bash
magnetic push --dir ./my-app --server https://platform.magnetic.app --name my-app
```

Or configure in `magnetic.json`:
```json
{
  "name": "my-app",
  "server": "https://platform.magnetic.app"
}
```

Then just: `magnetic push`

## How It Works

The CLI is a **build tool**, not a runtime. It:
- Scans your `pages/` directory and maps filenames to routes
- Generates a bridge file that wires pages + state + router
- Bundles everything into a single JS file for the V8 engine
- The Rust V8 server executes this bundle to render JSON DOM descriptors

**You write**: pages, components, state
**CLI generates**: bridge, bundle
**Rust server runs**: V8 + HTTP + SSE

## File Conventions

| File | Route |
|------|-------|
| `pages/IndexPage.tsx` | `/` |
| `pages/AboutPage.tsx` | `/about` |
| `pages/SettingsPage.tsx` | `/settings` |
| `pages/[id].tsx` | `/:id` (dynamic) |
| `pages/NotFoundPage.tsx` | `*` (catch-all) |

## Server Binary

The Rust binary (`magnetic-v8-server`) is automatically downloaded during
`npm install`. If the download fails, you can build from source:

```bash
cd rs/crates/magnetic-v8-server
cargo build --release
```

Supported platforms: macOS (ARM64, x64), Linux (x64, ARM64)

## License

MIT
npm package: @magneticjs/server
Description: Magnetic server-driven UI framework — JSX runtime, router, SSR
Latest version: 0.1.4

# @magneticjs/server

Server-driven UI framework for Magnetic. Provides the JSX runtime that transforms TSX into JSON DOM descriptors, plus routing and SSR utilities.

## Installation

```bash
npm install @magneticjs/server
```

## Usage

### JSX Runtime (pages & components)

```tsx
// tsconfig.json: { "jsx": "react-jsx", "jsxImportSource": "@magneticjs/server" }
import { Head, Link } from '@magneticjs/server/jsx-runtime';

export function IndexPage(props: any) {
  return (
    <div key="app">
      <Head><title>My App</title></Head>
      <h1>{props.title}</h1>
      <Link href="/about">About</Link>
      <button onClick="do_something">Click me</button>
    </div>
  );
}
```

### Router

```ts
import { createRouter } from '@magneticjs/server/router';

const router = createRouter([
  { path: '/', page: IndexPage },
  { path: '/about', page: AboutPage },
  { path: '*', page: NotFoundPage },
]);

const result = router.resolve('/about', viewModel);
// → { kind: 'render', dom: DomNode }
```

## Key Concepts

- **DomNode**: JSON DOM descriptor `{ tag, key?, attrs?, events?, text?, children? }`
- **Events**: `onClick`, `onSubmit`, `onInput` → action names (strings, not callbacks)
- **Head**: Declares `<title>` and `<meta>` tags for SSR
- **Link**: Client-side navigation without page reload
- **Fragment**: Groups children without a wrapper element

## Exports

| Path | Description |
|------|-------------|
| `@magneticjs/server` | Core index |
| `@magneticjs/server/jsx-runtime` | JSX factory, Head, Link, Fragment, DomNode |
| `@magneticjs/server/router` | createRouter, route matching |
| `@magneticjs/server/ssr` | render_page, PageOptions |

## License

MIT