Plugins Reference
Plugins Reference
Section titled “Plugins Reference”Jac extends its capabilities through a plugin ecosystem. These plugins provide AI integration, full-stack web development, and cloud-native deployment features.
Core Plugins
Section titled “Core Plugins”| Plugin | Description | Install |
|---|---|---|
| byLLM | AI/LLM integration with Meaning-Typed Programming | pip install byllm |
| jac-client | Full-stack web development with React-style components | pip install jac-client |
| jac-scale | Cloud-native deployment and scaling | pip install jac-scale |
Quick Installation
Section titled “Quick Installation”Install all plugins via the jaseci meta-package:
pip install jaseciThis bundles jaclang with all official plugins. Or install individually:
pip install byllm # AI integrationpip install jac-client # Frontend developmentpip install jac-scale # Production deploymentPlugin Overview
Section titled “Plugin Overview”Implements Meaning-Typed Programming (MTP) for seamless AI integration:
import from byllm.lib { Model }
glob llm = Model(model_name="gpt-4o");
"""Translate text to the target language."""def translate(text: str, language: str) -> str by llm();jac-client
Section titled “jac-client”Build React-style web applications in Jac:
cl { def:pub Counter() -> JsxElement { has count: int = 0;
return <div> <p>Count: {count}</p> <button onClick={lambda -> None { count = count + 1; }}> Increment </button> </div>; }}jac-scale
Section titled “jac-scale”Deploy and scale Jac applications:
# Start API serverjac start app.jac
# Deploy to Kubernetesjac scale deploy --replicas 3Plugin Architecture
Section titled “Plugin Architecture”Jac uses a pluggy-based plugin system that allows extending the compiler and runtime:
- Compiler plugins - Transform Jac code during compilation
- Runtime plugins - Add runtime capabilities (APIs, storage, etc.)
- Bundler plugins - Customize build and bundling behavior
Creating Plugins
Section titled “Creating Plugins”See the Contributing Guide for information on creating custom plugins.