open-index/open-npm huggingface dataset:
npm package: @kuratchi/auth
Description: Config-driven auth for KuratchiJS â€” credentials, OAuth, RBAC, rate limiting, Turnstile
Latest version: 0.0.1

﻿# @kuratchi/auth

Config-driven authentication for kuratchi apps.

## Install

```bash
npm install @kuratchi/auth @kuratchi/orm
```

## Main APIs

```ts
import {
  signUp,
  signIn,
  signOut,
  getCurrentUser,
  getAuth,
  logActivity,
  defineRoles,
  hasPermission,
  configureOAuth,
  startOAuth,
  handleOAuthCallback,
} from '@kuratchi/auth';
```

## Feature Areas

- Credentials auth: `signUp`, `signIn`, `signOut`, `requestPasswordReset`, `resetPassword`
- Session/auth context: `getAuth`, `getCurrentUser`
- Activity logging: `logActivity`, `getActivity`, `defineActivities`
- Roles and permissions: `defineRoles`, `hasRole`, `hasPermission`, `assignRole`
- OAuth providers: `configureOAuth`, `startOAuth`, `handleOAuthCallback`
- Guards, rate limits, Turnstile: compiler-interceptor friendly config and checks

## Notes

- Depends on `@kuratchi/orm`.
- Designed for Cloudflare Workers execution.
npm package: @kuratchi/db-studio
Description: KuratchiJS database studio â€” shared SQL browser component for D1 and SQLite databases
Latest version: 0.0.1

﻿# @kuratchi/db-studio

Reusable SQL browser component for D1/SQLite-backed admin tools.

## Install

```bash
npm install @kuratchi/db-studio
```

## Usage

```html
<script>
  import DbStudio from '@kuratchi/db-studio/src/lib/db-studio.html';
</script>
```

## Component Props

- `tables`, `activeTable`, `rows`, `columns`, `schema`
- `totalRows`, `page`, `totalPages`
- `sqlQuery`, `sqlResult`, `dbError`
- `baseHref`
- action targets: `runQueryAction`, `insertRowAction`, `updateRowAction`, `deleteRowAction`

## Notes

- Composes `@kuratchi/ui` components for layout and feedback.
- Ships as `.html` source for direct framework compilation.