open-index/open-npm huggingface dataset:
npm package: @nodl/core
Description: Core implementation of the Nodl framework
Author: Emil Widlund
Latest version: 1.0.9

# @nodl/core

The core implementation of the Nodl framework.

### Getting Started

#### Installation

```
# Using NPM
npm install @nodl/core

# Using Yarn
yarn add @nodl/core

# Using Bun
bun install @nodl/core
```

#### Additional dependencies

Make sure to also install the following packages:

```
# Using NPM
npm install rxjs zod

# Using Yarn
yarn add rxjs zod

# Using Bun
bun install rxjs zod
```

### API

#### Node

Nodes are units that consists of inputs and outputs. They're conceptually very similar to functions, with the difference that outputs may be multiple, compared to a function's single return value.

An Addition Node may for instance have two inputs and a single output, which computes the sum of the inputs.

```typescript
import { z } from 'zod';
import { Node, Input, Output, schema } from '@nodl/core';
import { combineLatest, map } from 'rxjs';

/** Declare a zod schema for value validation */
const NumberSchema = schema(z.number());

class Addition extends Node {
    name = 'Addition';

    inputs = {
        a: new Input({ name: 'A', type: NumberSchema, defaultValue: 0 }),
        b: new Input({ name: 'B', type: NumberSchema, defaultValue: 0 })
    };

    outputs = {
        output: new Output({
            name: 'Output',
            type: NumberSchema,
            observable: combineLatest([this.inputs.a, this.inputs.b]).pipe(
                map(inputs => inputs.reduce((sum, value) => sum + value), 0)
            )
        })
    };
}
```

### Example

```typescript
import { z } from 'zod';
import { Node, Input, Output, schema } from '@nodl/core';
import { combineLatest, map } from 'rxjs';

/** Declare a zod schema for value validation */
const NumberSchema = schema(z.number());

class Addition extends Node {
    name = 'Addition';

    inputs = {
        a: new Input({ name: 'A', type: NumberSchema, defaultValue: 0 }),
        b: new Input({ name: 'B', type: NumberSchema, defaultValue: 0 })
    };

    outputs = {
        output: new Output({
            name: 'Output',
            type: NumberSchema,
            observable: combineLatest([this.inputs.a, this.inputs.b]).pipe(
                map(inputs => inputs.reduce((sum, value) => sum + value), 0)
            )
        })
    };
}

/** Declare 3 addition nodes */
const additionNode1 = new Addition();
const additionNode2 = new Addition();
const additionNode3 = new Addition();

/** Connect them together */
additionNode1.outputs.output.connect(additionNode3.inputs.a);
additionNode2.outputs.output.connect(additionNode3.inputs.b);

/**
 * The output of AdditionNode3 will fire with a new sum
 * everytime the inputs of AdditionNode1 and AdditionNode2 changes
 */
additionNode3.outputs.output.subscribe(console.log);
```
npm package: @nodl/math
Description: Utility nodes based on the Math-global. Inputs are mapped to native method's arguments.
Latest version: 1.0.0

# @nodl/nodes

Utility nodes based on the Math-global. Inputs are mapped to native method's arguments.

## Example

```typescript
import { Addition } from '@nodl/nodes/math';

const additionNode = new Addition();
```

## Nodes

-   Absolute
-   Addition
-   Ceil
-   Cosine
-   Division
-   Floor
-   Logarithm
-   Logarithm2
-   Max
-   Min
-   Modulo
-   Multiplication
-   Power
-   Round
-   Sign
-   Sine
-   SquareRoot
-   Subtraction

## Schemas

-   NumberSchema
npm package: @nodly/create-app
Description: A simple wrapper for create-next-app.
Author: Nodly
Latest version: 1.0.2

[![Release](https://github.com/nodly/create-app/actions/workflows/release.yml/badge.svg)](https://github.com/nodly/create-app/actions/workflows/release.yml)

# Nodly / Create App

A simple wrapper for create-next-app.
npm package: @nodly/prettier-config
Description: A shareable configuration for prettier.
Author: Nodly AB
Latest version: 5.2.6

[![Release](https://github.com/nodly/prettier-config/actions/workflows/release.yml/badge.svg)](https://github.com/nodly/prettier-config/actions/workflows/release.yml)

# Nodly / Prettier Config

A [shareable configuration](https://prettier.io/docs/en/configuration.html#sharing-configurations) for prettier.

## Installation

Core installation

```
yarn add prettier @nodly/prettier-config --dev
```

Tailwind installation

```
yarn add prettier prettier-plugin-tailwindcss @nodly/prettier-config --dev
```

## Usage

There are multiple ways of loading the prettier preset in your project. It all depends on what kind of project it is.

Add it to your **package.json** file.

```json
"prettier": "@nodly/prettier-config"
```

Add it to any of the following files and export a string.

- **.prettierrc**
- **.prettierrc.yaml**
- **.prettierrc.yml**
- **.prettierrc.json**

```json
"@nodly/prettier-config"
```

Add it to any of the following files and export an object.

- **prettier.config.js**
- **.prettierrc.js**

```js
module.exports = {
  ...require('@nodly/prettier-config'),
};
```

To run prettier on your project files you need to add `prettier` to the script section in your `package.json` file.

```json
{
  "scripts": {
    "format": "prettier --write ."
  }
}
```

To check that all files are prettified you will need to add another script with the `--check` flag.

```json
{
  "scripts": {
    "format": "prettier --write .",
    "format:check": "prettier --check ."
  }
}
```

This is useful in a CI environment where you want to check that all the commited code is prettified.

For example in a github action:

```yml
jobs:
  build:
    steps:
      - run: yarn prettier --check .
```

## Release

The versioning for the package is handled by **semantic-release** which will automatically determine the next version number, generate the release notes and publish the package.
npm package: @nodomx/core
Description: Core runtime primitives for the NodomX MVVM framework.
Latest version: 0.2.6

# @nodomx/core

`@nodomx/core` 是 `nodomx` 主包内部拆分出来的核心运行时包。

它提供响应式、模块、渲染、指令和路由等底层能力，通常由 `nodomx` 主包聚合导出。
npm package: @nodomx/nd-compiler
Description: Compiler utilities for NodomX .nd single-file components.
Latest version: 0.2.6

# `@nodomx/nd-compiler`

Compiler utilities for NodomX `.nd` single-file components.

Supported blocks:

- `<template>`
- `<script>`
- `<style>`
- `<style scoped>`

CLI examples:

```bash
ndc ./src/App.nd --out ./src/App.nd.gen.mjs
ndc ./src --watch
nd-tsc ./src
nd-tsc ./src --declaration
```

API:

- `compileFile(file)`
- `compilePath(fileOrDirectory)`
- `collectNdFiles(directory)`
- `watchNd(fileOrDirectory)`
- `runNdTypeCheck(fileOrDirectory)`
- `watchNdTypes(fileOrDirectory)`

When you watch a directory, changed `.nd` files are recompiled automatically and deleted source files remove their sibling generated modules.

`nd-tsc` is the type-focused companion CLI. It validates typed `.nd` files, template bindings, and cross-component contracts without emitting JavaScript output. When used with `--declaration`, it can also write `.d.nd.ts` files during the same pass.
npm package: @nodomx/rollup-plugin-dev-server
Description: Rollup development server with hot entry remounts for NodomX apps.
Latest version: 0.2.6

# `@nodomx/rollup-plugin-dev-server`

Rollup development server for NodomX apps.

Features:

- serves `public/` and `dist/`
- injects a tiny live reload client into HTML
- hot-imports the rebuilt entry module and remounts the app root

Example:

```js
import { nodomDevServer } from "@nodomx/rollup-plugin-dev-server";

export default {
  plugins: [
    nodomDevServer({
      rootDir: "./public",
      distDir: "./dist",
      port: 3000
    })
  ]
};
```

For app bootstrapping, pair it with the runtime helper:

```js
import { Nodom } from "nodomx";
import { bootstrapNodomApp } from "@nodomx/rollup-plugin-dev-server/runtime";

await bootstrapNodomApp({
  entryUrl: import.meta.url,
  load: () => import("./App.nd"),
  nodom: Nodom,
  selector: "#app"
});
```
npm package: @nodomx/rollup-plugin-nd
Description: Rollup plugin for importing NodomX .nd single-file components.
Latest version: 0.2.6

# `@nodomx/rollup-plugin-nd`

Rollup plugin for importing NodomX `.nd` single-file components directly.

Example:

```js
import { nodomNd } from "@nodomx/rollup-plugin-nd";

export default {
  input: "./src/main.mjs",
  plugins: [nodomNd()]
};
```

Then you can write:

```js
import App from "./App.nd";
```

By default the generated component imports `Module` from `nodomx`. You can override that with:

```js
nodomNd({
  importSource: "nodomx"
})
```
npm package: @nodomx/test-utils
Description: Official testing helpers for mounting and interacting with NodomX components.
Latest version: 0.2.6

# `@nodomx/test-utils`

Official mount helpers for NodomX component tests.

## Usage

```js
import { mount } from "@nodomx/test-utils";
import CounterView from "./CounterView.nd";

const wrapper = await mount(CounterView);

await wrapper.trigger("#inc", "click");
console.log(wrapper.text("#count"));

wrapper.destroy();
```

## Helpers

- `mount(component, options)`
- `createTestDom(options)`
- `flush()`

`mount()` accepts a `global` option similar to Vue Test Utils:

```js
await mount(App, {
  global: {
    provide: {
      sharedLabel: "hello"
    },
    config: {
      globalProperties: {
        $format(value) {
          return `count:${value}`;
        }
      }
    }
  }
});
```
npm package: @nodopiano/buzz
Description: buzz package for laravel
Author: marco.bonomo@gmail.com
Latest version: 0.1.6

# Buzz 

[![Latest Version on NPM](https://img.shields.io/npm/v/buzz.svg?style=flat-square)](https://npmjs.com/package/package_name)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

Add a short description here, with some examples on how the package can be used.

## Demo

Add a link to a site where the component is being demonstrated live.

## Installation

You can install the package via yarn:

```bash
yarn add @nodopiano/buzz
```

or npm:

```bash
npm install @nodopiano/buzz --save
```

## Usage

Add instruction on how the package can be used

### Testing

```bash
yarn test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please contact :nodopiano instead of using the issue tracker.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Credits

- [:nodopiano](https://github.com/:nodopiano)
- [All Contributors](../../contributors)
npm package: @nodopiano/buzz-fields
Description: Nodopiano Buzz Fields
Author: info@nodopiano.it
Latest version: 1.3.9

# Nodopiano Buzz Fields

**Buzz Fields** è la nostra libreria Javascript per inserire blocchi Vue tramite API.

Fai riferimento alla [documentazione]() per ulteriori informazioni.

## Piccola nota per scrivere la guida
Tutta la guida è contenuta nella cartella `docs/` TUTTAVIA, a causa di alcune incompatibilità di Webpack, per scriverla e testare le dipendenze in locale è necessario:

1. Spostarsi nella cartella `docs/`
2. Installare le dipendenze:
  ```sh
  yarn # installa le dipendenze
  ```
3. Far partire il web server:
  ```sh
  yarn vuepress dev
  ```
npm package: @nodopiano/buzz-groups
Description: buzz groups package for laravel
Author: marco.bonomo@gmail.com
Latest version: 0.3.4

# Buzz groups

[![Latest Version on NPM](https://img.shields.io/npm/v/buzz.svg?style=flat-square)](https://npmjs.com/package/package_name)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

Add a short description here, with some examples on how the package can be used.

## Demo

Add a link to a site where the component is being demonstrated live.

## Installation

You can install the package via yarn:

```bash
yarn add @nodopiano/buzz-groups
```

or npm:

```bash
npm install @nodopiano/buzz-groups --save
```

## Usage

Add instruction on how the package can be used

### Testing

```bash
yarn test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please contact :nodopiano instead of using the issue tracker.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Credits

- [:nodopiano](https://github.com/:nodopiano)
- [All Contributors](../../contributors)
npm package: @nodopiano/buzz-users
Description: buzz users package for laravel
Author: marco.bonomo@gmail.com
Latest version: 0.2.3

# Buzz users

[![Latest Version on NPM](https://img.shields.io/npm/v/buzz.svg?style=flat-square)](https://npmjs.com/package/package_name)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

Add a short description here, with some examples on how the package can be used.

## Demo

Add a link to a site where the component is being demonstrated live.

## Installation

You can install the package via yarn:

```bash
yarn add @nodopiano/buzz-users
```

or npm:

```bash
npm install @nodopiano/buzz-users --save
```

## Usage

Add instruction on how the package can be used

### Testing

```bash
yarn test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please contact :nodopiano instead of using the issue tracker.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Credits

- [:nodopiano](https://github.com/:nodopiano)
- [All Contributors](../../contributors)
npm package: @nodopiano/buzz-vox
Description: vox backend package for vox
Author: marco.bonomo@gmail.com
Latest version: 0.3.4

# Buzz Vox 

[![Latest Version on NPM](https://img.shields.io/npm/v/buzz.svg?style=flat-square)](https://npmjs.com/package/package_name)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)

Add a short description here, with some examples on how the package can be used.

## Demo

Add a link to a site where the component is being demonstrated live.

## Installation

You can install the package via yarn:

```bash
yarn add @nodopiano/buzz-vox
```

or npm:

```bash
npm install @nodopiano/buzz-vox --save
```

## Usage

Add instruction on how the package can be used

### Testing

```bash
yarn test
```

### Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

If you discover any security related issues, please contact :nodopiano instead of using the issue tracker.

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Credits

- [:nodopiano](https://github.com/:nodopiano)
- [All Contributors](../../contributors)
npm package: @nodopiano/create-alphapage
Description: Crea una nuova Alpha page in pochi secondi
Latest version: 1.1.0

# Crea Alpha page

Creatore di Alpha page per Nodopiano.

Basato su [**create-nuxt-app**](https://github.com/nuxt/create-nuxt-app)

## Come creare un'Alphapage

1. Creare nel backend delle Alphapage una nuova pagina
2. Aggiungere ALMENO il blocco hero al builder *Landing page*
3. Pubblicare la pagina
4. Copiare l'ID della pagina (compare nella barra dell'indirizzo). Serverà più tardi.
5. Da linea di comando, nella cartella `~/code` digitare il comando:
  ```sh
  npx @nodopiano/create-alphapage [nome-alphapage]
  ```
  alla domanda:
  ```
  > ID di pagina della nuova Alphapage? (0123):
  ```
  rispondere con l'ID copiato allo step 4.
6. Spostarsi nella cartella appena creata e utilizzare `yarn dev` per testare che l'ambiente funzioni
7. Se tutto funziona, committare, creare il repository su Gitlab e effettuare il primo push
8. Collegare su Netlify il repository creato. Non dovrebbe essere necessario configurare nulla, ci pensa `netlify.toml`

Happy Alphapage-ing!