open-index/open-npm huggingface dataset:
npm package: @sedrino/drizzle
Description: Utilities for using Temporal with Drizzle (SQLite for now).
Latest version: 0.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @sedrino/drizzle

Utilities for using Temporal with Drizzle (SQLite for now).

## Docs

- `docs/sqlite.md` - SQLite + Drizzle best practices (and how to use this library).
- `docs/plan.md` - Proposed additions aligned with Mostica best practices.

## Install

```bash
bun add @sedrino/drizzle
```

## Usage (SQLite)

```ts
import { sqliteTable, text } from "drizzle-orm/sqlite-core";
import {
  temporalPlainDateText,
  temporalInstantEpochMs,
  temporalZonedDateTimeText,
  zonedDateTimeParts,
} from "@sedrino/drizzle/sqlite";

export const tasks = sqliteTable("tasks", {
  id: text("id").primaryKey(),
  title: text("title").notNull(),
  // You can either pass explicit DB column names (as shown here), or
  // omit them and use Drizzle `casing: "snake_case"` (see docs/sqlite.md).
  dueDate: temporalPlainDateText("due_date"),
  createdAt: temporalInstantEpochMs("created_at_ms").notNull(),
  startsAt: temporalZonedDateTimeText("starts_at"),
  // startsAt: zonedDateTimeParts("starts_at"),
});
```

## Temporal runtime

Temporal is not universally available yet. We recommend `temporal-polyfill`.

Option A: Install the global polyfill:

```ts
import "temporal-polyfill/global";
```

Option B: Inject the runtime explicitly:

```ts
import { Temporal } from "temporal-polyfill";
import { temporalPlainDateTimeText } from "@sedrino/drizzle/sqlite";

const createdAt = temporalPlainDateTimeText("created_at", { Temporal });
```

## Types

This package relies on the `temporal-polyfill` type definitions for `Temporal`.
If your app uses a different runtime, you can still use these types without
installing a polyfill globally.
npm package: @sedrino/oxlint
Description: Shared Sedrino Oxlint presets with a future-proof plugin entrypoint. This package is TS-config-first: presets are consumed from `oxlint.config.ts`.
Latest version: 0.1.1

# @sedrino/oxlint

Shared Sedrino Oxlint presets with a future-proof plugin entrypoint.
This package is TS-config-first: presets are consumed from `oxlint.config.ts`.

## Install

```bash
bun add -D @sedrino/oxlint
```

## Use with `oxlint.config.ts`

```ts
import { createConfig } from "@sedrino/oxlint";
import { defineConfig } from "oxlint";

export default defineConfig(createConfig());
```

`createConfig()` enables the `recommended` preset by default, including a test plugin rule:
- rule id: `sedrino/no-ship-it-friday`
- trigger string: `"ship it, it's Friday"`
- level: `warn`

## Presets

- `@sedrino/oxlint/presets/base`
- `@sedrino/oxlint/presets/typescript`
- `@sedrino/oxlint/presets/react`
- `@sedrino/oxlint/presets/strict`
- `@sedrino/oxlint/presets/recommended`

## Plugin roadmap

`@sedrino/oxlint/plugin` currently exports a placeholder plugin object. Keep this subpath stable and add Sedrino custom rules there later.
npm package: @sedrino/toolkit
Description: Small, composable utilities used across Sedrino projects.
Latest version: 0.1.1

# @sedrino/toolkit

Small, composable utilities used across Sedrino projects.

## Docs

- `docs/index.md` - Docs index
- `docs/auth.md` - Auth config builder + Better Auth helpers
- `docs/ids.md` - Branded IDs + router helpers
- `docs/sqlite.md` - SQLite + Drizzle best practices (Temporal + helper columns)

## Install

```bash
bun add @sedrino/toolkit
```

## Usage

```ts
import { createAuthConfig } from "@sedrino/toolkit/auth";
import { makeTextId } from "@sedrino/toolkit/ids";
import { temporalPlainDateText } from "@sedrino/toolkit/drizzle/sqlite";

const ids = {
  user: makeTextId("UserId", "user-"),
} as const;

export const authConfig = createAuthConfig({
  permissions: {
    company: ["view", "create"] as const,
  } as const,
});

export const createdAt = temporalPlainDateText("created_at");
```

For details, see `docs/index.md`.