Discover and explore top open-source AI tools and projects—updated daily.
arturoabreuhdSelf-hosted PineScript code generator with RAG and multi-LLM support
Top 76.6% on SourcePulse
A self-hosted AI code generator for TradingView's PineScript, pinescript-ai addresses the need for efficient, customizable, and secure script development. It targets PineScript developers by leveraging Retrieval-Augmented Generation (RAG) and multi-provider Large Language Model (LLM) support, offering a private, on-device solution that respects user API keys. The primary benefit is empowering developers with AI assistance without compromising data privacy or relying on external services for key management.
How It Works
The project employs a RAG architecture centered around a local BM25 search index, eliminating the need for vector databases or external embedding APIs. This index is built from PineScript v6 documentation and 285 example scripts, allowing users to customize the AI's knowledge base by adding their own Markdown docs or .pine scripts. At runtime, relevant retrieved information (function signatures, documentation chunks, example scripts) is injected into LLM prompts, grounding the AI's responses. A multi-stage validation pipeline, including static rules, an optional AST transpiler, and AI code review with auto-correction, ensures generated code quality.
Quick Start & Requirements
git clone https://github.com/arturoabreuhd/pinescript-ai.git
cd pinescript-ai
npm install
npm run dev
The application will be accessible at http://localhost:3000.localStorage. An optional AST transpiler (pine-transpiler) can be installed via npm install github:Opus-Aether-AI/pine-transpiler for enhanced validation.Highlighted Details
localStorage, ensuring they never leave the user's machine.Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), sponsorships, or roadmaps were present in the provided README.
Licensing & Compatibility
pine-transpiler dependency is AGPL-3.0 licensed, which carries strong copyleft obligations if integrated into proprietary software.Limitations & Caveats
The optional AST transpiler validation is licensed under AGPL-3.0, which may impose significant restrictions on its use within closed-source or commercial applications. Rebuilding the RAG index (npm run build-rag) is a full regeneration process and does not support incremental updates.
1 month ago
Inactive
SilasMarvin
huggingface
AntonOsika