{"id":47164933,"url":"https://github.com/joggrdocs/funkai","last_synced_at":"2026-04-01T17:49:40.663Z","repository":{"id":344087967,"uuid":"1179292443","full_name":"joggrdocs/funkai","owner":"joggrdocs","description":"A composable AI microframework built on ai-sdk, curried with funk-tional programming flair.","archived":false,"fork":false,"pushed_at":"2026-03-27T19:59:56.000Z","size":1044,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T02:47:46.823Z","etag":null,"topics":["agents","ai","ai-sdk","functional-programming","microframework","nodejs","prompts","typescript","vercel-ai-sdk","workflows"],"latest_commit_sha":null,"homepage":"https://funkai.vercel.app","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/joggrdocs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-03-11T22:12:48.000Z","updated_at":"2026-03-27T19:59:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/joggrdocs/funkai","commit_stats":null,"previous_names":["joggrdocs/funkai"],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/joggrdocs/funkai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joggrdocs%2Ffunkai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joggrdocs%2Ffunkai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joggrdocs%2Ffunkai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joggrdocs%2Ffunkai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joggrdocs","download_url":"https://codeload.github.com/joggrdocs/funkai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joggrdocs%2Ffunkai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["agents","ai","ai-sdk","functional-programming","microframework","nodejs","prompts","typescript","vercel-ai-sdk","workflows"],"created_at":"2026-03-13T04:01:26.597Z","updated_at":"2026-04-01T17:49:40.635Z","avatar_url":"https://github.com/joggrdocs.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"assets/banner.svg\" alt=\"funkai\" width=\"100%\" /\u003e\n  \u003cp\u003e\u003cstrong\u003eA composable AI microframework built on \u003ca href=\"https://github.com/vercel/ai\"\u003eai-sdk\u003c/a\u003e, curried with funk-tional programming flair.\u003c/strong\u003e\u003c/p\u003e\n\n\u003ca href=\"https://github.com/joggrdocs/funkai/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/joggrdocs/funkai/actions/workflows/ci.yml/badge.svg?branch=main\" alt=\"CI\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@funkai/agents\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@funkai/agents\" alt=\"npm version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/joggrdocs/funkai/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/joggrdocs/funkai\" alt=\"License\" /\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n\n## Features\n\n- :zap: **Functions all the way down** — `agent`, `tool`, `flowAgent` are functions returning plain objects.\n- :jigsaw: **Composition over configuration** — Combine small pieces instead of configuring large ones.\n- :shield: **Result, never throw** — Every public method returns `Result\u003cT\u003e`.\n- :lock: **Closures are state** — Flow agent state is just variables in your handler.\n- :triangular_ruler: **Type-driven design** — Zod schemas, discriminated unions, exhaustive matching.\n\n## Install\n\n```bash\nnpm install @funkai/agents @funkai/prompts\n```\n\n## Usage\n\n### Create an agent\n\n```ts\nimport { agent } from \"@funkai/agents\";\nimport { openai } from \"@ai-sdk/openai\";\n\nconst writer = agent({\n  name: \"writer\",\n  model: openai(\"gpt-4.1\"),\n  system: \"You are a helpful writer.\",\n  tools: { search },\n});\n\nconst result = await writer.generate({ prompt: \"Write about closures\" });\n```\n\n### Define a prompt\n\n```\n---\nname: writer\nschema:\n  tone: string\n---\nYou are a {{ tone }} writer.\n```\n\n### Generate typed prompts\n\n```bash\nnpx funkai prompts generate --out .prompts/client --includes \"src/agents/**\"\n```\n\n## Packages\n\n| Package                               | Description                                                          |\n| ------------------------------------- | -------------------------------------------------------------------- |\n| [`@funkai/agents`](packages/agents)   | Lightweight agent, tool, and flow agent orchestration                |\n| [`@funkai/models`](packages/models)   | Model catalog, provider resolution, and cost calculations            |\n| [`@funkai/prompts`](packages/prompts) | Prompt SDK with LiquidJS templating, Zod validation, and CLI codegen |\n| [`@funkai/cli`](packages/cli)         | CLI for the funkai prompt SDK                                        |\n\n## License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoggrdocs%2Ffunkai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoggrdocs%2Ffunkai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoggrdocs%2Ffunkai/lists"}