From b37a414a1cd838b7e03502006fe61702c01ba8de Mon Sep 17 00:00:00 2001 From: lightchainaidev Date: Fri, 9 Oct 2026 17:35:42 +0200 Subject: [PATCH] Publish as @lightchainai/sdk, with the repository linked --- README.md | 8 ++++---- package-lock.json | 4 ++-- package.json | 6 +++++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ceb42d4..6d5555c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# @lightchain/sdk +# @lightchainai/sdk The LightChain AI Developer API for TypeScript: it runs an API key against the right network, and, given a wallet, pays a `402` by itself. Completions go through the OpenAI SDK: the Developer API is OpenAI-compatible. ```sh -npm install @lightchain/sdk openai +npm install @lightchainai/sdk openai ``` ## 1. Create a key in the chat: Developer → API keys @@ -14,7 +14,7 @@ The chat's Developer page (`/developer`) creates your API keys and lists them. A ```ts import OpenAI from "openai"; -import { Lightchain } from "@lightchain/sdk"; +import { Lightchain } from "@lightchainai/sdk"; const lc = new Lightchain({ network: "testnet", apiKey: process.env.LIGHTCHAIN_API_KEY! }); const openai = new OpenAI({ baseURL: lc.baseURL, apiKey: lc.apiKey, fetch: lc.fetch }); @@ -61,7 +61,7 @@ With `payment: "x402"`, the SDK pays each call from the account's own prepaid ba ```ts import OpenAI from "openai"; import { privateKeyToAccount } from "viem/accounts"; -import { Lightchain, type LightchainJob } from "@lightchain/sdk"; +import { Lightchain, type LightchainJob } from "@lightchainai/sdk"; const lc = new Lightchain({ network: "testnet", diff --git a/package-lock.json b/package-lock.json index ae8b8de..1866db7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@lightchain/sdk", + "name": "@lightchainai/sdk", "version": "0.1.0-alpha.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@lightchain/sdk", + "name": "@lightchainai/sdk", "version": "0.1.0-alpha.0", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index b285d6f..5420b4a 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,12 @@ { - "name": "@lightchain/sdk", + "name": "@lightchainai/sdk", "version": "0.1.0-alpha.0", "description": "The LightChain AI Developer API with an API key, through the OpenAI SDK; a wallet can top up on a 402 by itself, or pay per request with x402.", "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/lightchain-protocol/lightchain-sdk.git" + }, "type": "module", "exports": { ".": {