open-index/open-npm huggingface dataset:
npm package: @luchun/clp-frontend-contract
Description: 零金前端团队协议预览
Author: luchun@bestpay.com.cn
Latest version: 1.0.4

# contract

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @luchun/driver.js
Description: A light-weight, no-dependency, vanilla JavaScript library to drive the user's focus across the page
Author: Lu Chun
Latest version: 1.0.0

基于[driver.js](https://github.com/kamranahmedse/driver.js)做了一些细节调整，以适应我们的业务

npm 发布
 npm login
 npm publish --access public
npm package: @lucia-auth/adapter-drizzle
Description: Drizzle ORM adapter for Lucia
Author: pilcrowonpaper
Latest version: 1.1.0
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-drizzle`

[Drizzle ORM](https://orm.drizzle.team) adapter for Lucia.

**[Documentation](https://v3.lucia-auth.com/database/drizzle)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-drizzle/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-drizzle
pnpm add @lucia-auth/adapter-drizzle
yarn add @lucia-auth/adapter-drizzle
```

## Testing

### MySQL

```
pnpm test.mysql
```

### PostgreSQL

```
pnpm test.postgresql
```

### SQLite

```
pnpm test.sqlite
```
npm package: @lucia-auth/adapter-fauna
Description: Fauna adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.2.1
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-fauna`

[Fauna](https://fauna.com) adapter for Lucia

**[Documentation](https://lucia-auth.vercel.app/learn/adapters/fauna)**

**[Lucia documentation](https://lucia-auth.vercel.app)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia-auth/blob/main/packages/adapter-fauna/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-fauna
```

## Lucia version compatibility

| Fauna adapter version | Lucia version |
| --------------------- | ------------- |
| 0.1.x                 | 0.1.x ~ 0.3.x |
| 0.2.x                 | 0.4.0 ~       |

## Testing

Add `FAUNA_SECRET` and `FAUNA_ENDPOINT` ([endpoint docs](https://docs.fauna.com/fauna/current/learn/understanding/region_groups#region-group-endpoints)) to `.env`.
Optionally add `FAUNA_USER_TABLE` and `FAUNA_SESSION_TABLE` to satisfy to `AdapterConfig`.

```
npm run test
```
npm package: @lucia-auth/adapter-kysely
Description: Kysely adapter for Lucia
Latest version: 1.0.1
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-kysely`

[Kysely](https://github.com/koskimas/kysely) adapter for Lucia

**[Documentation](https://lucia-auth.com/learn/adapters/kysely)**

**[Lucia documentation](https://lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-kysely/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-kysely
```

Requires `lucia-auth@0.11.0`.

## Testing

First follow the documentation on database set up.

### PostgreSQL

Add `username` column:

```sql
ALTER TABLE public.user
ADD COLUMN username TEXT NOT NULL UNIQUE;
```

```
pnpm test-psql
```

```shell
PSQL_DATABASE_URL="" # database url
```

### MySQL

Add `username` column:

```sql
ALTER TABLE user
ADD COLUMN username VARCHAR(31) NOT NULL UNIQUE AFTER id;
```

```shell
MYSQL_DATABASE="" # database name
MYSQ_PASSWORD="" # password
```

```
pnpm test-mysql-main
```

### SQLITE

Add `username` column:

```sql
ALTER TABLE user ADD COLUMN username VARCHAR(31) NOT NULL;
CREATE UNIQUE INDEX username ON user(username);
```

```
pnpm test-sqlite-main
```
npm package: @lucia-auth/adapter-mongodb
Description: MongoDB adapter for Lucia
Author: pilcrowonpaper
Latest version: 1.0.3
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-mongodb`

[MongoDB](https://mongodb.com) adapter for Lucia. Can also be used with [Mongoose](https://github.com/Automattic/mongoose).

**[Documentation](https://v3.lucia-auth.com/database/mongodb)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-mongodb/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-mongodb
pnpm add @lucia-auth/adapter-mongodb
yarn add @lucia-auth/adapter-mongodb
```

## Testing

Add MongoDB url to `MONGODB_URL` env var.

```
pnpm test
```
npm package: @lucia-auth/adapter-mysql
Description: MySQL adapter for Lucia
Author: pilcrowonpaper
Latest version: 3.0.2
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-mysql`

MySQL adapter for Lucia.

**[Documentation](https://v3.lucia-auth.com/database/mysql#schema)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-mysql/CHANGELOG.md)**

## Supported drivers

-   [`mysql2`](https://github.com/sidorares/node-mysql2)
-   [Planetscale serverless driver](https://github.com/planetscale/database-js)

## Installation

```
npm install @lucia-auth/adapter-postgresql
pnpm add @lucia-auth/adapter-postgresql
yarn add @lucia-auth/adapter-postgresql
```

## Testing

Set MySQL database name and password in `.env`:

```bash
MYSQL2_DATABASE=""
MYSQL2_PASSWORD=""
```

### `mysql2`

```
pnpm test.mysql2
```

### `@planetscale/database`

Set up env var:

```bash
PLANETSCALE_HOST=""
PLANETSCALE_USERNAME=""
PLANETSCALE_PASSWORD=""
```

Run:

```
pnpm test.planetscale
```
npm package: @lucia-auth/adapter-postgresql
Description: PostgreSQL adapter for Lucia
Author: pilcrowonpaper
Latest version: 3.1.2
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-postgresql`

PostgreSQL adapter for Lucia.

**[Documentation](https://v3.lucia-auth.com/database/postgresql)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-postgresql/CHANGELOG.md)**

## Supported drivers

-   [node-postgres (`pg`)](https://github.com/brianc/node-postgres)
-   [Postgres.js (`postgres`)](https://github.com/porsager/postgres)
-   [Neon HTTP serverless driver](https://github.com/neondatabase/serverless)

## Installation

```
npm install @lucia-auth/adapter-postgresql
pnpm add @lucia-auth/adapter-postgresql
yarn add @lucia-auth/adapter-postgresql
```

## Testing

### node-postgres

Set PostgreSQL database connection url in `.env`:

```bash
POSTGRES_DATABASE_URL="postgresql://localhost/lucia"
```

```
pnpm test.node-postgres
```

### Postgres.js

Set PostgreSQL database connection url in `.env`:

```bash
POSTGRES_DATABASE_URL="postgresql://localhost/lucia"
```

```
pnpm test.postgresjs
```

### Neon HTTP

Set the connection URL in `.env`. Do not enable pooling.

```bash
NEON_CONNECTION_URL=""
```

```
pnpm test.neon-http
```
npm package: @lucia-auth/adapter-prisma
Description: Prisma adapter for Lucia
Author: pilcrowonpaper
Latest version: 4.0.1
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-prisma`

[Prisma](https://www.prisma.io) adapter for Lucia.

**[Documentation](https://v3.lucia-auth.com/database/prisma)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-prisma/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-prisma
pnpm add @lucia-auth/adapter-prisma
yarn add @lucia-auth/adapter-prisma
```

## Testing

```
pnpm test-setup
pnpm test
```
npm package: @lucia-auth/adapter-session-redis
Description: Redis session adapter for Lucia
Author: pilcrowonpaper
Latest version: 2.1.2
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-session-redis`

Redis session adapters for Lucia v2.

**[Lucia documentation](https://lucia-auth.com)**

**[Documentation](https://lucia-auth.com/reference#lucia-authadapter-session-redis)**

## Included adapters

- [Redis](https://redis.io) ([Documentation](https://v2.lucia-auth.com/database-adapters/redis))
- [Upstash](https://upstash.com) ([Documentation](https://v2.lucia-auth.com/database-adapters/upstash-redis))

## Installation

```
npm install @lucia-auth/adapter-session-redis
```

## Testing

### Redis

Add the port of a local Redis DB to `.env`.

```
pnpm test.redis
```

### Upstash

Add the `UPSTASH_REDIS_REST_URL` and the `UPSTASH_REDIS_REST_TOKEN` to `.env`.

```
pnpm test.upstash
```
npm package: @lucia-auth/adapter-session-unstorage
Description: Unstorage session adapter for Lucia
Latest version: 2.1.0
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-session-storage`

[Unstorage](https://github.com/unjs/unstorage) session adapter for Lucia v2.

**[Documentation](https://lucia-auth.com/reference#lucia-authadapter-session-unstorage)**

**[Lucia documentation](https://lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/session-adapter-storage/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-session-unstorage
```

## Testing

```
pnpm test
```
npm package: @lucia-auth/adapter-sqlite
Description: SQLite adapter for Lucia
Author: pilcrowonpaper
Latest version: 3.0.2
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-sqlite`

SQLite adapter for Lucia.

**[Documentation](https://v3.lucia-auth.com/database/sqlite)**

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-sqlite/CHANGELOG.md)**

## Supported drivers

-   [`better-sqlite3`](https://github.com/WiseLibs/better-sqlite3)
-   [`bun:sqlite`](https://bun.sh/docs/api/sqlite)
-   [Cloudflare D1](https://developers.cloudflare.com/d1/)
-   [libSQL](https://github.com/libsql/libsql) (Turso)

## Installation

```
npm install @lucia-auth/adapter-sqlite
pnpm add @lucia-auth/adapter-sqlite
yarn add @lucia-auth/adapter-sqlite
```

## Testing

### `better-sqlite3`

```
pnpm test.better-sqlite3
```

### Bun SQLite

```
pnpm test.bun-sqlite
```

### Cloudflare D1

```
pnpm test.d1
```

### libSQL

```
pnpm test.libsql
```
npm package: @lucia-auth/adapter-supabase
Description: Supabase adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.3.0
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/adapter-supabase`

[Supabase](https://supabase.com) adapter for Lucia

**[Documentation](https://lucia-auth.vercel.app/learn/adapters/supabase)**

**[Lucia documentation](https://lucia-auth.vercel.app)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia-auth/blob/main/packages/adapter-supabase/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/adapter-supabase
```

## Lucia version compatibility

| Supabase adapter version | Lucia version |
| ------------------------ | ------------- |
| 0.1.x                    | 0.1.x ~ 0.3.x |
| 0.2.x                    | 0.4.x         |
| 0.3.x                    | 0.5.x         |

## Testing

Add a postgresql database url to `.env`.

```
npm run test
```
npm package: @lucia-auth/adapter-test
Description: Testing module for Lucia database adapters
Author: pilcrowonpaper
Latest version: 5.0.2
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# Tests for Lucia adapters

Testing module for Lucia database adapters.

**[Lucia documentation](https://v3.lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/adapter-test/CHANGELOG.md)**

## Installation

```
npm i -D @lucia-auth/adapter-test
pnpm add -D @lucia-auth/adapter-test
yarn add -D @lucia-auth/adapter-test
```
npm package: @lucia-auth/astro
Description: Lucia integration for Astro
Author: pilcrowonpaper
Latest version: 0.5.7
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# @lucia-auth/astro

[Astro](https://astro.build) integration for Lucia

**[Documentation](https://lucia-auth.com/astro/start-here/getting-started)**

**[Lucia documentation](https://lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/astro/CHANGELOG.md)**

## Installation

```bash
npm i @lucia-auth/astro
pnpm add @lucia-auth/astro
yarn add @lucia-auth/astro
```
npm package: @lucia-auth/express
Description: Lucia integration for Express
Author: pilcrowonpaper
Latest version: 0.1.2
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# `@lucia-auth/express`

[Express](https://expressjs.com) integration for Lucia 

**[Documentation](https://lucia-auth.vercel.app/express/start-here/getting-started)**

**[Lucia documentation](https://lucia-auth.vercel.app)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia-auth/blob/main/packages/express/CHANGELOG.md)**

## Installation

```bash
npm install lucia-auth
pnpm add lucia-auth
yarn add lucia-auth
```
npm package: @lucia-auth/nextjs
Description: Lucia integration for Next.js
Author: pilcrowonpaper
Latest version: 0.5.7
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# @lucia-auth/nextjs

[Next.js](https://nextjs.org) integration for Lucia

**[Documentation](https://lucia-auth.com/nextjs/start-here/getting-started)**

**[Lucia documentation](https://lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/nextjs/CHANGELOG.md)**

## Installation

```bash
npm i @lucia-auth/nextjs
pnpm add @lucia-auth/nextjs
yarn add @lucia-auth/nextjs
```
npm package: @lucia-auth/oauth
Description: OAuth integration for Lucia
Author: pilcrowonpaper
Latest version: 3.5.3
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# @lucia-auth/oauth

OAuth integration for Lucia v2.

**[Documentation](https://lucia-auth.com/oauth)**

**[Lucia documentation](https://lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/oauth/CHANGELOG.md)**

## Installation

```bash
npm i @lucia-auth/oauth
pnpm add @lucia-auth/oauth
yarn add @lucia-auth/oauth
```
npm package: @lucia-auth/session-adapter-redis
Description: Redis session adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.3.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# `@lucia-auth/session-adapter-redis`

[Redis](https://redis.io) session adapter for Lucia

**[Documentation](https://lucia-auth.vercel.app/learn/adapters/redis)**

**[Lucia documentation](https://lucia-auth.vercel.app)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia-auth/blob/main/packages/session-adapter-redis/CHANGELOG.md)**

## Installation

```
npm install @lucia-auth/session-adapter-redis
```

## Lucia version compatibility

| Redis adapter version | Lucia version |
| --------------------- | ------------- |
| 0.1.x                 | 0.1.x ~ 0.3.x |
| 0.2.x                 | 0.4.x ~ 0.5.x |
| 0.3.x                 | 0.6.x         |

## Testing

Add a postgresql database url to `.env`.

```
npm run test
```
npm package: @lucia-auth/sveltekit
Description: SvelteKit integration for Lucia
Author: pilcrowonpaper
Latest version: 0.6.11
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# @lucia-auth/sveltekit

[SvelteKit](https://kit.svelte.dev) integration for Lucia

**[Documentation](https://lucia-auth.com/sveltekit/start-here/getting-started)**

**[Lucia documentation](https://lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/sveltekit/CHANGELOG.md)**

## Installation

```bash
npm i @lucia-auth/sveltekit
pnpm add @lucia-auth/sveltekit
yarn add @lucia-auth/sveltekit
```
npm package: @lucia-auth/tokens
Description: Tokens integration for Lucia
Author: pilcrowonpaper
Latest version: 1.0.2
Deprecated: This package has been deprecated. Please see https://lucia-auth.com/lucia-v3/migrate.

# @lucia-auth/oauth

OAuth integration for Lucia.

**[Documentation](https://lucia-auth.com/tokens/start-here/introduction)**

**[Lucia documentation](https://lucia-auth.com)**

**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/integartion-tokens/CHANGELOG.md)**

## Installation

```bash
npm i @lucia-auth/tokens
pnpm add @lucia-auth/tokens
yarn add @lucia-auth/tokens
```

## Lucia version compatibility

| Oauth package version | Lucia version |
| --------------------- | ------------- |
| 0.1.x                 | 0.9.x         |
npm package: @lucia-sveltekit/adapter-appwrite
Description: AppWrite adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.1.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Supabase adapter for AppWrite

Adapter documentation: https://lucia-sveltekit.vercel.app/adapters/appwrite

Lucia documentation: https://lucia-sveltekit.vercel.app

## Installation

```
npm install @lucia-sveltekit/adapter-appwrite
```

## Testing

Configure the following:

```ts
const projectId = "";
const apiKey = "";
const databaseId = "";
const userCollectionId = "";
const refreshTokenCollectionId = "";
```

and run:

```
npm run test
```
npm package: @lucia-sveltekit/adapter-couchdb
Description: CouchDB adapter for Lucia using nano
Author: TazorDE
Latest version: 0.1.2

# CouchDB adapter for Lucia

Adapter documentation: https://lucia-sveltekit.vercel.app/adapters/couchdb

Lucia documentation: https://lucia-sveltekit.vercel.app

## Installation

```
npm install @lucia-sveltekit/adapter-couchdb
```

## Testing

Add a couchdb url to `url`.
A couchdb url looks like this:
`http://user:password@127.0.0.1:5984`

```
npm run test
```
npm package: @lucia-sveltekit/adapter-mongoose
Description: Mongoose (MongoDB) adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.10.0

# Mongoose (MongoDB) adapter for Lucia

Adapter documentation: https://lucia-sveltekit.vercel.app/learn/adapters/mongoose

Lucia documentation: https://lucia-sveltekit.vercel.app

## Installation

```
npm install @lucia-sveltekit/adapter-mongoose
pnpm install @lucia-sveltekit/adapter-mongoose
yarn add @lucia-sveltekit/adapter-mongoose
```

## Lucia version compatibility

| Mongoose adapter version | Lucia version |
| ------------------------ | ------------- |
| v0.5.x                   | v0.14.3+      |
| v0.4.x                   | v0.13.0+      |

## Testing

Add MongoDB url to `url`.

```
npm run test
```
npm package: @lucia-sveltekit/adapter-prisma
Description: Prisma adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.10.0

# Prisma adapter for Lucia

Adapter documentation: https://lucia-sveltekit.vercel.app/learn/adapters/prisma

Lucia documentation: https://lucia-sveltekit.vercel.app

## Installation

```
npm install @lucia-sveltekit/adapter-prisma
pnpm add @lucia-sveltekit/adapter-prisma
yarn add @lucia-sveltekit/adapter-prisma
```

## Lucia version compatibility

| Prisma adapter version | Lucia version |
| ---------------------- | ------------- |
| v0.7.x                 | v0.14.3+      |
| v0.6.x                 | v0.13.0+      |

## Testing

Add a postgresql database url to `.env`.

```
npm run test
```
npm package: @lucia-sveltekit/adapter-supabase
Description: Supabase adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.10.1

# Supabase adapter for Lucia

Adapter documentation: https://lucia-sveltekit.vercel.app/learn/adapters/supabase

Lucia documentation: https://lucia-sveltekit.vercel.app

## Installation

```
npm install @lucia-sveltekit/adapter-supabase
```

## Lucia version compatibility

| Supabase adapter version | Lucia version |
| ------------------------ | ------------- |
| v0.7.x                   | v0.14.3+      |
| v0.6.x                   | v0.13.0+      |

## Testing

Add a postgresql database url to `.env`.

```
npm run test
```
npm package: @lucia-sveltekit/adapter-test
Description: Tests for adapters for Lucia
Author: pilcrowonpaper
Latest version: 0.10.2

# Tests for adapters for Lucia

Provides tests for creating adapters for Lucia.

```ts
interface Database {
    getRefreshTokens: () => Promise<RefreshTokensSchema[]>;
    getUsers: () => Promise<UsersSchema[]>;
    clearRefreshTokens: () => Promise<void>;
    clearUsers: () => Promise<void>;
    insertRefreshToken: (data: RefreshTokensSchema) => Promise<void>;
    insertUser: (data: UsersSchema) => Promise<void>;
}

interface UsersSchema {
    id: string;
    identifier_token: string;
    hashed_password: string | null;
    username: string; // unique, string
    email: string; // unique, string
}

interface RefreshTokensSchema {
    refresh_token: string;
    user_id: string;
}
```

```ts
import { testAdapter } from "@lucia-sveltekit/adapter-test"
import type { Adapter } from "lucia-sveltekit/types"

const db: Database
const adapter: Adapter

testAdapter(adapter, db)
```
npm package: @lucia-sveltekit/session-adapter-redis
Description: Redis session adapter for Lucia
Author: pilcrowonpaper
Latest version: 0.10.0

# Redis session adapter for Lucia

Adapter documentation: https://lucia-sveltekit.vercel.app/learn/adapters/supabase

Lucia documentation: https://lucia-sveltekit.vercel.app

## Installation

```
npm install @lucia-sveltekit/session-adapter-redis
```

## Lucia version compatibility

| Session adapter version | Lucia version |
| ----------------------- | ------------- |
| v0.2.x                  | v0.14.3+      |
| v0.1.x                  | v0.13.1+      |

## Testing

Add a postgresql database url to `.env`.

```
npm run test
```
npm package: @lucianaib/codemind-mcp
Description: CodeMind MCP server integrating GitCode API and Coze workflow to generate a mind map link for a project
Latest version: 3.0.0

# CodeMind MCP

一个 MCP（Model Context Protocol）服务器，通过自动化流程帮助用户快速理解代码仓库并生成思维导图。

## 背景
是不是老是忘记git命令？
- 本MCP 可以用于管理仓库、拉取请求、问题等。

**得到一个项目是不是看不懂项目？**
- **本MCP会作为一个专业的架构师，帮助你快速理解代码仓库并生成思维导图**。

## 核心功能

1.  **`gitcode_request`**: 通用的 GitCode API 调用工具，用于管理仓库、拉取请求、问题等。
2.  **`mindmap`**: 读取当前目录及其子目录中的所有 README.md 文件，生成思维导图：
    *   递归查找并收集所有 README.md 文件
    *   合并文件内容并调用 Coze 工作流生成思维导图
    *   返回思维导图公开访问链接

## 安装与使用

**环境要求**: Node.js >= 18.x

### 全局安装
```bash
npm install -g @lucianaib/codemind-mcp
codemind-mcp
```

### 在 MCP 客户端中配置
```json
{
  "mcpServers": {
    "CodeMind": {
      "command": "npx",
      "args": ["@lucianaib/codemind-mcp"]
    }
  }
}
```

![CodeBuddy 配置成功示例.png](src\CodeBuddy 配置成功示例.png)
## 工具调用参数

### `gitcode_request`
- **baseUrl**: string (可选)，如 `https://api.gitcode.com`
- **token**: string，鉴权令牌（支持 `Bearer <token>` 或纯 token）
- **method**: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
- **path**: string，如 `/v1/repos`
- **query**: Record<string, unknown> (可选)
- **body**: Record<string, unknown> (可选)
- **headers**: Record<string, string> (可选)

![拉取项目示例.png](src\拉取项目示例.png)

### `mindmap`
- **prompt**: string (可选)，用于自定义生成思维导图的提示词

![思维导图示例.png](src\思维导图示例.png)

## 开发与代码结构

- `src/index.ts`: MCP 服务器入口，使用 `McpServer` 注册工具
- `src/gitcode.ts`: GitCode API 的通用请求封装
- `src/mindmap.ts`: README.md 文件收集及调用 Coze API 的核心逻辑

## 安全提示

**重要**: Coze API 凭证目前硬编码在 `src/mindmap.ts` 中，存在安全风险。生产环境请移至环境变量。

## 许可证

本项目采用 MIT 许可证。详见 [LICENSE](./LICENSE) 文件。
npm package: @lucianaib/mind-map-mcp
Description: 一个用于生成思维导图的 MCP 服务器
Author: lucianaib
Latest version: 3.0.0

# mind-map-mcp

一个用于生成思维导图的 MCP (Model Context Protocol) 服务器。

## 功能特性

- 🧠 根据文本内容自动生成思维导图
- 🔗 返回可访问的思维导图图片链接
- 🚀 支持 CodeBuddy、Cursor、Qoder 等 MCP 客户端
- 🌐 基于 Coze API 的强大思维导图生成能力

## 创新点
首次使用 Coze 作为核心工作流制作MCP：
- 无需考虑报错。报错可以直接通过 Coze 找到对应原因
- 逻辑处理。可以任意修改 Coze 的工作流，更新发布即可，无需重新修改mcp
- 已于维护

## 安装

### 通过 NPM 安装

```bash
npm install -g @lucianaib/mind-map-mcp
```

### 通过 npx 直接使用

```bash
npx @lucianaib/mind-map-mcp
```

## 配置

### 在 CodeBuddy、 Qoder中配置

1. 打开 CodeBuddy 设置
2. 找到 MCP 服务器配置
3. 添加新的服务器：

```json
{
  "mcpServers": {
    "mind-map": {
      "command": "npx",
      "args": ["@lucianaib/mind-map-mcp"]
    }
  }
}
```

![CodeBuddy 配置成功示例.png](src\CodeBuddy 配置成功示例.png)

### 在 Cursor 中配置

1. 打开 Cursor 设置 (Ctrl/Cmd + ,)
2. 搜索 "MCP"
3. 在 MCP 服务器配置中添加：

```json
{
  "mind-map": {
    "command": "npx",
    "args": ["@lucianaib/mind-map-mcp"]
  }
}
```

## 使用方法

配置完成后，你可以在支持 MCP 的工具中使用以下功能：

### 生成思维导图

```
用 MCP 帮我生成一个关于"分布式系统架构"的思维导图
```

![实战生成思维导图.png](src\实战生成思维导图.png)

或者直接调用工具：

```
使用 generate_mindmap 工具，内容为："机器学习的基本概念和应用"
```

## 可用工具

### generate_mindmap

根据输入内容生成思维导图。

**参数：**
- `content` (string, 必需): 要转换为思维导图的内容描述

**返回：**
- 思维导图的图片链接
- 生成状态信息

## 开发

### 本地开发

1. 克隆仓库：
```bash
git clone https://github.com/lfrbmw/Mind-map-mcp.git
cd Mind-map-mcp
```

2. 安装依赖：
```bash
npm install
```

3. 构建项目：
```bash
npm run build
```

4. 启动开发模式：
```bash
npm run dev
```

### 项目结构

```
Mind-map-mcp/
├── src/
│   └── index.ts          # 主要的 MCP 服务器代码
├── dist/                 # 编译后的 JavaScript 文件
├── package.json          # 项目配置
├── tsconfig.json         # TypeScript 配置
└── README.md            # 项目说明
```

## API 说明

本工具使用 Coze API 来生成思维导图。API 详情：

- **端点**: `https://api.coze.cn/v1/workflow/run`
- **方法**: POST
- **认证**: Bearer Token
- **返回**: 思维导图图片链接

## 故障排除

### 常见问题

1. **"未知工具" 错误**
   - 确保 MCP 服务器正确配置
   - 检查工具名称是否正确 (`generate_mindmap`)

2. **API 请求失败**
   - 检查网络连接
   - 确认 API 服务状态

3. **中文编码问题**
   - 本工具已处理中文编码，支持中文内容输入

### 调试模式

启动时会在 stderr 输出调试信息，可以通过查看日志来诊断问题。

## 许可证

MIT License

## 贡献

欢迎提交 Issue 和 Pull Request！
npm package: @lucianaib/selling-points-generation
Description: 根据抖音商品评论生成卖点分析的 MCP 插件
Author: lucianaib
Latest version: 1.0.14

# @lucianaib/selling-points-generation

根据抖音商品评论生成卖点分析的 MCP 插件。

## 安装

```bash
npm install -g @lucianaib/selling-points-generation
```

## MCP 配置

在 Claude/Cursor 中使用时，需要配置 mcp.json 文件：

```json
{
  "mcpServers": {
    "selling-points-generation": {
      "command": "npx",
      "args": ["@lucianaib/selling-points-generation"]
    }
  }
}
```

## 使用示例

### MCP 服务器使用

在 Claude/Cursor 中配置后，可以直接使用 `generate_selling_points` 工具：

```
请分析以下商品评论的卖点：
这个产品真的太好了，质量非常好，价格也很实惠。
```

### 命令行工具使用

如果您想直接使用命令行工具，可以通过以下方式：

```bash
# 直接输入文本
npx @lucianaib/selling-points-generation --text "这个产品真的太好了，质量非常好，价格也很实惠。"

# 从文件读取
npx @lucianaib/selling-points-generation --file comments.txt

# 使用标准输入
echo "这个产品真的太好了，质量非常好，价格也很实惠。" | npx @lucianaib/selling-points-generation
```

### 输出示例

```
=== 卖点分析结果 ===
- **🔥 核心优势维度**        
    - 品质：质量非常好+评论中提到"质量非常好"
    - 性价比：价格实惠+评论中提到"价格也很实惠"
  - **💡 总结**：该商品质量好，且价格实惠，具有较高的性价比。
```

- API 调用需要网络连接

## 开发

```bash
# 安装依赖
npm install

# 运行测试
npm test
```

## 许可证

MIT
npm package: @lucianfialho/hooklaw-cli
Description: CLI for HookLaw — webhook orchestrator with AI agents and MCP tools
Latest version: 3.0.1

# @lucianfialho/hooklaw-cli

CLI for [HookLaw](https://github.com/lucianfialho/hooklaw) — event-driven AI agents with native MCP tools.

## Commands

### `hooklaw start`

Start the HookLaw server. If no `hooklaw.config.yaml` exists, launches an interactive setup wizard in your browser.

```bash
hooklaw start
hooklaw start --verbose    # enable debug logging
hooklaw start --port 4000  # custom port
```

### `hooklaw init`

Create a starter `hooklaw.config.yaml` in the current directory.

```bash
hooklaw init
```

### `hooklaw doctor`

Diagnose your HookLaw setup — checks config, providers, MCP servers, and database.

```bash
hooklaw doctor
```

## Install

Usually installed via the main `hooklaw` package:

```bash
npm install -g hooklaw
```

Or standalone:

```bash
npm install @lucianfialho/hooklaw-cli
```

## License

MIT
npm package: @lucianfialho/hooklaw-provider-anthropic
Description: Anthropic provider for HookLaw
Latest version: 3.0.1

# @lucianfialho/hooklaw-provider-anthropic

Anthropic LLM provider for [HookLaw](https://github.com/lucianfialho/hooklaw).

## Supported Models

All Claude models via the Anthropic API: Claude Opus, Sonnet, Haiku.

## Configuration

```yaml
providers:
  anthropic:
    api_key: ${ANTHROPIC_API_KEY}
```

## Install

```bash
npm install @lucianfialho/hooklaw-provider-anthropic
```

## Usage

```typescript
import { registerAnthropicProvider } from '@lucianfialho/hooklaw-provider-anthropic';

registerAnthropicProvider();
```

Auto-registered when using the main `hooklaw` package.

## License

MIT
npm package: @lucianfialho/hooklaw-provider-openai
Description: OpenAI, OpenRouter, and Ollama providers for HookLaw
Latest version: 3.0.1

# @lucianfialho/hooklaw-provider-openai

OpenAI-compatible LLM provider for [HookLaw](https://github.com/lucianfialho/hooklaw).

Supports OpenAI, OpenRouter, Ollama, and any OpenAI-compatible API.

## Supported Services

| Service | Config key | Notes |
|---------|-----------|-------|
| **OpenAI** | `openai` | GPT models, set `api_key` |
| **OpenRouter** | `openrouter` | Multi-model gateway, set `api_key` and `base_url` |
| **Ollama** | `ollama` | Local models, set `base_url: http://localhost:11434/v1` |

## Configuration

```yaml
providers:
  openai:
    api_key: ${OPENAI_API_KEY}

  ollama:
    base_url: http://localhost:11434/v1
```

## Install

```bash
npm install @lucianfialho/hooklaw-provider-openai
```

## Usage

```typescript
import { registerOpenAIProvider } from '@lucianfialho/hooklaw-provider-openai';

registerOpenAIProvider();
```

Auto-registered when using the main `hooklaw` package.

## License

MIT
npm package: @lucianlavric/suntheme
Description: Switch Ghostty and Neovim themes based on sunrise/sunset times
Author: Luka Lavric
Latest version: 0.1.1
Deprecated: Use Homebrew instead: brew install lucianlavric/tap/suntheme

# suntheme

Automatically switch Ghostty and Neovim themes based on sunrise/sunset times.

## Installation

```bash
npm install -g @lucianlavric/suntheme
```

## Quick Start

```bash
# Initial setup - configures location and themes
suntheme init

# Start automatic theme switching daemon
suntheme start
```

## Commands

| Command | Description |
|---------|-------------|
| `suntheme init` | Interactive setup for location and themes |
| `suntheme start` | Start daemon for automatic switching |
| `suntheme stop` | Stop the daemon |
| `suntheme status` | Show daemon status and current theme |
| `suntheme toggle` | Toggle between light/dark |
| `suntheme set <light\|dark>` | Set specific mode |
| `suntheme sun` | Display today's sunrise/sunset times |
| `suntheme themes` | Change theme configuration |

## More Info

See the [GitHub repo](https://github.com/lucianlavric/suntheme) for full documentation.

## License

MIT