open-index/open-npm huggingface dataset:
npm package: @sammybauch/swear-jar
Description: AI agent plugin that donates to charity when you swear. Supports Claude Code and OpenClaw.
Latest version: 0.1.4

# Swear Jar

An AI agent plugin that donates to charity when you swear. Automatic USDC payments on Base — your bad words fund good deeds.

## Install

**OpenClaw** (via npm):
```bash
openclaw plugins install @sammybauch/swear-jar
```

**Claude Code** (from source):
```bash
git clone https://github.com/sbauch/swear-jar
cd swear-jar && npm install
claude --plugin-dir ./swear-jar
```

Then run `/swearjar` to configure.

## How It Works

1. A hook monitors every message you send
2. When profanity or hostility is detected, the plugin sends USDC on Base to your configured destination
3. Your agent acknowledges the violation with a playful quip

Payments happen automatically in the hook — no agent action needed.

## Configuration

Run `/swearjar` to set up:

### Destination
- **Swear Jar Community Fund** — A community-managed Donor Advised Fund on [Endaoment](https://endaoment.org). Pooled fund for collective impact.
- **Custom address** — Provide your own wallet address (0x...). Money accumulates for you to allocate later.
- **Search for a charity** — Find a specific charity via The Giving Block. (Coming soon.)

### Sensitivity
- **Cussing** — Any swear word triggers, even "this is fucking awesome." Default.
- **Vibes** — Only triggers when you're actually being hostile. Positive profanity gets a pass.
- **Max** — Catches swear words AND hostile tone.
- **AI** — AI reviews your conversation every few messages. Catches creative profanity and sarcasm.

### Payment Providers
- **Bankr** — `npm install -g @bankr/cli` then `bankr login email`
- **awal** (Coinbase) — `npx awal@2.0.3 auth login <email>`
- **Locus** — Register at [paywithlocus.com](https://paywithlocus.com)
- **Manual** — Just tracks violations, you handle payments yourself

## Commands

- `/swearjar` — Set up or reconfigure
- `/swearjar status` — View config and violation history
- `/swearjar reset` — Clear violations, keep config

## Platforms

Works on both **Claude Code** and **OpenClaw**:

| | Claude Code | OpenClaw |
|---|---|---|
| Hook | `UserPromptSubmit` command hook | `before_prompt_build` lifecycle hook |
| Commands | Markdown in `commands/` | `api.registerCommand()` |
| Skills | `skills/swearjar/SKILL.md` | Same + inline |
| State | `~/.claude/swearjar/state.json` | `~/.openclaw/workspace/swearjar-state.json` |

## Links

- [Landing page](https://swearjar.saimmy.com)
- [GitHub](https://github.com/sbauch/swear-jar)
- [npm](https://www.npmjs.com/package/@sammybauch/swear-jar)

## Security Notes

On install, OpenClaw may warn about "dangerous code patterns." This is expected — the plugin:
- Uses `child_process` to call wallet CLIs (bankr, awal) for sending payments
- Reads `~/.config/locus/credentials.json` for Locus API auth
- Makes network requests to our proxy API for charity lookup

These are required for the payment functionality. The plugin is [open source](https://github.com/sbauch/swear-jar) — review the code if you have concerns.

## License

MIT
npm package: @sammyl/lit-components
Description: A Small Web Components Library
Author: Shmuel Leider
Latest version: 1.0.16

# A Lit Web Components Library

This is a library of web components built using Lit and TypeScript. The library is bundled with Rollup and can be used in any JavaScript or TypeScript project.

## Installation

To install the library in your project, run:

```bash
npm install @sammyl/lit-components
```

## Usage

Import individual components like this:

```javascript
import { SimpleLink } from '@sammyl/lit-components';
```

Then you can use them in your HTML:

```html
<lwc-simple-link 
  href="https://github.com/sammyl720/lit-components" 
  text="Github Link">
</lwc-simple-link>
```

Or you can import multiple components from the main entry point:

```javascript
import { LwcExpandingText, SimpleLink } from '@sammyl/lit-components';
```


### In a simple HTML file

You can also use the library directly in an HTML file through Unpkg:

```html
<script type="module">
  import { SimpleButton, SimpleLink } from 'https://unpkg.com/@sammyl/lit-components@latest';
</script>

<lwc-simple-link href="https://github.com" text="Github Link"></lwc-simple-link>
<lwc-expanding-text
  lines="5"
  text="Web development forms the backbone of the digital universe. It comprises of a plethora of languages like HTML, CSS, and JavaScript, each with specific functions. With billions of websites online, each has a unique DNA coded by developers. Responsive design is now a standard, ensuring sites adapt to any device. Ever-evolving, the field embraces advancements such as Web 3.0, emphasizing machine learning and semantic metadata. APIs now facilitate seamless interconnectivity between platforms, improving user experience. Constant learning remains key, as frameworks like React and Angular redefine the landscape. Security and privacy also remain paramount in web development."
  >
</lwc-expanding-text>

```

---
#### [See components](./components.md)
---

## Building

To build the library, run:

```bash
npm run build
```

This command will compile the TypeScript code into JavaScript, bundle the components, and put the bundle into the `dist` directory.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License

[MIT](https://choosealicense.com/licenses/mit/)
npm package: @sammyl/lit-library
Description: An Easy typescript starter project to create and view Lit WebComponents
Author: Shmuel Leider
Latest version: 1.0.2

# Lit Playground

An Easy typescript starter project to create and view Lit WebComponents.

## Description

This project is a simple and easy-to-use starter kit for creating and viewing Lit WebComponents using TypeScript. It's set up with a development server, build process, and a script for generating new components.

## Installation

First, clone the repository:

```bash
git clone https://github.com/sammyl720/lit-ts-playground.git
```

Then, navigate into the project directory and install the dependencies:

```bash
cd lit-ts-playground
yarn install
```

## Usage

To start the development server, run:

```bash
yarn run serve
```

To build the project, run:

```bash
yarn run build
```

To generate a new component, run:

```bash
yarn run generate-component component-name
```

Or use the shorthand:

```bash
yarn run gc component-name
```

## Author

This project is created and maintained by Shmuel Leider. You can reach him at sam.leider@hotmail.com.

## License

This project is licensed under the MIT License.