{"id":30302319,"url":"https://github.com/annekitsune/anne_nds_dev","last_synced_at":"2025-08-17T05:08:39.008Z","repository":{"id":308806870,"uuid":"1034153038","full_name":"AnneKitsune/anne_nds_dev","owner":"AnneKitsune","description":"Zig library to compile on Nintendo DS","archived":false,"fork":false,"pushed_at":"2025-08-08T17:10:06.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T05:44:16.409Z","etag":null,"topics":["zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnneKitsune.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}},"created_at":"2025-08-07T23:58:51.000Z","updated_at":"2025-08-10T03:42:22.000Z","dependencies_parsed_at":"2025-08-08T03:07:36.566Z","dependency_job_id":"bc58711b-de55-40d5-a54e-253bdaaa56f3","html_url":"https://github.com/AnneKitsune/anne_nds_dev","commit_stats":null,"previous_names":["annekitsune/tear_nds","annekitsune/anne_nds_dev"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AnneKitsune/anne_nds_dev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnneKitsune%2Fanne_nds_dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnneKitsune%2Fanne_nds_dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnneKitsune%2Fanne_nds_dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnneKitsune%2Fanne_nds_dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnneKitsune","download_url":"https://codeload.github.com/AnneKitsune/anne_nds_dev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnneKitsune%2Fanne_nds_dev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270807934,"owners_count":24649346,"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-08-17T02:00:09.016Z","response_time":129,"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":["zig","zig-package"],"created_at":"2025-08-17T05:08:38.432Z","updated_at":"2025-08-17T05:08:38.995Z","avatar_url":"https://github.com/AnneKitsune.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zig Nintendo DS\n\nProvides an easy and convenient way to compile for nds and use functions from [DevKitPro](https://devkitpro.org/).\n\n1. Install zig 0.14 / 0.15.\n2. `nix develop`\n4. zig build # creates a .nds file\n5. zig build run # runs the .nds file in the `melonDS` emulator\n\nThe .nds file will be in zig-out/bin/name.nds.\n\n### Adding NDS support to your project\n\nbuild.zig\n```zig\nconst std = @import(\"std\");\n\npub fn build(b: *std.Build) void {\n    const optimize = b.standardOptimizeOption(.{});\n\n    // So that you can call exported functions from anne_nds_dev\n    const anne_nds_dev = b.dependency(\"anne_nds_dev\", .{}).module(\"anne_nds_dev\");\n    // Creates the module + obj + elf + nds files for you and takes care of the includes/linker arguments.\n    const nds_step = @import(\"anne_nds_dev\").compileNds(b, .{\n        .root_file = b.path(\"src/main.zig\"),\n        .optimize = optimize,\n        .name = \"nds_test\",\n        .imports = \u0026.{\n            .{\n                .name = \"nds\",\n                .module = anne_nds_dev,\n            },\n        },\n    });\n\n    // `zig build` will build for nds.\n    b.default_step.dependOn(\u0026nds_step.step);\n}\n```\n\nsrc/main.zig\n```zig\nconst nds = @import(\"nds\").nds;\n// You need to export a c-style main. Then inside of the main you can call nds' functions.\nexport fn main(_: c_int, _: [*]const [*:0]const u8) void {...}\n```\n\n### Going further\nThe documentation for libnds, which is what actually does the heavy lifting of communicating with the DS, is available here: https://libnds.devkitpro.org/files.html\nSeveral examples are available here: https://github.com/devkitPro/nds-examples\n\n### Credits\nThis work is based on [DevKitPro](https://devkitpro.org/), [devkitNix](https://github.com/bandithedoge/devkitNix) and [zig-nds](https://github.com/zig-homebrew/zig-nds).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannekitsune%2Fanne_nds_dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fannekitsune%2Fanne_nds_dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fannekitsune%2Fanne_nds_dev/lists"}