{"id":35080902,"url":"https://github.com/natade-jp/konpeito","last_synced_at":"2026-05-18T20:07:05.678Z","repository":{"id":34876552,"uuid":"184744424","full_name":"natade-jp/konpeito","owner":"natade-jp","description":"Class collection of numerical calculation processing.","archived":false,"fork":false,"pushed_at":"2023-01-03T22:38:13.000Z","size":23811,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-17T09:49:22.556Z","etag":null,"topics":["fft-library","javascript","matrix-calculations","matrix-decompositions","statistical-methods","svd-factorization"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/konpeito","language":"JavaScript","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/natade-jp.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-03T11:30:02.000Z","updated_at":"2026-04-13T08:56:25.000Z","dependencies_parsed_at":"2023-01-15T09:49:17.640Z","dependency_job_id":null,"html_url":"https://github.com/natade-jp/konpeito","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/natade-jp/konpeito","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fkonpeito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fkonpeito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fkonpeito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fkonpeito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natade-jp","download_url":"https://codeload.github.com/natade-jp/konpeito/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fkonpeito/sbom","scorecard":{"id":675018,"data":{"date":"2025-08-11","repo":{"name":"github.com/natade-jp/konpeito","commit":"2b98a0006869856e6975f6413a76134f8a574fee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":0,"reason":"54 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-6vfc-qv3f-vr6c","Warn: Project is vulnerable to: GHSA-xf5p-87ch-gxw2","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-hxcc-f52p-wc94","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T21:11:54.256Z","repository_id":34876552,"created_at":"2025-08-21T21:11:54.256Z","updated_at":"2025-08-21T21:11:54.256Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33189287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["fft-library","javascript","matrix-calculations","matrix-decompositions","statistical-methods","svd-factorization"],"created_at":"2025-12-27T12:57:54.333Z","updated_at":"2026-05-18T20:07:05.673Z","avatar_url":"https://github.com/natade-jp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# konpeito\n[![Build Status](https://travis-ci.org/natade-jp/konpeito.svg?branch=master)](https://travis-ci.org/natade-jp/konpeito)\n[![ESDoc coverage badge](https://natade-jp.github.io/konpeito/docs/badge.svg)](https://natade-jp.github.io/konpeito/docs/)\n![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)\n\n\"konpeito\" is a library to \"compute\". :)\n\n## What\n- The library for math calculations.\n- When calculating, use method chain.\n- Coding in ES6, and published ES6 modules and UMD.\n- [API reference is complete](https://natade-jp.github.io/konpeito/docs/).\n\n## Features\nThis library has 4 functions.\n- BigInteger\n- BigDecimal\n- Fraction\n- Matrix\n\nHas the following features.\n- BigDecimal and Fraction are constructed by BigInteger.\n- Matrix is constructed by array of Complex.\n- Matrix can't use huge real numbers like BigInteger or BigDecimal, but they are powerful. Initialization can be described as Scilab, Octave, MATLAB.\n- Does not support sparse matrix.\n\nPlease check the console and main.mjs.\n- [BigDecimal](https://natade-jp.github.io/konpeito/html/examples/demos/BigDecimal/)\n- [BigInteger](https://natade-jp.github.io/konpeito/html/examples/demos/BigInteger/)\n- [Matrix](https://natade-jp.github.io/konpeito/html/examples/demos/Matrix/)\n- [UMD](https://natade-jp.github.io/konpeito/html/examples/demos/UMD/)\n\n## Install for node.js\n\n1. This library can be installed using [npm](https://www.npmjs.com/package/konpeito).\n```\nnpm install konpeito\n```\n\n2. Then you can include it in your code:\n```\nvar konpeito = require(\"konpeito\");\n```\n\nIf you want to use in the ES6 module, please execute with the following command.\n```\nnode --experimental-modules main.mjs\n```\n\n## Install for browser\n\n1. Download the [zip](https://github.com/natade-jp/konpeito/archive/master.zip) by [GitHub](https://github.com/natade-jp/konpeito).\n\n2. Please use mjs file when using ES6 modules. And use js file when using UMD.\n- `./build/konpeito.esm.min.js`\n- `./build/konpeito.umd.min.js`\n\n### with ES6 module.\n```html\n\u003cscript type=\"module\" src=\"./main.mjs\" charset=\"utf-8\"\u003e\u003c/script\u003e\n```\n\n### with UMD\n```html\n\u003cscript src=\"./konpeito.umd.min.js\" charset=\"utf-8\"\u003e\u003c/script\u003e\n\u003cscript src=\"./main.js\" charset=\"utf-8\"\u003e\u003c/script\u003e\n```\n\n## Repository\n- https://github.com/natade-jp/konpeito.git\n\n## Sample\n\n### BigInteger\n- A calculation class for arbitrary-precision integer arithmetic.\n- BigInt of ES2019 is not used.\n\n```javascript\nconst konpeito = require(\"konpeito\");\nconst BigInteger = konpeito.BigInteger;\nconst $ = BigInteger.create;\n\nconsole.log($(\"-1234567890\").mul(\"987654321098765432109876543210\").toString());\n\u003e -1219326311248285321124828532111263526900\n\nconsole.log($(\"7\").pow(\"50\").toString());\n\u003e 1798465042647412146620280340569649349251249\n```\n\n### BigDecimal\n- A calculation class for arbitrary-precision floating point arithmetic.\n- The calculation uses the BigInteger.\n\n```javascript\nconst konpeito = require(\"konpeito\");\nconst BigDecimal = konpeito.BigDecimal;\nconst MathContext = konpeito.MathContext;\nconst $ = BigDecimal.create;\n\nBigDecimal.setDefaultContext(MathContext.UNLIMITED);\nconsole.log($(\"-123456.7890\").mul(\"987654321098765.432109876543210\").toString());\n\u003e -121932631124828532112.4828532111263526900\n```\n\n### Fraction\n- A calculation class for fractions with infinite precision.\n- The calculation uses the BigInteger.\n\n```javascript\nconst konpeito = require(\"konpeito\");\nconst Fraction = konpeito.Fraction;\nconst $ = Fraction.create;\n\nconsole.log($(\"1/3\").add(\"0.(3)\").mul(10).toString());\n\u003e 20 / 3\n```\n\n### Matrix\n- Matrix is a general-purpose calculation class with signal processing and statistical processing.\n- The calculation uses the Complex.\n- Some methods do not support complex arithmetic.\n\n```javascript\nconst konpeito = require(\"konpeito\");\nconst Matrix = konpeito.Matrix;\nconst $ = Matrix.create;\n\nconsole.log($(\"[1 2;3 4;5 6]\").toString());\n\u003e\n 1  2\n 3  4\n 5  6\nconst USV = $(\"[1 2;3 4;5 6]\").svd();\nconsole.log(USV.U.toString());\n\u003e \n 0.2298 -0.8835  0.4082\n 0.5247 -0.2408 -0.8165\n 0.8196  0.4019  0.4082\nconsole.log(USV.S.toString());\n\u003e \n 9.5255  0.0000\n 0.0000  0.5143\n 0.0000  0.0000\nconsole.log(USV.V.toString());\n\u003e \n 0.7849  0.6196\n-0.6196  0.7849\nconsole.log(USV.U.mul(USV.S).mul(USV.V.T()).toString());\n\u003e \n 1.0000  2.0000\n 3.0000  4.0000\n 5.0000  6.0000\n\nconsole.log($(\"[1+j 2-3j -3 -4]\").fft().toString());\n\u003e -4.0000 - 2.0000i  1.0000 - 5.0000i  0.0000 + 4.0000i  7.0000 + 7.0000i\n\nconsole.log($(\"[1 2 30]\").dct().toString());\n\u003e 19.0526 -20.5061  11.0227\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatade-jp%2Fkonpeito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatade-jp%2Fkonpeito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatade-jp%2Fkonpeito/lists"}