{"id":19386611,"url":"https://github.com/vincent-the-gamer/wenyan-api","last_synced_at":"2026-06-22T16:31:54.241Z","repository":{"id":214347972,"uuid":"736298337","full_name":"Vincent-the-gamer/wenyan-api","owner":"Vincent-the-gamer","description":"Wenyan-lang HTTP API. 文言文编程语言HTTP API。","archived":false,"fork":false,"pushed_at":"2024-06-22T06:33:53.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T17:51:03.201Z","etag":null,"topics":["api","http-api","wenyan-lang","wenyan-programming-language"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vincent-the-gamer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-12-27T14:21:55.000Z","updated_at":"2024-06-22T06:33:56.000Z","dependencies_parsed_at":"2025-02-24T17:46:07.479Z","dependency_job_id":"66095af5-14bd-4ce8-a632-36f4e0c3d6bf","html_url":"https://github.com/Vincent-the-gamer/wenyan-api","commit_stats":null,"previous_names":["vincent-the-gamer/wenyan-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vincent-the-gamer/wenyan-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-the-gamer%2Fwenyan-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-the-gamer%2Fwenyan-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-the-gamer%2Fwenyan-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-the-gamer%2Fwenyan-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vincent-the-gamer","download_url":"https://codeload.github.com/Vincent-the-gamer/wenyan-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vincent-the-gamer%2Fwenyan-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34657892,"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-22T02:00:06.391Z","response_time":106,"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":["api","http-api","wenyan-lang","wenyan-programming-language"],"created_at":"2024-11-10T10:06:47.778Z","updated_at":"2026-06-22T16:31:54.216Z","avatar_url":"https://github.com/Vincent-the-gamer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./.github/wenyan.png\" style=\"height: 90px;\"/\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eWenyan API\u003c/h1\u003e\n\u003cp align=\"center\"\u003eWenyan-lang HTTP API.\u003c/p\u003e\n\n\u003e [!IMPORTANT]\n\u003e Function of this repo has been integrated in [Vincent-the-gamer/api](https://github.com/Vincent-the-gamer/api), now archive the repo.\n\n中文文档: [README_zh-hans.md](./README_zh-hans.md)\n\n# What is Wenyan-lang？\nGo to the repo: [Wenyan-lang 文言文編程语言](https://github.com/wenyan-lang/wenyan)\n\n# Usage\n\n## Clone This Repository\n~~~shell\ngit clone https://github.com/Vincent-the-gamer/wenyan-api.git\n~~~\n\n## Install Dependency\n~~~shell\npnpm install\n~~~\n\n## Run Server\n~~~shell\npnpm dev\n~~~\n\nServer will run at `http://localhost:8080` by default.\n\nYou can change your host and port in `server.ts`\n\n~~~js\nconst host = \"0.0.0.0\"\nconst port = 8080\n~~~\n\n## Call API\n* URL: `http://localhost:8080`\n* Method: `post`\n* Request Body: \n    ~~~json\n    {\n        \"code\": \"吾有一數。曰三。名之曰「甲」。為是「甲」遍。吾有一言。曰「「問天地好在。」」。書之。云云。\"\n    }\n    ~~~\nThen you will get your response:\n~~~json\n{\n\t\"code\": 200,\n\t\"data\": \"問天地好在。\\n問天地好在。\\n問天地好在。\\n\"\n}\n~~~\n\nExample using axios to call API:\n~~~js\naxios.post(\"http://localhost:8080\",{\n    code: \"吾有一數。曰三。名之曰「甲」。為是「甲」遍。吾有一言。曰「「問天地好在。」」。書之。云云。\"\n}).then(\n    res =\u003e {\n        console.log(res.data.data)\n    }\n)\n~~~\n\n## Run code in shell(Use CLI)\nWrite your Wenyan code in `src/main.wy`\n```\n吾有一數。曰三。名之曰「甲」。\n為是「甲」遍。\n    吾有一言。曰「「問天地好在。」」。書之。\n云云。\n```\n\nthen\n\n```shell\npnpm wyg run ./src/main.wy\n```\n\n# Package Manager: Wyg(文渊阁, 文淵閣, Wenyan-get)\n\nNow you can use `wyg packages` in your code.\n\n**Example:**\n\n* Install\n~~~shell\n# install package ziyue(子曰)\npnpm wyg i ziyue \n\n# or \npnpm wyg i 子曰\n~~~\n\n* Usage\n~~~\n吾嘗觀「「子曰」」之書。方悟「子曰」之義。 \n\n子曰「「学而时习之，不亦说乎？」」。 \n~~~\n\nResult:\n\n~~~\n                 __._                                    \n                / ___)_                                  \n               (_/Y ===\\                            __  \n               |||.==. =).                            |  \n               |((| o |p|      |  学而时习之，不亦说乎？\n            _./| \\(  /=\\ )     |__                     \n          /  |@\\ ||||||||.                              \n         /    \\@\\ ||||||||\\                           \n        /   \\  \\@\\ ||||||//\\                         \n       (     Y  \\@\\|||| // _\\                         \n       |    -\\   \\@\\ \\\\//    \\                     \n       |     -\\__.-./ //\\.---.^__                      \n       | \\    /  |@|__/\\_|@|  |  |                     \n       \\__\\      |@||| |||@|     |                     \n       \u003c@@@|     |@||| |||@|    /                        \n      / ---|     /@||| |||@|   /                         \n     |    /|    /@/ || |||@|  /|                         \n     |   //|   /@/  ||_|||@| / |                         \n     |  // \\ ||@|   /|=|||@| | |                        \n     \\ //   \\||@|  / |/|||@| \\ |                      \n     |//     ||@| /  ,/|||@|   |                         \n     //      ||@|/  /|/||/@/   |                         \n    //|   ,  ||//  /\\|/\\/@/  / /                       \n   //\\   /   \\|/  /H\\|/H\\/  /_/                      \n  // |\\_/     |__/|H\\|/H|\\_/                          \n |/  |\\        /  |H===H| |                             \n     ||\\      /|  |H|||H| |                             \n     ||______/ |  |H|||H| |                              \n      \\_/ _/  _/  |L|||J| \\_                           \n      _/  ___/   ___\\__/___ '-._                        \n     /__________/===\\__/===\\---'                       \n                                                                                    \n~~~\n\nMore about wyg：[https://github.com/wenyan-lang/wyg](https://github.com/wenyan-lang/wyg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincent-the-gamer%2Fwenyan-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincent-the-gamer%2Fwenyan-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincent-the-gamer%2Fwenyan-api/lists"}