open-index/open-npm huggingface dataset:
npm package: @swetrix/captcha
Description: Swetrix CAPTCHA
Author: Swetrix Ltd
Latest version: 2.0.2

<img src="/src/assets/logo_blue.png" alt="" height="80" />

## Description

Swetrix CAPTCHA is a privacy-oriented, simple and opensource CAPTCHA service.

See the full documentation at https://docs.swetrix.com/captcha/introduction

## Development

To build the captcha run:
```bash
npm run build
```

After you build it, a new folder `dist` will appear. You can run `test.html` file via an extension like `Live server` to test it (don't forget to set up a valid project ID or one of our [dummy project IDs](https://docs.swetrix.com/captcha/testing)).

## License

Swetrix CAPTCHA client is released under the MIT licence, see [LICENSE](LICENSE).

## Bugs and security

Swetrix is open to pull-requests. Feel free to propose new features or submit bug requests via pull reuqests.\
For severe security issues, please contact us at security@swetrix.com

## Contact

You can contact us via email at contact@swetrix.com

## Donate
You can support the project by donating us at https://ko-fi.com/andriir \
We can only run our services by once again asking for your financial support!
npm package: @swetrix/captcha-validator
Description: Swetrix CAPTCHA token validator package.
Author: Andrii Romasiun
Latest version: 1.0.0

<img src="https://swetrix.com/assets/logo_blue.svg" alt="" height="100" />

# Swetrix CAPTCHA validator
This is a wrapper for the Swetrix CAPTCHA server-side validation API.\
It is used to validate the user's response to the CAPTCHA.\
Read more about server-side validation at https://docs.swetrix.com/captcha/server-side-validation

# Installation
```bash
npm install @swetrix/captcha-validator
```

# Usage
You can use this package in your Node.js (or NestJS, ExpressJS, etc.) project to validate the user's response to the CAPTCHA.\
The package exports a single function `validateToken` which takes arguments listed below and returns a Promise.

| Argument | Type | Description | Required |
| --- | --- | --- | --- |
| token | string | The token returned by the CAPTCHA widget. | YES |
| secretKey | string | Your CAPTCHA project secret key. | YES |
| apiURL | string | The API URL to use (default: https://api.swetrix.com/captcha), this one may be used in case you're selfhosting the API. | NO |

Here's an example of how to use the package in your project:
```js
const { validateToken } = require('@swetrix/captcha-validator')
// or
import { validateToken } from '@swetrix/captcha-validator'

// somewhere inside the controller of your form where the CAPTCHA is used
validateToken(
  'CAPTCHA_TOKEN',
  'YOUR_SECRET_KEY',
).then((result) => {
  const [status, data] = result
  // status is a boolean, true if the token is valid, false otherwise
  // data is an error message if status is false
  console.log(status, data)
})
```

# License
This library is licenced under the MIT License - see the [LICENSE](LICENSE) file for details.

# Donate
You can support the project by donating us at https://ko-fi.com/andriir \
We can only run our services by once again asking for your financial support!
npm package: @swetrix/nextjs
Description: Official Swetrix Analytics integration for Next.js
Author: Andrii R.
Latest version: 1.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<img src="https://swetrix.com/assets/logo_blue.svg" alt="" height="100" />

# Swetrix Next.js integration
Official [Swetrix Analytics](https://swetrix.com/?ref=github-swetrix-nextjs) integration for Next.js.

# Integration

### Install

Run the following command to install in your project:

```
npm install @swetrix/nextjs
```

Or with yarn:

```
yarn add @swetrix/nextjs
```

### Basic usage

You can now import, and use the Swetrix hook on your project:

```javascript
// ./pages/_app.js

import { useSwetrix } from '@swetrix/nextjs'

function YourApp({ Component, pageProps }) {
  useSwetrix('YOUR_PROJECT_ID')

  return <Component {...pageProps} />
}

export default YourApp
```

### Debug-mode

When developing in localhost, Swetrix does not send events to avoid using your quota. \
You can enable debug mode to send events when testing things locally. It will also log messages to console.

```javascript
// ./pages/_app.js

import { useSwetrix } from '@swetrix/nextjs'

function YourApp({ Component, pageProps }) {
  useSwetrix('YOUR_SITE_ID', {
    debug: true
  })

  return <Component {...pageProps} />
}

export default YourApp
```

### Advanced options
`useSwetrix` hook accepts 3 parameters: `PID`, `initOptions`, `pageViewsOptions`. \
See our [documentation](https://swetrix.com/docs) page for more details. \
You can always [contact](https://swetrix.com/contact) us in case of any questions! :)

# Contribution

Feel free to contribute to the source code by opening a pull requests. \
For any questions, you can open an issue ticket, refer to our [FAQs](https://swetrix.com/#faq) page or reach us at contact@swetrix.com \

# Selfhosted API
If you are selfhosting the [Swetrix-API](https://github.com/Swetrix/swetrix-api), be sure to point the `apiUrl` parameter to: `https://yourapiinstance.com/log`

# Donate
You can support the project by donating us at https://ko-fi.com/andriir \
We can only run our services by once again asking for your financial support!
npm package: @swew/comment
Description: The lightest solution for adding comments to the site. Designed to make your site fast and productive. The best solution if you care about user privacy.
Latest version: 0.0.1

# @swew-app/comment

The lightest solution for adding comments to the site.
Designed to make your site fast and productive.
The best solution if you care about user privacy.

# Installation

Register at [swew.app](https://swew.appconsole/install?utm_from=npm_readme)

Get site ID and paste code on page.

```html

<div swew-app="comment" swew-uid="YOU_ID"></div>

<link rel="stylesheet" href="//style.css" crossorigin="anonymous" media="print" onload="media='all'"/>

<script crossorigin="anonymous" defer src="//script.js"></script>
```

That's all)))
npm package: @swfz/ngx-filter-keyup-events
Description: Angular directive that recieves an event when there is no keyup input for a certain period of time.
Latest version: 0.1.0

# FilterKeyupEvents

Angular directive that recieves an event when there is no keyup input for a certain period of time.

using ng library

[demo](https://swfz.github.io/ngx-libraries/filter-keyup-events)

## Usage

```
npm install -S @swfz/ngx-filter-keyup-events
```

And import into your NgModule


```
import {NgModule} from '@angular/core';
import {FilterKeyupEventsModule} from '@swfz/ngx-filter-keyup-events';

@NgModule({
  imports: [FilterKeyupEventsModule],
})
```

- your.component.html

```
<input
  libFilterKeyupEvents
  [intervalMs]="500"
  (filteredKeyup)="onFilteredKeyup($event)"
  type="text"
/>
```

- your.component.ts

```
  onFilteredKeyup(event: string) {
    console.log(event);
  }
```


## Reference

### inputs
- intervalMs
    - type: number
    - threshold for how many milliseconds of input are not fired


### outputs
- filteredKeyup
    - filtered input value