open-index/open-npm huggingface dataset:
npm package: @mrnafisia/type-query
Description: mini-orm with full type support for postgres.
Author: MRNafisiA
Latest version: 2.0.32

# type-query

SQL Query Builder written in TypeScript

# Introduction
Type-Query is a lightweight, schema-aware mini ORM for PostgreSQL, built with TypeScript.
Its main goal is to provide strong type-safety while still giving developers full control over their SQL queries.

Traditional ORMs often abstract away the details of SQL. They make common tasks simple and provide type-safety, but at the cost of flexibility. On the other hand, query builders give developers complete control over queries, but they can be verbose, difficult to type, and harder to maintain.

Type-Query sits right in the middle:

- ✅ Type-safety without losing query control
- ✅ A schema-aware system that prevents runtime mistakes
- ✅ A clean developer experience with full SQL flexibility

With Type-Query, you get the best of both worlds: the safety and developer productivity of an ORM, combined with the precision and control of a query builder.

# Getting Started

## Installation

```shell
npm i @mrnafisia/type-query
```

## Example

### 1. Connect
Type-Query works directly with a [pg](https://node-postgres.com) Pool instance.

`db.ts`
```typescript
import { Pool } from 'pg';

const pool = new Pool({ connectionString: 'postgres://postgres:12345678@localhost:5432/hermes_2025_04_23' });
```

### 2. Define a Entity
To define Entities in Type-Query, you first define a schema and a table, then combine them into an entity.

Entities are type-safe representations of your database tables.

`UserSchema.ts`
```typescript
// 1. Define the schema (TypeScript-level types)
type UserSchema = {
    id: {
        type: number;
        nullable: false;
        default: true;
    };
    username: {
        type: string;
        nullable: false;
        default: false;
    };
    password: {
        type: string;
        nullable: false;
        default: false;
    };
    isAdmin: {
        type: boolean;
        nullable: false;
        default: false;
    };
};

// 2. Define the table (PostgreSQL-level structure)
const UserTable: Table<UserSchema> = {
    schemaName: 'general',
    tableName: 'user',
    columns: {
        id: {
            type: 'int4',
            nullable: false,
            default: true,
            primary: true,
            defaultValue: ['auto-increment']
        },
        username: {
            type: 'varchar',
            nullable: false,
            default: false,
            minLength: 1,
            maxLength: 24,
            regex: /^[\w-]*$/
        },
        password: {
            type: 'varchar',
            nullable: false,
            default: false
        },
        isAdmin: {
            type: 'boolean',
            nullable: false,
            default: false
        }
    }
};

// 3. Create the entity (ready for queries)
const User = createEntity(UserTable);
```
npm package: @mrnever/antd-lowcode-materials
Description: Antd for LowCode
Latest version: 1.4.6

<!--
 * @Date: 2024-07-26 14:58:55
 * @LastEditors: hqx huquanxing@ovfintech.com
 * @LastEditTime: 2024-07-26 16:32:39
 * @FilePath: \orchid.lowcode.mosscarpet.material\README.md
 * @Description: 信念是幸福的第一道彩虹
-->
### 使用 / Usage
#### NPM
```js
const { material } from '@alilc/lowcode-engine';
const assets = require('@mrnever/antd-lowcode-materials/build/lowcode/assets-prod.json');

// in GeneralWorkbench init
material.setAssets(assets);
```

#### CDN
```js
// in GeneralWorkbench init
const assets = await (await fetch(`https://unpkg.com/@mrnever/antd-lowcode-materials@1.3.1/build/lowcode/assets-prod.json`)).json();
material.setAssets(assets);
```
npm package: @mrnever/antd-materials
Description: - ProContainer - ProDrawer - ProModal - ProPopconfirm - ProTable
Latest version: 1.0.0-rc.35

# antd-materials

- ProContainer
- ProDrawer
- ProModal
- ProPopconfirm
- ProTable

## 开发

1. 在根目录执行 yarn start
2. 进入 antd-materials 目录，yarn lowcode:dev
3. 配置 XSwitch 代理
4. 访问 http://localhost:8000

XSwitch 代理如下

```json
{
  "proxy": [
    [
      "https://unpkg.com/@seada/antd-materials@latest/build/lowcode/view.js",
      "http://localhost:5551/view.js"
    ],
    [
      "https://unpkg.com/@seada/antd-materials@latest/build/lowcode/meta.js",
      "http://localhost:5551/meta.js"
    ]
  ]
}
```
npm package: @mrnightingale/react-locale
Description: A React library for handling locales.
Author: Vladysla Soloviov
Latest version: 0.1.0

# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default tseslint.config([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      ...tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      ...tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      ...tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])
```
npm package: @mrnima/instagram-downloader
Description: An unofficial instagram downloader scraper for download videos and images using instagram link.
Author: MRNIMA
Latest version: 1.0.0

<h2 align="center"> INSTAGRAM DOWNLOADER API </h2></br>
<div id="logo" align= "center">       
</div>

<p align = "center"> An unofficial instagram downloader scraper for download videos and images using instagram link.</p>
</br>

## install

```bash
 npm install @mrnima/instagram-downloader
```
or
```bash
 yarn add @mrnima/instagram-downloader
```



## Require

```javascript
const { instagramDownload } = require("@mrnima/instagram-downloader");
```

## Example 
*Download tiktok video link.*
```javascript
async function TEST(){
    const result = await instagramDownload("https://www.instagram.com/p/C2Uo9r9BLnF/?igsh=MWhwZjQ3ZjR5bXdqbw==");
    console.log(result)
}
TEST()
```

## Results 
```json
{
    "creator": "MR NIMA",
    "status": true,
    "result": [
      {
        "type": "image",
        "link": "https://tmpfiles.org/dl/14422568/mrnima-temporary-uploader.jpg"
      }
    ]
  }
  
```
</a>

[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)

## Feedback

If you have any feedback, please reach out to us at queenelisa.bot@gmail.com


## Authors

- [@darkmakerofc](https://www.github.com/darkmakerofc)
- [@mrnima](https://www.github.com/mr-nima-x)
npm package: @mrnitrox/react-native-unity-ads-monetization
Description: A React Native library for integrating Unity Ads to monetize your mobile applications.
Author: Mohd Ali
Latest version: 0.1.2


# React Native Unity Ads Monetization Module

This module enables React Native applications to integrate Unity Ads, providing a simple way to include ads into your mobile app for monetization. Based on Unity Ads SDK version 4.12.3, this module is designed to be easy to use, allowing developers to show ads from Unity with minimal setup.

## Features

- Initialize Unity Ads with a single call.
- Load and display ads with easy-to-use functions.
- Callbacks for ad events such as loading, showing, and errors.
- Support for both Android and iOS platforms.

## Installation

```bash
npm install @mrnitrox/react-native-unity-ads-monetization
# or
yarn add @mrnitrox/react-native-unity-ads-monetization
```

## Setup

1. Import the module in your React Native project.

```javascript
import UnityAds from '@mrnitrox/react-native-unity-ads-monetization';
```

2. Initialize Unity Ads with your game ID and set up listeners for ad events.

```javascript
const gameId = Platform.select({
  android: 'YOUR_ANDROID_GAME_ID',
  ios: 'YOUR_IOS_GAME_ID',
});

UnityAds.initialize(gameId, true).then(() => {
  UnityAds.loadAd('rewardedVideo');
});
```

3. Load and show ads in your app.

```javascript
if (loaded) {
  UnityAds.showAd('rewardedVideo');
}
```

## Usage Example

Below is a simple example demonstrating how to use the Unity Ads module in a React Native app.

```javascript
import React, { useState, useEffect } from 'react';
import { View, Text, Button, Platform, StyleSheet } from 'react-native';
import UnityAds from '@mrnitrox/react-native-unity-ads-monetization';

export default function App() {
  const [loaded, setLoaded] = useState(false);

  useEffect(() => {
    const gameId = Platform.select({
      android: 'YOUR_ANDROID_GAME_ID',
      ios: 'YOUR_IOS_GAME_ID',
    });

    UnityAds.initialize(gameId, true)
      .then(_ => UnityAds.loadAd('rewardedVideo'));

    UnityAds.setOnUnityAdsLoadListener({
      onAdLoaded: (placementId) => {
        console.log(`UnityAds.onAdLoaded: ${placementId}`);
        setLoaded(true);
      }
    });

    // Add other event listeners as needed
  }, []);

  return (
    <View style={styles.container}>
      <Text>Ads loaded: {loaded ? 'true' : 'false'}</Text>
      <Button
        disabled={!loaded}
        onPress={() => UnityAds.showAd('rewardedVideo')}
        title={'Show Ads'}
      />
    </View>
  );
}

// Styles for your app
const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
});
```

## License

This project is open source and available under the MIT License. This means you are free to use, share, and adapt it for your needs with appropriate attribution.

Feel free to contribute to the project on GitHub and help make it even better!
"# react-native-unity-ads-monetization" 
"# react-native-unity-ads-monetization"
npm package: @mrnkr/regex_t
Description: C Regex evaluation now in js
Author: Mr.NKR
Latest version: 0.1.1

# @mrnkr/regex_t

[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][npm-url]

[npm-image]:http://img.shields.io/npm/v/@mrnkr/regex_t.svg
[npm-url]:https://npmjs.org/package/@mrnkr/regex_t
[downloads-image]:http://img.shields.io/npm/dm/@mrnkr/regex_t.svg

Make regex evaluation great again!

### Motivation

I've been having problems with regex evaluation in js... Correct expressions that match what I want them to match in [Regex Tester](https://www.regextester.com/) do not give me reliable results. After countless bug reports for the same problem I removed that validation from the app (not a deal breaker) but I was left wondering whether there would be a solution that actually worked...

A couple of days ago, talking to a friend, I remembered [WebAssembly](https://webassembly.org/). I thought I could bring the C library for regex evaluation `<regex.h>` to javascript, both in the server and the frontend. That's what this library is.

I expect to add features to this as I need them but feel free to contribute, offer feedback and/or ask for features!

### Installation

```zsh
yarn add @mrnkr/regex_t
```

### Quick start

```js
import regex_t from '@mrnkr/regex_t'; // has both default and named export so choose the one you like best :)

const regex = new regex_t('^09[1-9]\\s[0-9]{3}\\s[0-9]{3}$'); // This regex validates an uruguayan cell phone number
regex.match('099 123 456')
    .then(isMatch => console.log(`It ${isMatch ? 'is' : 'is not'} a match!`));
```

### Changelog

* 0.1.0 - First release, pretty barebones but a proof of concept nonetheless
* 0.1.1 - Never can I just release, I always have to forget something... There was an unused dependency in the first version...
npm package: @mrnkr/simple-queue
Description: Minimal queue implementation
Author: MrNKR
Latest version: 1.0.5

# simple-queue

### Introduction

The smallest possible implementation of a queue. Need simplicity? Here it is. 100% code coverage in tests, all alternatives I could think of are taken into consideration as well. Hence, it is as robust as it can be... (that statement may backfire, be gentle 😅)

### Quick start

The specification is the following:

```typescript
export interface Queue<T> {

  enqueue(val: T): void;
  next(): T | undefined;

  length: number;

}
```

All methods do exactly what they are meant to do in the provided implementation (QueueImpl). You may reimplement this interface, extend it, do as you wish, really.