Skip to content

Commit 55b964a

Browse files
zhawtofclaude
andcommitted
chore: rename to @tightknit/slack-block-kit-validator
Scoped npm name so future Tightknit OSS packages share a namespace. GitHub repo name (slack-block-kit-validator) stays the same. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d423b0a commit 55b964a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# slack-block-kit-validator
22

33
[![CI](https://github.com/TightknitAI/slack-block-kit-validator/actions/workflows/ci.yml/badge.svg)](https://github.com/TightknitAI/slack-block-kit-validator/actions/workflows/ci.yml)
4-
[![npm version](https://img.shields.io/npm/v/slack-block-kit-validator.svg)](https://www.npmjs.com/package/slack-block-kit-validator)
4+
[![npm version](https://img.shields.io/npm/v/@tightknit/slack-block-kit-validator.svg)](https://www.npmjs.com/package/@tightknit/slack-block-kit-validator)
55
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
66

77
JSON Schema (draft 2020-12) and validation helpers for Slack Block Kit JSON. Catches invalid block payloads before Slack silently swallows them.
@@ -15,15 +15,15 @@ This package compiles every rule in <https://docs.slack.dev/reference/block-kit>
1515
## Install
1616

1717
```sh
18-
pnpm add slack-block-kit-validator
18+
pnpm add @tightknit/slack-block-kit-validator
1919
```
2020

2121
Node 20+. No runtime peer dependencies.
2222

2323
## Quick start
2424

2525
```ts
26-
import { validateBlockKit } from "slack-block-kit-validator";
26+
import { validateBlockKit } from "@tightknit/slack-block-kit-validator";
2727

2828
const blocks = [
2929
{ type: "section", text: { type: "mrkdwn", text: "Hello *world*" } },
@@ -80,22 +80,22 @@ import {
8080
checkSingleTableBlock,
8181
checkFocusOnLoadUniqueness,
8282
checkSurfaceCompatibility,
83-
} from "slack-block-kit-validator";
83+
} from "@tightknit/slack-block-kit-validator";
8484
```
8585

8686
### Using the raw JSON Schema
8787

8888
Consuming from another validator, another language, or an OpenAPI spec:
8989

9090
```ts
91-
import { slackBlockKitSchema } from "slack-block-kit-validator";
91+
import { slackBlockKitSchema } from "@tightknit/slack-block-kit-validator";
9292

9393
// With Ajv in a custom config
9494
const ajv = new Ajv2020({ strict: false, allErrors: true });
9595
const validate = ajv.compile(slackBlockKitSchema);
9696
```
9797

98-
The schema uses `$defs` for every block, element, composition object, rich-text leaf, and view envelope, so non-JS consumers can also import the JSON (`slack-block-kit-validator/schema.json`) and pick the subset they need.
98+
The schema uses `$defs` for every block, element, composition object, rich-text leaf, and view envelope, so non-JS consumers can also import the JSON (`@tightknit/slack-block-kit-validator/schema.json`) and pick the subset they need.
9999

100100
## API reference
101101

@@ -161,7 +161,7 @@ Ajv v8 + ajv-formats weigh ~50–60 KB gzipped, which is fine for Node test runs
161161

162162
```sh
163163
pnpm dlx ajv compile --spec=draft2020 --strict=false -c ajv-formats \
164-
-s node_modules/slack-block-kit-validator/dist/slack-block-kit.schema.json \
164+
-s node_modules/@tightknit/slack-block-kit-validator/dist/slack-block-kit.schema.json \
165165
-o standalone-validator.js
166166
```
167167

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "slack-block-kit-validator",
2+
"name": "@tightknit/slack-block-kit-validator",
33
"version": "0.1.0-alpha.0",
44
"description": "JSON Schema (draft 2020-12) and validation helpers for Slack Block Kit payloads.",
55
"type": "module",

0 commit comments

Comments
 (0)