Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

632 B
Raw Blame

@janhq/core

This module includes functions for communicating with core APIs, the extension host's internal context for built-ins, and type definitions.

Usage

Import the package

// Web / extension runtime
import * as core from '@janhq/core'

Build an Extension

Extensions no longer extend a base class from this package. A third-party extension exports activate(ctx) against the stable API in @janhq/extension-api and runs in a worker; start from extensions-samples/hello-provider. Built-ins in extensions/ receive the InternalExtensionContext exported here. See extensions/CONTRIBUTING.md.