{"id":27136407,"url":"https://github.com/furesoft/lakshmi","last_synced_at":"2026-03-04T04:31:38.089Z","repository":{"id":284578144,"uuid":"955385197","full_name":"furesoft/Lakshmi","owner":"furesoft","description":"Lakshmi is a source generator for c# to make working with extism pdk more idiomatic c#","archived":false,"fork":false,"pushed_at":"2025-05-10T13:45:09.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T14:08:18.667Z","etag":null,"topics":["csharp","dotnet","extism","generator","wasm"],"latest_commit_sha":null,"homepage":"https://lakshmi-rose.vercel.app","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/furesoft.png","metadata":{"files":{"readme":"README.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-03-26T14:57:30.000Z","updated_at":"2025-05-10T22:17:17.000Z","dependencies_parsed_at":"2025-10-12T14:08:21.302Z","dependency_job_id":null,"html_url":"https://github.com/furesoft/Lakshmi","commit_stats":null,"previous_names":["furesoft/lakshmi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/furesoft/Lakshmi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furesoft%2FLakshmi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furesoft%2FLakshmi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furesoft%2FLakshmi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furesoft%2FLakshmi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furesoft","download_url":"https://codeload.github.com/furesoft/Lakshmi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furesoft%2FLakshmi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011542,"owners_count":26084963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":["csharp","dotnet","extism","generator","wasm"],"created_at":"2025-04-08T02:54:28.898Z","updated_at":"2025-10-12T14:09:10.708Z","avatar_url":"https://github.com/furesoft.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lakshmi\nLakshmi is a source generator for c# to make working with extism pdk more the idiomatic c# way\n\n[![CodeFactor](https://www.codefactor.io/repository/github/furesoft/lakshmi/badge)](https://www.codefactor.io/repository/github/furesoft/lakshmi)\n![NuGet Version](https://img.shields.io/nuget/v/Lakshmi)\n![NuGet Downloads](https://img.shields.io/nuget/dt/Lakshmi)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n![Discord](https://img.shields.io/discord/455738571186241536)\n![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/nuget/Lakshmi)\n\n# Installation\n\n1. Install the nuget package with `dotnet add package Lakshmi`\n2. Use it\n\n# Usage\n\nTo work with Lakshmi you have to reference the dotnet extism pdk. Using extism forces you to write a more native like c#. Lashmi provides a source generator to use higher level types.\n\n## Importing functions\n\n```csharp\nrecord MyPoint(int x, int y);\n\nclass Test {\n  [Import(\"host\", Entry=\"add\")]\n  public partial int Add(int a, int b);\n\n  [Import(\"host\", Entry=\"getPoint\")]\n  public partial MyPoint GetPoint();\n}\n```\n\n## Exporting functions\n\n```csharp\nrecord ExtensionInfo(string author, string[] allowed_hosts);\n\nclass Test {\n  [Export(\"register\")]\n  public static ExtensionInfo Register() {\n    return new ExtensionInfo(\"furesoft\", []);\n  }\n}\n```\n\n# How does it work?\n\nUnder the Hood Lakshma uses a source generator that generates all the necessary temproary classes and builds a type shape, see [PolyType](https://github.com/eiriktsarpalis/PolyType), to make sure the deserialization works for aot. Imported/exported methods are wrapped in special generated methods.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuresoft%2Flakshmi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuresoft%2Flakshmi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuresoft%2Flakshmi/lists"}