open-index/open-npm huggingface dataset:
npm package: @magonxesp/create-node-es6-app
Description: Create node project with ES6 support using gulp
Author: magonxesp
Latest version: 1.1.1

# create-node-es6-app
Node.js using ES6 project skeleton generator

## Usage
```shell script
$ npx @magonxesp/create-node-es6-app my-app-name
```
* If you see this output:
    ```shell script
    Step (2/2): Install dependencies
    Error: spawn npm ENOENT
    ```
  Run ```npm install``` on the root of your new project directory.
  
## Npm scripts
* Build project
    ```shell script
    $ npm run build
    ```
* Run
    ```shell script
    $ npm run start
    ```
npm package: @magonxesp/gulpfilejs
Description: Compile javascript ES6 and SASS using Gulp
Author: magonxesp
Latest version: 1.0.0

# Gulpfilejs
Compile javascript ES6 and SASS using Gulp

## Usage
* Install
    ```sh
    $ npm install --save-dev @magonxesp/gulpfilejs
    ```
* Create the ```gulpfile.js``` file
    ```sh
    $ touch gulpfile.js
    ```
* gulpfile.js   
    ```javascript
    require('@magonxesp/gulpfilejs')({
        js: {
            webpack_config_path: './webpack.config.js',
        },
        scss: {
            src: './scss/style.scss',
            dist: './dist/css',
        }
    });
    ```
npm package: @magonxesp/osaka
Description: Escrapeador de links de descarga de animes
Latest version: 1.0.7

# Osaka

Escrapeador de links de descarga de animes

![](docs/sataandagi.jpeg)

Requisitos:

- NodeJS 22 o posterior
- jq

## Ejecutar

```sh
npx @magonxesp/osaka https://www4.animeflv.net/anime/sousou-no-frieren
```

### Clonando el repositorio

Instalar dependencias

```sh
npm install
```

Ejecutar script con un link de animeflv por ejemplo:

```sh
npm run start -- https://www4.animeflv.net/anime/sousou-no-frieren
```

## Extraer links de un server y formato

```sh
cat links.json | jq '.MEGA.SUB'
```

## Publicar en NPM

Primero hacer login en NPM si no se ha hecho:

```sh
npm login
```

Luego hacer la build y publicar:

```sh
npm run build && npm publish --access public
```
npm package: @magoo/spectacle-code-slide
Description: Present code with style.
Author: James Kyle
Latest version: 0.5.3

# [spectacle](http://stack.formidable.com/spectacle)-code-slide

Present code with style using [spectacle](https://github.com/FormidableLabs/spectacle).

<img src="demo.gif" width="400"/>

> _Dude, you just changed the code presentation game_ – [@kenwheeler](https://github.com/kenwheeler)

## Install

```
$ npm install --save spectacle
$ npm install --save spectacle-code-slide
```

## Usage

```js
import React from 'react';
import { Spectacle, Deck } from 'spectacle';
import CodeSlide from 'spectacle-code-slide';
import shiaLabeoufMagicGif from "./shiaLabeoufMagic.gif"
import preloader from "spectacle/lib/utils/preloader";

preloader({
  shiaLabeoufMagicGif
});

export default class Presentation extends React.Component {
  render() {
    return (
      <Spectacle theme={theme}>
        <Deck transition={[]} transitionDuration={0} progress="bar">
          // ...
          <CodeSlide
            transition={[]}
            lang="js"
            code={require("raw-loader!../assets/code.example")}
            ranges={[
              { loc: [0, 270], title: "Walking through some code" },
              { loc: [0, 1], title: "The Beginning" },
              { loc: [1, 2] },
              { loc: [1, 2], note: "Heres a note!" },
              { loc: [2, 3] },
              { loc: [4, 7], image: shiaLabeoufMagicGif },
              { loc: [8, 10] },
              // ...
            ]}/>
          // ...
        </Deck>
      </Spectacle>
    );
  }
}
```

## Syntax Highlighting

Provided by [PrismJS](https://github.com/PrismJS/prism). See http://prismjs.com/ for docs.
npm package: @magosys/ts-object-path
Description: Adds the '_path' and '_name' property to every ObjPathProxy objects.
Author: Taras Tymchii
Latest version: 0.1.2

# Fork of [tran-simon/ts-object-path](https://github.com/tran-simon/ts-object-path) 

Adds the '_path' and '_name' property to every ObjPathProxy objects.

Adds support to IE6+ using es6-proxy-polyfill package


```typescript
interface IExample {
  one: number;
  two: string;
  nested: IExample;
  collection: IExample[];
}

const p = createProxy<IExample>();

console.log(p.one._path); //  'one'
console.log(p.nested.collection[2].one._path); //'nested/collection/2/one'
console.log(p.one._name); //  'one'
console.log(p.nested.collection[2].one._name); //'one'

```



# ts-object-path
Generate strongly-typed deep property path in typescript. Access deep property by a path.

[![npm version](https://badge.fury.io/js/ts-object-path.svg)](https://badge.fury.io/js/ts-object-path)

## Install
```
npm install ts-object-path --save
```

## Usage

### Get property path
```typescript
import { createProxy, getPath } from 'ts-object-path'

interface IExample {
  one: number;
  two: string;
  nested: IExample;
  collection: IExample[];
}

const p = createProxy<IExample>();

getPath(p.one); // returns ['one']
getPath(p.nested.one); // returns ['nested', 'one']
getPath(p.collection[5].nested.two); // returns ['collection', 5, 'nested', 'two']
getPath(p.three); // compilation error (no such property)

```

### Get deep property value
```typescript
import { get } from 'ts-object-path'

interface IExample {
  one?: number;
  two?: string;
  nested?: IExample;
  collection?: IExample[];
}

const o: IExample = {
  one: 777;
  collection: [
    null,
    { two: 'Hello' }
  ]
};

get(o, p=> p.one); // returns 777
get(o, p=> p.nested.one); // returns undefined
get(o, p=> p.collection[1].two); // returns 'Hello'
get(o, p=> p.collection[0].two, 'default'); // returns 'default'
get(o, p=> p.collection[0].one, 'default'); // compilation error (property and default value types don't match)
get(o, p=> p.three); // compilation error (no such property)
const val: number = get(o, p=> p.collection[1].two); // compilation error (string is not assignable to number)

```

### Set deep property value
```typescript
import { set } from 'ts-object-path'

interface IExample {
  one?: number;
  two?: string;
  nested?: IExample;
  collection?: IExample[];
}

const o: IExample = {
  one: 1;
};

set(o, p=> p.one, 777); // o === { one: 777 }
set(o, p=> p.nested.one, 3); // o === { one: 777, nested: { one: 3 } }
set(o, p=> p.collection[1].two, 'hello'); // o === { one: 777, nested: { one: 3 }, collection: [undefined, { two: 'hello'}] }

```
npm package: @magpieim/ai-toolkit
Description: The Magpie AI Toolkit makes it easy to connect your AI projects with Magpie payment services. It works with popular AI tools like LangChain and Vercel's AI SDK.
Author: Magpie.IM
Latest version: 0.1.9

# Magpie AI Toolkit - TypeScript

The Magpie AI Toolkit makes it easy to connect your AI projects with Magpie payment services. It works with popular AI tools like LangChain and Vercel's AI SDK.

## Installation

You don't need this source code unless you want to modify the package. If you just
want to use the package run:

```
npm install @magpieim/ai-toolkit
```

### Requirements

- Node 18+

## Usage

The library needs to be configured with your account's secret key which is available in your [Magpie Dashboard][developers]. Additionally, `configuration` enables you to specify the types of actions that can be taken using the toolkit.

```typescript
import {MagpieAgentToolkit} from '@magpieim/ai-toolkit/langchain';

const magpieAgentToolkit = new MagpieAgentToolkit({
  secretKey: process.env.MAGPIE_SECRET_KEY!,
  configuration: {
    actions: {
      customers: {
        create: true,
      },
    },
  },
});
```

### Tools

The toolkit works with LangChain and Vercel's AI SDK and can be passed as a list of tools. For example:

```typescript
import {AgentExecutor, createStructuredChatAgent} from 'langchain/agents';

const tools = magpieAgentToolkit.getTools();

const agent = await createStructuredChatAgent({
  llm,
  tools,
  prompt,
});

const agentExecutor = new AgentExecutor({
  agent,
  tools,
});
```

## Model Context Protocol

The Magpie Agent Toolkit also supports the [Model Context Protocol (MCP)](https://modelcontextprotocol.com/). See `/examples/modelcontextprotocol` for an example. The same configuration options are available, and the server can be run with all supported transports.

```typescript
import {MagpieAgentToolkit} from '@magpieim/ai-toolkit/modelcontextprotocol';
import {StdioServerTransport} from '@modelcontextprotocol/sdk/server/stdio.js';

const server = new MagpieAgentToolkit({
  secretKey: process.env.MAGPIE_SECRET_KEY!,
  configuration: {
    actions: {
      customers: {
        create: true,
      },
      charges: {
        create: true,
      },
      checkout_sessions: {
        create: true,
      },
    },
  },
});

async function main() {
  const transport = new StdioServerTransport();
  await server.connect(transport);
  console.error('Magpie MCP Server running on stdio');
}

main().catch((error) => {
  console.error('Fatal error in main():', error);
  process.exit(1);
});
```
npm package: @magpieim/mcp
Description: A command line tool for setting up Magpie MCP server
Author: Magpie.IM
Latest version: 0.1.4

# Magpie Model Context Protocol

The Magpie [Model Context Protocol](https://modelcontextprotocol.com/) server allows you to integrate with Magpie APIs through function calling. This protocol supports various tools to interact with different Magpie services.

## Setup

To run the Magpie MCP server using npx, use the following command:

```bash
# To set up all available tools
npx -y @magpieim/mcp --tools=all --api-key=YOUR_MAGPIE_SECRET_KEY

# To set up specific tools
npx -y @magpieim/mcp --tools=customers.create,customers.read,charges.create --api-key=YOUR_MAGPIE_SECRET_KEY
```

Make sure to replace `YOUR_MAGPIE_SECRET_KEY` with your actual Magpie secret key. Alternatively, you could set the MAGPIE_SECRET_KEY in your environment variables.

### Usage with Claude Desktop

Add the following to your `claude_desktop_config.json`. See [here](https://modelcontextprotocol.io/quickstart/user) for more details.

```
{
    “mcpServers”: {
        “magpie”: {
            “command”: “npx”,
            “args”: [
                “-y”,
                “@magpieim/mcp”,
                “--tools=all”,
                “--api-key=MAGPIE_SECRET_KEY”
            ]
        }
    }
}
```

## Available tools

| Tool                      | Description                           |
| ------------------------- | ------------------------------------- |
| `customers.create`        | Create a new customer                 |
| `customers.read`          | Retrieve customer information         |
| `charges.create`          | Create a new charge                   |
| `charges.update`          | Void, capture a charge                |
| `refunds.create`          | Refund a charge                       |
| `checkoutSessions.create` | Create a new checkout session         |
| `checkoutSessions.read`   | Retrieve checkout session information |
| `paymentRequests.create`  | Create a new invoice                  |
| `paymentRequests.read`    | Retrieve invoice information          |
| `paymentLinks.create`     | Create a new payment link             |
| `paymentLinks.read`       | Retrieve payment link information     |
| `paymentLinks.update`     | Activate, deactivate a payment link   |

## Debugging the Server

To debug your server, you can use the [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector).

First build the server

```
npm run build
```

Run the following command in your terminal:

```bash
# Start MCP Inspector and server with all tools
npx @modelcontextprotocol/inspector node dist/index.js --tools=all --api-key=YOUR_MAGPIE_SECRET_KEY
```

### Instructions

1. Replace `YOUR_MAGPIE_SECRET_KEY` with your actual Magpie API secret key.
2. Run the command to start the MCP Inspector.
3. Open the MCP Inspector UI in your browser and click Connect to start the MCP server.
4. You can see the list of tools you selected and test each tool individually.
npm package: @magrinilopes/svelte-downloadfile
Description: Svelte component
Author: Daniel Magrini
Latest version: 0.1.2

# svelte-downloadfile

Svelte component

## Install

```
$ npm i -S @magrinilopes/svelte-downloadfile
```


## Usage

```html
<script>
  import {DownloadFile} from '@magrinilopes/svelte-downloadfile'
</script>

<DownloadFile />
```


## License

MIT ©