open-index/open-npm huggingface dataset:
npm package: @modologystudios/clawcost
Description: Self-hosted LLM cost tracking and budget enforcement proxy for any AI dev team
Author: Modology Studios
Latest version: 0.1.0

# ClawCost

Real-time token cost tracking and budget enforcement proxy for any LLM API.

Sits between your app and OpenAI, Anthropic, Gemini, DeepSeek, or any OpenAI-compatible API. Tracks every token, enforces daily/monthly budgets, and shows a live dashboard — drop it in with a one-line config change, no code changes required.

## Quick Start

```bash
npm install
npm run dev
```

Point your app's LLM base URL to ClawCost:

```
http://localhost:4100/v1
```

**Dashboard:** http://localhost:4100

### Claude Code / OpenClaw

Add to `~/.openclaw/.env`:

```
ANTHROPIC_BASE_URL=http://localhost:4100/v1
```

### OpenAI SDK

```python
client = OpenAI(base_url="http://localhost:4100/v1", api_key=os.environ["OPENAI_API_KEY"])
```

### Any OpenAI-compatible provider

Set your SDK's `base_url` or `OPENAI_BASE_URL` env var to `http://localhost:4100/v1`. ClawCost routes to the correct upstream automatically based on the model name.

## Configuration

Copy `.env.example` to `.env`:

```bash
cp .env.example .env
```

| Variable | Default | Description |
|---|---|---|
| `CLAWCOST_PORT` | `4100` | Proxy port |
| `CLAWCOST_DAILY_BUDGET` | `5.00` | Daily spend limit (USD) |
| `CLAWCOST_MONTHLY_BUDGET` | `50.00` | Monthly spend limit (USD) |
| `CLAWCOST_DATA_DIR` | `~/.clawcost` | SQLite database location |

Budgets can also be updated live in the dashboard without restarting.

## How it works

1. Your app sends API requests to `http://localhost:4100/v1` instead of the provider directly
2. ClawCost checks current spend against your budgets — blocks with HTTP 429 if exceeded
3. Forwards the request upstream and streams the response back with zero added latency
4. Parses SSE events to extract token usage without buffering
5. Saves usage + cost to a local SQLite database (`~/.clawcost/usage.db`)

## ClawCost Pro

[ClawCost Pro](https://getclawcost.com) ($19/mo) adds:

- **Per-model budgets** — set independent limits for each model
- **90-day history** — longer usage trends and cost analysis
- **Spend forecasting** — projected month-end cost based on current burn rate
- **Custom alert thresholds** — trigger warnings at any % of budget, not just 80%
- **Outbound webhooks** — POST alerts to Slack, Discord, or any endpoint

After purchasing, enter your email in the Pro panel on the dashboard to activate.

## Production build

```bash
npm run build
npm start
```

## Data

All usage is stored locally at `~/.clawcost/usage.db` (SQLite). No data leaves your machine.

## License

MIT — [Modology Studios](https://modology.dev)
npm package: @modori-labs/artifacts
Description: Utilities for downloading snark artifacts
Latest version: 0.0.5

<p align="center">
    <h1 align="center">
        @zk-kit/artifacts
    </h1>
</p>
<p align="center">
    <a href="https://npmjs.org/package/@zk-kit/artifacts">
        <img src="https://img.shields.io/npm/v/@zk-kit/artifacts.svg?style=flat-square" alt="NPM version" />
    </a>
    <a href="https://npmjs.org/package/@zk-kit/artifacts">
        <img src="https://img.shields.io/npm/dm/@zk-kit/artifacts.svg?style=flat-square" alt="Downloads" />
    </a>
</p>

## Downloading artifacts

`@zk-kit/artifacts` provides a set of functions to automatically download artifacts from the snark artifacts registry hosted by [PSE](https://pse.dev) at [snark-artifacts.pse.dev](https://snark-artifacts.pse.dev). For example:

```ts
import { maybeGetSnarkArtifacts, Project } from '@zk-kit/artifacts'

// It will return the artifacts' paths.
const { wasm, zkey } = await maybeGetSnarkArtifacts(Project.POSEIDON, {
  parameters: [2],
  version: '1.0.0',
})

console.log(wasm) // "/tmp/@zk-kit/poseidon-artifacts@1.0.0/poseidon-2.wasm"
console.log(zkey) // "/tmp/@zk-kit/poseidon-artifacts@1.0.0/poseidon-2.zkey"

// Paths on browsers will be the `unpkg` URLs directly.
// e.g. https://unpkg.com/@zk-kit/poseidon-artifacts@1.0.0/poseidon-2.zkey
```

## CLI

Or you can install our `snarkli` CLI to download artifacts, list available packages or generate artifacts (`.zkey`, `.wasm`) from `.circom` source files.

```commandline
pnpm add -g @zk-kit/artifacts
snarkli
```
npm package: @modos.m98/persian-swear-words
Description: filter persian swear words
Latest version: 2.3.1

[![GitHub issues](https://img.shields.io/github/issues/modos/persian-swear-words-js-package)](https://github.com/modos/persian-swear-words-js-package/issues)
[![GitHub forks](https://img.shields.io/github/forks/modos/persian-swear-words-js-package)](https://github.com/modos/persian-swear-words-js-package/network)
[![GitHub stars](https://img.shields.io/github/stars/modos/persian-swear-words-js-package)](https://github.com/modos/persian-swear-words-js-package/stargazers)
[![GitHub license](https://img.shields.io/github/license/modos/persian-swear-words-js-package)](https://github.com/modos/persian-swear-words-js-package/blob/main/LICENSE)
[![Twitter](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fmodos%2Fpersian-swear-words-js-package)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fmodos%2Fpersian-swear-words-js-package)

<h1>a javascript package for filter persian swear words</h1> <br>
Thanks to : https://github.com/amirshnll <br>

Link on npm : https://www.npmjs.com/package/@modos.m98/persian-swear-words

## Install

```
npm i @modos.m98/persian-swear-words
```

## Import

```
const swear = require("@modos.m98/persian-swear-words")
```

## Usage
<a href="https://gist.github.com/modos/fb450a19d9da1c6d6cfbc2462b8687e5">Gist</a>

<br>

### 🔸 Check a string contains bad word
<br>

```
let text = 'علی خر است'
swear.hasSwear(text) /// returns true
```

### 🔸 Check a word is bad or not
<br>

```
let text = 'کسکش'
swear.is_bad(text) /// returns true

let text2 = 'سلام'
swear.is_bad(text2) /// returns false
```

### 🔸 Add word to list
<br>

```
let text = 'تخم'
swear.add_word(text)
```

### 🔸 Remove word from list
<br>

```
let text = 'تخم'
swear.remove_word(text)
```