An open API service indexing awesome lists of open source software.

https://github.com/leaferjs/ai-docs

Leafer AI: Designed for training AI to learn LeaferJS.
https://github.com/leaferjs/ai-docs

Last synced: 3 days ago
JSON representation

Leafer AI: Designed for training AI to learn LeaferJS.

Awesome Lists containing this project

README

          

English | [简体中文](./README-CN.md)


# Leafer AI

This repository provides usage examples and documentation of LeaferJS for AI systems, making it easier to generate and understand code.
It includes examples, tutorials, API references, plugin documentation, and source code.

## LeaferJS

Please note that LeaferJS can be abbreviated as **Leafer**.
Start by reading the [LeaferJS introduction](./introduction.md).

## Directory Structure

- **examples/**
Standalone, runnable examples demonstrating various features of LeaferJS.
This is the primary source for AI to learn usage patterns and best practices.

- **guide/**
Quick start and step-by-step tutorials covering common use cases, including app creation, graphics, interaction, and animation.

- **reference/**
API reference and detailed documentation.

- **plugin/**
Documentation for LeaferJS plugins and extensions.

- **src/**
Core TypeScript source code of LeaferJS, useful for understanding class structures and types.

- **update/**
Changelog and version history (optional for AI to read).

## AI Usage Guidelines

When generating LeaferJS code:

1. Prioritize simple examples in `examples/`.
2. Refer to `guide/` and `reference/` for patterns and API usage.

## Run Code Online

- Online Playground: [https://www.leaferjs.com/playground/](https://www.leaferjs.com/playground/)
- Online Examples: [https://www.leaferjs.com/examples/](https://www.leaferjs.com/examples/)

## Example Prompt

```text
Prompt: Create a draggable rectangle using Leafer.
```

## Use Directly as Skills

Download and extract this repository locally, then rename it to `leafer-skills`.

You can place it directly into the `skills` directory of tools such as Claude, Codex, etc.