{"id":28368249,"url":"https://github.com/leaferjs/ai-docs","last_synced_at":"2026-06-11T03:00:17.496Z","repository":{"id":277357051,"uuid":"931882801","full_name":"leaferjs/ai-docs","owner":"leaferjs","description":"Leafer AI: Designed for training AI to learn LeaferJS.","archived":false,"fork":false,"pushed_at":"2026-06-11T01:02:21.000Z","size":15908,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-11T02:22:12.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.leaferjs.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leaferjs.png","metadata":{"files":{"readme":"README-EN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-13T02:23:56.000Z","updated_at":"2026-06-11T00:58:23.000Z","dependencies_parsed_at":"2025-03-10T04:29:45.552Z","dependency_job_id":"129ed7cd-8e96-4315-813c-786eb025a720","html_url":"https://github.com/leaferjs/ai-docs","commit_stats":null,"previous_names":["leaferjs/ai-docs"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/leaferjs/ai-docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2Fai-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2Fai-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2Fai-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2Fai-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leaferjs","download_url":"https://codeload.github.com/leaferjs/ai-docs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2Fai-docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34180147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-29T04:09:14.070Z","updated_at":"2026-06-11T03:00:17.427Z","avatar_url":"https://github.com/leaferjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"English | [简体中文](./README-CN.md)\n\n\u003cbr/\u003e\n\n# Leafer AI\n\nThis repository provides usage examples and documentation of LeaferJS for AI systems, making it easier to generate and understand code.\nIt includes examples, tutorials, API references, plugin documentation, and source code.\n\n## LeaferJS\n\nPlease note that LeaferJS can be abbreviated as **Leafer**.\nStart by reading the [LeaferJS introduction](./introduction.md).\n\n## Directory Structure\n\n- **examples/**\n  Standalone, runnable examples demonstrating various features of LeaferJS.\n  This is the primary source for AI to learn usage patterns and best practices.\n\n- **guide/**\n  Quick start and step-by-step tutorials covering common use cases, including app creation, graphics, interaction, and animation.\n\n- **reference/**\n  API reference and detailed documentation.\n\n- **plugin/**\n  Documentation for LeaferJS plugins and extensions.\n\n- **src/**\n  Core TypeScript source code of LeaferJS, useful for understanding class structures and types.\n\n- **update/**\n  Changelog and version history (optional for AI to read).\n\n## AI Usage Guidelines\n\nWhen generating LeaferJS code:\n\n1. Prioritize simple examples in `examples/`.\n2. Refer to `guide/` and `reference/` for patterns and API usage.\n\n## Run Code Online\n\n- Online Playground: [https://www.leaferjs.com/playground/](https://www.leaferjs.com/playground/)\n- Online Examples: [https://www.leaferjs.com/examples/](https://www.leaferjs.com/examples/)\n\n## Example Prompt\n\n```text\nPrompt: Create a draggable rectangle using Leafer.\n```\n\n## Use Directly as Skills\n\nDownload and extract this repository locally, then rename it to `leafer-skills`.\n\nYou can place it directly into the `skills` directory of tools such as Claude, Codex, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaferjs%2Fai-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleaferjs%2Fai-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaferjs%2Fai-docs/lists"}