{"_id":"@0xsarwagya/ontoly-go","_rev":"6-e7b0de10a39b5414b72776c951fa785d","name":"@0xsarwagya/ontoly-go","dist-tags":{"rc":"1.3.0","latest":"1.3.3"},"versions":{"1.2.0":{"name":"@0xsarwagya/ontoly-go","version":"1.2.0","keywords":["ontoly","software-graph","go","golang","static-analysis","developer-tools","semantic-model","tree-sitter"],"license":"AGPL-3.0-only","_id":"@0xsarwagya/ontoly-go@1.2.0","maintainers":[{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"}],"homepage":"https://ontoly.xyz","bugs":{"url":"https://github.com/0xsarwagya/ontoly/issues"},"dist":{"shasum":"71a514b8ce325d88a63ef01a5a48520f70f3be1a","tarball":"https://registry.npmjs.org/@0xsarwagya/ontoly-go/-/ontoly-go-1.2.0.tgz","fileCount":7,"integrity":"sha512-bIYMM860zjqe+42F8NhLxO8UcIYPTLvUJ8cGy/5hCJc2PV/IB8vTe576h8Q8bf8xyKP0gJuxFre89TVIsHiCgg==","signatures":[{"sig":"MEQCIAGGP6g081lx1PPYWk7nmDHcb6cPI+9ZNXZG9xsQFYA4AiAR6uDsSn6b9V2ZQJrae76XHTPGJLsoGuXAV138I5KITw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@0xsarwagya%2fontoly-go@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":107484},"main":"./dist/index.js","type":"module","_from":"file:0xsarwagya-ontoly-go-1.2.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0","pnpm":">=10.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"funding":{"url":"https://github.com/sponsors/0xsarwagya","type":"github"},"scripts":{"test":"vitest run tests","build":"tsup && tsc -p tsconfig.build.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"},"_resolved":"/tmp/f41faeb9d0418dad41ca1e0a095d2ff1/0xsarwagya-ontoly-go-1.2.0.tgz","_integrity":"sha512-bIYMM860zjqe+42F8NhLxO8UcIYPTLvUJ8cGy/5hCJc2PV/IB8vTe576h8Q8bf8xyKP0gJuxFre89TVIsHiCgg==","repository":{"url":"git+https://github.com/0xsarwagya/ontoly.git","type":"git","directory":"packages/go"},"_npmVersion":"10.9.8","description":"Pure Go semantic model analyzer for Ontoly, powered by tree-sitter.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"tree-sitter":"^0.25.1","tree-sitter-go":"^0.25.0","@0xsarwagya/ontoly-core":"1.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.0","@types/node":"^22.15.3"},"_npmOperationalInternal":{"tmp":"tmp/ontoly-go_1.2.0_1785590733515_0.25455732062467407","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@0xsarwagya/ontoly-go","version":"1.3.0","keywords":["ontoly","software-graph","go","golang","static-analysis","developer-tools","semantic-model","tree-sitter"],"license":"AGPL-3.0-only","_id":"@0xsarwagya/ontoly-go@1.3.0","maintainers":[{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"}],"homepage":"https://ontoly.xyz","bugs":{"url":"https://github.com/0xsarwagya/ontoly/issues"},"dist":{"shasum":"f7fe4adf2128086ea101734f47cfce9d520e57bc","tarball":"https://registry.npmjs.org/@0xsarwagya/ontoly-go/-/ontoly-go-1.3.0.tgz","fileCount":7,"integrity":"sha512-CBK41Wkj8qaUlVaEPPFBW6dSO6/+Uw6CsGvIt4CjOAaw7Uy8tU0fineUKobAIVo7RrW6FXamigKwvwWWQBcuWw==","signatures":[{"sig":"MEYCIQDSRsoZgptFmj5bs8wJIeCrH+2FZicUqqokA+vQw1foWAIhAKD2E8ZbZ//8wdoGbmnqpc7fxFGSx0zJShHH5H3YWNWH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@0xsarwagya%2fontoly-go@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":107484},"main":"./dist/index.js","type":"module","_from":"file:0xsarwagya-ontoly-go-1.3.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0","pnpm":">=10.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"funding":{"url":"https://github.com/sponsors/0xsarwagya","type":"github"},"scripts":{"test":"vitest run tests","build":"tsup && tsc -p tsconfig.build.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"},"_resolved":"/tmp/beae6129d5cb49752d9bd551cbb18a56/0xsarwagya-ontoly-go-1.3.0.tgz","_integrity":"sha512-CBK41Wkj8qaUlVaEPPFBW6dSO6/+Uw6CsGvIt4CjOAaw7Uy8tU0fineUKobAIVo7RrW6FXamigKwvwWWQBcuWw==","repository":{"url":"git+https://github.com/0xsarwagya/ontoly.git","type":"git","directory":"packages/go"},"_npmVersion":"10.9.8","description":"Pure Go semantic model analyzer for Ontoly, powered by tree-sitter.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"tree-sitter":"^0.25.1","tree-sitter-go":"^0.25.0","@0xsarwagya/ontoly-core":"1.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.0","@types/node":"^22.15.3"},"_npmOperationalInternal":{"tmp":"tmp/ontoly-go_1.3.0_1785800285297_0.2661493162264723","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@0xsarwagya/ontoly-go","version":"1.3.1","keywords":["ontoly","software-graph","go","golang","static-analysis","developer-tools","semantic-model","tree-sitter"],"license":"AGPL-3.0-only","_id":"@0xsarwagya/ontoly-go@1.3.1","maintainers":[{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"}],"homepage":"https://ontoly.xyz","bugs":{"url":"https://github.com/0xsarwagya/ontoly/issues"},"dist":{"shasum":"fb0bffce248d181ca10674c286f754f312a15167","tarball":"https://registry.npmjs.org/@0xsarwagya/ontoly-go/-/ontoly-go-1.3.1.tgz","fileCount":7,"integrity":"sha512-BhdskCSyrKvrt7s5lHUGQ5DfM0fyoNPPJhtTCb1QDdbzW8zBpCmchNyihV07ikVV8z7q6nNGr9xMZT8zjxR6Bw==","signatures":[{"sig":"MEUCIQDgBmRl0s4b4gbC5gJlZmJbRyWHMYu2Kk0pZrGh+105dQIgGx1Qk1jNy1iKnBufVA664fl8vmnk6MxxKYcaspVvnnU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@0xsarwagya%2fontoly-go@1.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":107484},"main":"./dist/index.js","type":"module","_from":"file:0xsarwagya-ontoly-go-1.3.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0","pnpm":">=10.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"funding":{"url":"https://github.com/sponsors/0xsarwagya","type":"github"},"scripts":{"test":"vitest run tests","build":"tsup && tsc -p tsconfig.build.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"},"_resolved":"/tmp/a042404877371fd8d45f5be1eaea27c6/0xsarwagya-ontoly-go-1.3.1.tgz","_integrity":"sha512-BhdskCSyrKvrt7s5lHUGQ5DfM0fyoNPPJhtTCb1QDdbzW8zBpCmchNyihV07ikVV8z7q6nNGr9xMZT8zjxR6Bw==","repository":{"url":"git+https://github.com/0xsarwagya/ontoly.git","type":"git","directory":"packages/go"},"_npmVersion":"10.9.8","description":"Pure Go semantic model analyzer for Ontoly, powered by tree-sitter.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"tree-sitter":"^0.25.1","tree-sitter-go":"^0.25.0","@0xsarwagya/ontoly-core":"1.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.0","@types/node":"^22.15.3"},"_npmOperationalInternal":{"tmp":"tmp/ontoly-go_1.3.1_1785844185906_0.18974229474772186","host":"s3://npm-registry-packages-npm-production"}},"1.3.2":{"name":"@0xsarwagya/ontoly-go","version":"1.3.2","keywords":["ontoly","software-graph","go","golang","static-analysis","developer-tools","semantic-model","tree-sitter"],"license":"AGPL-3.0-only","_id":"@0xsarwagya/ontoly-go@1.3.2","maintainers":[{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"}],"homepage":"https://ontoly.xyz","bugs":{"url":"https://github.com/0xsarwagya/ontoly/issues"},"dist":{"shasum":"b4f07a9d955cfc16e7054dc946dfbf7df1a53efe","tarball":"https://registry.npmjs.org/@0xsarwagya/ontoly-go/-/ontoly-go-1.3.2.tgz","fileCount":7,"integrity":"sha512-SHm6zJT14+Vp7GR4x2k3hKVv9Xn2eYcx1ZvhS2PuEO4Trk7hP+51Nf0rJT4LlBGZMupTxiYf34uybzxzVHHYtQ==","signatures":[{"sig":"MEYCIQCTcdxdjcucW2IFil5Xq8JBlR6dg4ect5kD6OTkSabRcAIhANB+4RKwf72ca4onuuvfIMKURLE41artgc3iSFHD/RGH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@0xsarwagya%2fontoly-go@1.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":107484},"main":"./dist/index.js","type":"module","_from":"file:0xsarwagya-ontoly-go-1.3.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0","pnpm":">=10.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"funding":{"url":"https://github.com/sponsors/0xsarwagya","type":"github"},"scripts":{"test":"vitest run tests","build":"tsup && tsc -p tsconfig.build.json","check-types":"tsc --noEmit"},"_npmUser":{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"},"_resolved":"/tmp/09799a5bfbb4a0bf07448935e857510f/0xsarwagya-ontoly-go-1.3.2.tgz","_integrity":"sha512-SHm6zJT14+Vp7GR4x2k3hKVv9Xn2eYcx1ZvhS2PuEO4Trk7hP+51Nf0rJT4LlBGZMupTxiYf34uybzxzVHHYtQ==","repository":{"url":"git+https://github.com/0xsarwagya/ontoly.git","type":"git","directory":"packages/go"},"_npmVersion":"10.9.8","description":"Pure Go semantic model analyzer for Ontoly, powered by tree-sitter.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"tree-sitter":"^0.25.1","tree-sitter-go":"^0.25.0","@0xsarwagya/ontoly-core":"1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","vitest":"^3.0.0","@types/node":"^22.15.3"},"_npmOperationalInternal":{"tmp":"tmp/ontoly-go_1.3.2_1785844760112_0.5331684214024903","host":"s3://npm-registry-packages-npm-production"}},"1.3.3":{"name":"@0xsarwagya/ontoly-go","version":"1.3.3","description":"Pure Go semantic model analyzer for Ontoly, powered by tree-sitter.","type":"module","license":"AGPL-3.0-only","repository":{"type":"git","url":"git+https://github.com/0xsarwagya/ontoly.git","directory":"packages/go"},"homepage":"https://ontoly.xyz","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"tree-sitter":"^0.25.1","tree-sitter-go":"^0.25.0","@0xsarwagya/ontoly-core":"1.3.3"},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^22.15.3","tsup":"^8.3.5","vitest":"^3.0.0"},"bugs":{"url":"https://github.com/0xsarwagya/ontoly/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/0xsarwagya"},"engines":{"node":">=22.0.0","pnpm":">=10.0.0"},"main":"./dist/index.js","types":"./dist/index.d.ts","keywords":["ontoly","software-graph","go","golang","static-analysis","developer-tools","semantic-model","tree-sitter"],"scripts":{"build":"tsup && tsc -p tsconfig.build.json","check-types":"tsc --noEmit","test":"vitest run tests"},"_id":"@0xsarwagya/ontoly-go@1.3.3","_integrity":"sha512-DwF/lohodWyJPIsq1rREvvIS+1NWwc0vHt24EO9oNFl2DcS5uLBMs5mFV1IxyCb0bTXt35umG41/h0cMCz7uwg==","_resolved":"/tmp/bddf1f013cdd252f3c2a31a0b6668bf3/0xsarwagya-ontoly-go-1.3.3.tgz","_from":"file:0xsarwagya-ontoly-go-1.3.3.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-DwF/lohodWyJPIsq1rREvvIS+1NWwc0vHt24EO9oNFl2DcS5uLBMs5mFV1IxyCb0bTXt35umG41/h0cMCz7uwg==","shasum":"5f525672131caa222eafff036ed8a3ca6d44b44f","tarball":"https://registry.npmjs.org/@0xsarwagya/ontoly-go/-/ontoly-go-1.3.3.tgz","fileCount":7,"unpackedSize":107484,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@0xsarwagya%2fontoly-go@1.3.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDyGxTz+mVJKE9erPLry2lCc1EvEbdqH0+pholi3Fe0+QIhAJXt/dqXMf89klKF5cosYcbgi90Wyhcl81vGUvrE1aNx"}]},"_npmUser":{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"},"directories":{},"maintainers":[{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ontoly-go_1.3.3_1785852914758_0.43063641278105935"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-01T13:25:33.342Z","modified":"2026-08-04T14:15:15.274Z","1.2.0":"2026-08-01T13:25:33.666Z","1.3.0":"2026-08-03T23:38:05.455Z","1.3.1":"2026-08-04T11:49:46.074Z","1.3.2":"2026-08-04T11:59:20.252Z","1.3.3":"2026-08-04T14:15:14.914Z"},"bugs":{"url":"https://github.com/0xsarwagya/ontoly/issues"},"license":"AGPL-3.0-only","homepage":"https://ontoly.xyz","keywords":["ontoly","software-graph","go","golang","static-analysis","developer-tools","semantic-model","tree-sitter"],"repository":{"type":"git","url":"git+https://github.com/0xsarwagya/ontoly.git","directory":"packages/go"},"description":"Pure Go semantic model analyzer for Ontoly, powered by tree-sitter.","maintainers":[{"name":"0xsarwagya","email":"sarwagyasingh69@gmail.com"}],"readme":"# @0xsarwagya/ontoly-go\n\nPure Go semantic model analyzer for [Ontoly](https://ontoly.xyz), powered by tree-sitter.\n\nParses Go source files and produces a typed semantic model (`GoProject`) covering packages, structs, interfaces, functions, methods, imports, constants, variables, type aliases, and call expressions.\n\n## Usage\n\n```ts\nimport { analyzeGoProject } from \"@0xsarwagya/ontoly-go\";\n\nconst project = analyzeGoProject({\n  root: \"/path/to/project\",\n  files: [\"main.go\", \"server.go\"],\n});\n\nconsole.log(project.structs);\nconsole.log(project.functions);\n```\n\n## License\n\nAGPL-3.0-only\n","readmeFilename":"README.md"}