UNPKG

huggingface-chat

Version:

A lightweight and powerful Node.js API client for Hugging Face Chat. Interact with open-source LLMs like Llama 3, Mixtral, and Gemma for conversational AI, text generation, and more. Supports ESM and CJS modules.

90 lines (89 loc) 2.51 kB
{ "name": "huggingface-chat", "version": "4.1.2", "type": "module", "description": "A lightweight and powerful Node.js API client for Hugging Face Chat. Interact with open-source LLMs like Llama 3, Mixtral, and Gemma for conversational AI, text generation, and more. Supports ESM and CJS modules.", "exports": { ".": { "import": { "types": "./lib/esm/types/index.d.ts", "default": "./lib/esm/index.mjs" }, "require": { "types": "./lib/cjs/types/index.d.ts", "default": "./lib/cjs/index.js" } } }, "types": "./lib/cjs/types/index.d.ts", "main": "./lib/cjs/index.js", "files": [ "lib/**/*", "README.md", "LICENSE" ], "scripts": { "clean": "del-cli ./lib", "build": "npm run clean && npm run build:esm && npm run build:cjs", "build:esm": "tsc -p ./config/tsconfig.esm.json && move-file lib/esm/index.js lib/esm/index.mjs", "build:cjs": "tsc -p ./config/tsconfig.cjs.json", "prepack": "npm run build", "clean:docs": "npm run clean && del-cli package-lock.json", "doc": "jsdoc2md ./lib/esm/login.js >> ./docs/login.md && jsdoc2md ./lib/esm/chat.js >> ./docs/chat.md", "test": "jest", "lint": "eslint src --ext .ts", "format": "prettier --write src/**/*.{ts,js}" }, "release": { "branches": [ "main" ] }, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "git+https://github.com/rahulsushilsharma/huggingface-chat.git" }, "keywords": [ "huggingface", "huggingface-chat", "chat-api", "llm", "conversational-ai", "ai", "machine-learning", "llama", "llama-3", "mixtral", "gemma", "typescript", "text-generation", "api-client" ], "bugs": { "url": "https://github.com/rahulsushilsharma/huggingface-chat/issues" }, "homepage": "https://github.com/rahulsushilsharma/huggingface-chat#readme", "author": "Rahul Sharma <rahu8299@gmail.com>", "license": "ISC", "devDependencies": { "@biomejs/biome": "1.9.4", "@types/jest": "^29.5.14", "@types/node": "^22.15.18", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", "del-cli": "^5.1.0", "eslint": "^9.27.0", "jest": "^29.7.0", "jsdoc-to-markdown": "^9.1.1", "move-file-cli": "^3.0.0", "semantic-release": "^24.2.4", "ts-jest": "^29.3.4", "typescript": "^5.8.3" }, "engines": { "node": ">=18.17" } }