open-index/open-npm huggingface dataset:
npm package: @hamstack/bluesky-embed-rsc
Description: A React Server Component for embedding Bluesky posts.
Author: Matt Hamlin
Latest version: 1.0.2

# `@hamstack/bluesky-embed-rsc`

Embed Bluesky posts in your app, with graceful fallbacks!

## Getting Started:

```bash
# Install the library and it's peer dependencies
bun install @hamstack/bluesky-embed-rsc \
  @atcute/bluesky \
  @atcute/lexicons \
  @atcute/client \
  @atcute/bluesky-richtext-segmenter \
  hls.js \
  @radix-ui/react-aspect-ratio \
  clsx \
  tailwind-merge \
  lucide-react
```

## Usage:

```tsx
import { BlueskyPostEmbed } from '@hamstack/bluesky-embed-rsc';

<BlueskyPostEmbed src="<link-to-post-here>">
  Optional fallback here!
</BlueskyPostEmbed>
```

See [the docs](https://bluesky-embed-rsc.vercel.app/) for more details!


## Contributing:

### Building:

This library uses [`swc`](https://swc.rs/) and [`TypeScript`](https://www.typescriptlang.org/docs/) to build the source code and generate types.

To build the library, run `bun run build` from the root, or from this workspace!

### Code Quality:

#### Type Checking:

This library uses TypeScript to perform type checks, run `bun run type-check` from the root or from this workspace!

#### Linting

This library uses [BiomeJS](https://biomejs.dev/) for linting, run `bun run lint` from the root or from this workspace!

#### Tests

This library uses Bun for running unit tests, run `bun run test` from the root or from this workspace!

### Publishing:

To publish the library, run `bun run pub` from the workspace root. This will prompt you to login to npm and publish the package.

## Inspiration:

This package is heavily inspired by the following projects:

- [`bluesky-embed`](https://github.com/mary-ext/bluesky-embed)
- [`bsky-react-post`](https://bsky-react-post.rhinobase.io/)

If this package doesn't fit your needs, I'd highly recommend one of the above instead!
npm package: @hamster-bot/constructeur
Description: A build tools for koishi plugins used in Hamster
Author: Maiko Tan
Latest version: 0.3.0
Deprecated: Package no longer supported, use Koishi's boilerplate project instead: https://github.com/koishijs/boilerplate

# DEPRECATED - Use [Koishi's Boilerplate Project](https://koishi.chat/en-US/manual/starter/boilerplate.html) Instead

This project is deprecated, it was useful in the days that Koishi side has no an official bundler setup for plugins development.

Since Koishi Team release their [official boilerplate project](https://koishi.chat/en-US/manual/starter/boilerplate.html) that includes build / bundle command for developing plugins,
the `constructeur` could be deprecated and I would no longer maintain it.

------

# constructeur

A build tools for koishi plugins

## Install

```bash
$ yarn add --dev @hamster-bot/constructeur
```

## Usage

```bash
$ constructeur build [config]
# or use the shorten alias
$ ctr build [config]
```

## License

MIT
npm package: @hamsterbase/ledger-ts
Description: ledger-ts is a double-entry accounting tool written in TypeScript. Its goal is to use TypeScript for writing personal financial records and then generate formats required by other accounting tools.
Author: monster
Latest version: 0.14.0

# ledger-ts

ledger-ts is a double-entry accounting tool written in TypeScript. Its goal is to use TypeScript for writing personal financial records and then generate formats required by other accounting tools.

Currently, it only supports the beancount format. Therefore, it is recommended to learn beancount's syntax and rules before using it.

## Background

When using beancount for accounting on a daily basis, I encountered some troubles. For instance, code completion is weak and bill reuse completely depends on copy and pasting.

So, I created ledger-ts. To put it in an analogy, ledger-ts is a more advanced accounting language that can be "compiled" (executed) into beancount, which serves as the underlying "assembly language."

## Advantages

- Allows the use of any IDE to write records enjoying strong code completion.
- Supports using the powerful TypeScript type system to check the correctness of records.
- Freely use TypeScript to write auxiliary functions to generate records.
- Can output records to formats required by other accounting tools.

## Installation

```bash
npm install @hamsterbase/ledger-ts
```

## Example

```ts
import { EAccountType, Ledger, utils } from "@hamsterbase/ledger-ts";

// setup currencies
const currencies = utils.createCurrencies(
  {
    defaultDate: "2021-01-01",
  },
  ["USD", "IBM"] as const
);

// setup accounts
const assets = utils.buildAccountHierarchy(
  currencies.USD,
  EAccountType.Assets,
  {
    US: {
      ETrade: {
        Cash: utils.createAccountNodeConfig({
          open: "2017-01-01",
        }),
        IBM: utils.createAccountNodeConfig({
          open: "2017-01-01",
          currency: currencies.IBM,
        }),
      },
    },
  }
);

// create a ledger and add accounts, currencies
const ledger = new Ledger(
  [utils.flattenAccountHierarchy(assets)].flat(),
  Object.values(currencies)
);
const { tr } = utils.transactionBuilder(ledger);

// add a transaction
tr(
  "2024-02-16",
  "Buying some IBM",
  assets.US.ETrade.IBM.posting(100).heldPrice(160, currencies.USD),
  assets.US.ETrade.Cash.posting(-16000)
);

// output the ledger
console.log(utils.beanCount.serializationLedger(ledger));
```

```
2021-01-01 commodity USD

2021-01-01 commodity IBM

2017-01-01 open Assets:US:ETrade:Cash USD

2017-01-01 open Assets:US:ETrade:IBM IBM

2024-02-16 * "Buying some IBM"
  Assets:US:ETrade:IBM 100 IBM { 160 USD }
  Assets:US:ETrade:Cash -16000 USD
```

## License

MIT
npm package: @hamsterbase/sdk
Description: sdk of hamsterbase
Author: hamsterbase
Latest version: 0.4.0

# @hamsterbase/sdk

sdk of [hamsterbase](https://hamsterbase.com/developer)

## Install

```
npm i @hamsterbase/sdk --save
```

## How to use

### node

```ts
require('isomorphic-fetch');
const { HamsterBase } = require('@hamsterbase/sdk');

const client = new HamsterBase({
  token: 'token',
  endpoint: 'endpoint',
});

client.webpages.list().then((res) => {
  console.log(`fetch ${res.webpages.length} webpages`);
});
```
npm package: @hamstermert/hamster.js
Description: aoi.js paketini güçlendiren harika bir paket.
Author: HamsterMert
Latest version: 0.0.1


# 🐹 hamster.js

`hamster.js`, [Aoi.js](https://aoi.js.org/) botları için özel fonksiyonlar eklemenizi sağlayan bir eklentidir.

---

## 🔧 Kurulum

```bash
npm install hamster.js@latest
```

---

## 🚀 Örnek Kullanım

```js
const { AoiClient } = require("aoi.js");
const { Hamsterjs } = require("hamster.js");

const client = new AoiClient({
    token: "token",
    prefix: "!",
    intents: ["MessageContent", "Guilds", "GuildMessages"],
    events: ["onMessage", "onInteractionCreate"],
    database: {
      type: "aoi.db",
      db: require("@akarui/aoi.db"),
      dbType: "KeyValue",
      tables: ["main"],
      securityKey: "a-32-characters-long-string-here",
    }
  });


  const hamster = new Hamsterjs({ client:client });
  hamster.functions();

  client.command({
  name: "hamster-versiyon",
  code: `$hamsterVersion`
})
```

---

## 💡 Fonksiyon Listesi

Tüm fonksiyonları görüntülemek için [sayfamızı](https://docs.hamster.com.tr) ziyaret edin.

---

## 📦 NPM

[NPM üzerinden incele](https://www.npmjs.com/package/hamster.js)

---

❤ [tilki](https://www.npmjs.com/package/tilki)  paketinden ilham alınarak [HamsterMert](https://hamster.com.tr) tarafından geliştirildi.
npm package: @hamstore/core
Description: <p align="center">     <img src="assets/logo.svg" height="128">     <h1 style="border-bottom:none;font-size:60px;margin-bottom:0;" align="center" >Hamstore</h1> </p> <p align="center">   <a aria-label="NPM version" href="https://www.npmjs.com/package/@ham
Latest version: 3.0.1
npm package: @hamstudy/markdown-it-sanitizer
Description: sanitizer for markdown-it.
Latest version: 0.4.4

# markdown-it-sanitizer

[![Build Status](https://img.shields.io/travis/svbergerem/markdown-it-sanitizer/master.svg?style=flat)](https://travis-ci.org/svbergerem/markdown-it-sanitizer)
[![Coverage Status](https://img.shields.io/coveralls/svbergerem/markdown-it-sanitizer/master.svg?style=flat)](https://coveralls.io/r/svbergerem/markdown-it-sanitizer?branch=master)
[![npm version](https://img.shields.io/npm/v/markdown-it-sanitizer.svg?style=flat)](https://npmjs.com/package/markdown-it-sanitizer)

> sanitizer plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.

## Accepted tags

All tags are parsed case insensitive.

### Balanced
`<b>`, `<blockquote>`, `<code>`, `<em>`, `<h1>`, ..., `<h6>`, `<li>`, `<ol>`, `<ol start="42">`, `<p>`, `<pre>`, `<sub>`, `<sup>`, `<strong>`, `<strike>`, `<ul>`

### Standalone
`<br>`, `<hr>`

### Links
`<a href="http://example.com" title="link">text</a>`

The `title` attribute is optional.

### Images
`<img src="http://example.com" alt="cat" title="image">`

The `alt` and `title` attributes are optional.

## Install

node.js, bower:

```bash
npm install markdown-it-sanitizer --save
bower install markdown-it-sanitizer --save
```

## Use

#### Basic

```js
var md = require('markdown-it')({ html: true })
            .use(require('markdown-it-sanitizer'));

md.render('<b>test<p></b>'); // => '<p><b>test</b></p>'
```

#### Advanced

For not whitelisted tags and tags that don't have a matching opening/closing tag you can define whether you would like to remove or escape them. You can also define a class attribute that will be added to image tags. Here is an example with default values:

```js
var md = require('markdown-it')({ html: true })
            .use(require('markdown-it-sanitizer'), {
              imageClass: '',
              removeUnbalanced: false,
              removeUnknown: false
            });

// unknown tag
md.render('<u>test</u>'); // => '<p>&lt;u&gt;test&lt;/u&gt;</p>'
// unknown tag with removeUnknown: true
md.render('<u>test</u>'); // => '<p>test</p>'

// unbalanced tags
md.render('<b>test</em>'); // => '<p>&lt;b&gt;test&lt;/em&gt;</p>'
// unbalanced tags with removeUnbalanced: true
md.render('<b>test</em>'); // => '<p>test</p>'

// imageClass: 'img-responsive'
md.render('<img src="http://example.com/image.png" alt="image" title="example">'); // => '<p><img src="http://example.com/image.png" alt="image" title="example" class="img-responsive"></p>'

```

_Differences in the browser._ If you load the script directly into the page, without
package system, the module will add itself globally as `window.markdownitSanitizer`.

## License

[MIT](https://github.com/svbergerem/markdown-it-sanitizer/blob/master/LICENSE)
npm package: @hamta/adonis
Description: Hamta Libraries AdonisJS
Author: Ehsan Zarei
Latest version: 1.0.199

# Hamta Libraries

## Installation
<pre>
npm i @adonisjs/i18n
node ace configure @adonisjs/i18n

npm i @hamta/adonis
node ace configure @hamta/adonis
</pre>

## Model Signature Use:


<pre>
import {withSignature,RowSignature} from '@ioc:Hamta/Lucid/Signature'

@withSignature({column: 'signature', salt: '6ba7b810-9dad-11d1-80b4-00c04fd430c8', enable: true, [fields]:[]})
export default class Transfer extends compose(BaseModel,RowSignature) {
    
}
</pre>

<h3>withSignature params</h3>
<ul>
<li>column : signature field name in database</li>
<li>salt : custom string for create hash code</li>
<li>enable : enable create ans save signature this table</li>
<li>fields : list of fields for create signature</li>
</ul>

<h3>check row isValidSignature</h3>
<pre>
const user=await User.findOrFail()
user.isOk() // return true or false
</pre>

## Filter Components Use:

<pre>
const accounts = await User.query()
      .where('userId', userId)
      .whereFilterPaginate(request)
</pre>

## Hamta Check Develope Mode Helper:
change config in config/hamta.ts
<pre>
import {Developer} from '@ioc:Hamta/Helper'

if(Developer.isDeveloper(127.0.0.1)){
}
</pre>

## Hamta Command Run Developer:
change config in config/hamta.ts
<pre>
import Runner from '@ioc:Hamta/Test'

const command=await Runner.execute('queue:listen', ['queue=TtsQueue'], true)
...
command.kill()

</pre>
OR
<pre>
import Runner from '@ioc:Hamta/Test'

const command=await Runner.execute('queue:listen', ['queue=TtsQueue'])
...

</pre>



## Use I18n Middleware:
after install i18n package and install @hamta/adonis

<pre>
start/kernel.ts
</pre>
<pre>
Server.middleware.register([....,() => import('App/Middleware/DetectUserLocale')])
</pre>

<h3>use:</h3>
<pre>
public messages: CustomMessages = {
    'username.required': Application.i18n.formatMessage('validator.required', {
      attribute: Application.i18n.formatMessage('translate.attributes.username'),
    }),
    'username.emailORmobile': Application.i18n.formatMessage('validator.the_mobile_number_email_format_is_wrong'),
}
</pre>

more information
 
https://docs.adonisjs.com/guides/i18n
npm package: @hamta/adonis-orm
Description: Addon for Customize AdonisJS Lucid ORM
Author: Ehsan Zarei
Latest version: 1.0.14

# adonis-hashids

> Hashids for AdonisJS 5

[![gh-workflow-image]][gh-workflow-url] [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url] [![download-image]][download-url]


> **This package generates YouTube-like IDs for AdonisJS Lucid models using the `hashids.js` package.  [hashids.js](https://github.com/niieani/hashids.js) is small JavaScript library to generate YouTube-like ids from numbers. Use it when you don't want to expose your database ids to the user.** 

## **Prerequisites**
- [Adonis Lucid](https://docs.adonisjs.com/guides/database/introduction) to be installed and configured

- The db table must have a column named `hashid` of type `string` and it must be `nullable`.


## **Installation**

```
npm i @fcoded/adonis-hashids or  yarn add @fcoded/adonis-hashids
```

## Configuration

```
node ace configure @fcoded/adonis-hashids
```

The configuration file is in `config/hashids.ts`. The default `salt` will be the project name, the default `minLength` is 12 and it uses the default `alphabet` from the [hashids.js](https://github.com/niieani/hashids.js) package.

## **Using the Hashids Mixin**

Apply the mixin on the model you.

```typescript
import { compose } from '@ioc:Adonis/Core/Helpers'
import { column, BaseModel } from '@ioc:Adonis/Lucid/Orm'
import { LucidHashIds } from '@ioc:Adonis/Adons/LucidHashIds'

export default class User extends compose(BaseModel, LucidHashIds){

}
```

The mixin will update the `hashid` column after the recorded is created using the `afterCreate` **Model** hook

Also, if you are using `Route model binding` package, the `routeLookupKey` will be set to the `hashid` by default.

[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/eokwukwe/adonis-hashids/test.yml?style=for-the-badge
[gh-workflow-url]: https://github.com/eokwukwe/adonis-hashids/actions/workflows/test.yml "Github action"

[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[typescript-url]:  "typescript"

[npm-image]: https://img.shields.io/npm/v/@fcoded/adonis-hashids/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/@fcoded/adonis-hashids/v/latest "npm"

[license-image]: https://img.shields.io/npm/l/@fcoded/adonis-hashids?color=blueviolet&style=for-the-badge
[license-url]: LICENSE.md "license"

[download-image]: https://img.shields.io/npm/dm/%40fcoded/adonis-hashids?style=for-the-badge&logo=npm&label=Downloads
[download-url]: "download"