{"id":43103513,"url":"https://github.com/mayerdev/fastpanel-api","last_synced_at":"2026-01-31T17:49:15.224Z","repository":{"id":57233422,"uuid":"357251767","full_name":"mayerdev/fastpanel-api","owner":"mayerdev","description":"NodeJS API client for FastPanel","archived":false,"fork":false,"pushed_at":"2024-07-30T06:59:47.000Z","size":53,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-11T04:23:28.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mayerdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2021-04-12T15:48:37.000Z","updated_at":"2024-07-30T06:59:50.000Z","dependencies_parsed_at":"2024-07-30T10:04:29.269Z","dependency_job_id":null,"html_url":"https://github.com/mayerdev/fastpanel-api","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"678c34427138aecb7dc21a5d4dc0d2091907de26"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mayerdev/fastpanel-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerdev%2Ffastpanel-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerdev%2Ffastpanel-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerdev%2Ffastpanel-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerdev%2Ffastpanel-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayerdev","download_url":"https://codeload.github.com/mayerdev/fastpanel-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayerdev%2Ffastpanel-api/sbom","scorecard":{"id":630362,"data":{"date":"2025-08-11","repo":{"name":"github.com/mayerdev/fastpanel-api","commit":"c3ad0a2f4355ea8e6320c9f4a3464f8a6fd4fa49"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/29 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":"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":"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":"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":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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"}}]},"last_synced_at":"2025-08-21T07:44:31.618Z","repository_id":57233422,"created_at":"2025-08-21T07:44:31.618Z","updated_at":"2025-08-21T07:44:31.618Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-31T17:49:14.684Z","updated_at":"2026-01-31T17:49:15.215Z","avatar_url":"https://github.com/mayerdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastpanel-api\n# Репозиторий больше неактуален, FastPanel обновили API, а мне лень обновлять клиент.\n# Если кто-то это хочет сделать, то Pull Request в помощь.\n# Мои контакты, если есть вопросы: https://t.me/notenoughprivacy\nNodeJS API client for FastPanel\n\n## Установка\n\n\u003e npm install fastpanel-api -s\n\n## Пример\n\n```js\nconst api = require('fastpanel-api');\n\nconst Api = new api('https://cp.mayerdev.com');\n\nApi.auth('fastuser', 'password').then(async () =\u003e {\n\tconsole.log(await Api.me());\n});\n```\n\n## Пример вывода\n\n```bash\n[FastPanel API by MayerDev] Got token:\nЗдесь токен\n{ data:\n   { action: null,\n     allowed_user_count: 0,\n     allowed_virtualhost_count: 0,\n     avail_virtualhost_count: 0,\n     created_at: '2021-04-11T19:27:02.658153773Z',\n     enabled: true,\n     home_dir: '/var/www/fastuser/data',\n     id: 1,\n     php_version: null,\n     profile:\n      { cards_order: null,\n        id: 1,\n        interface_settings: [Object],\n        server_name: '10.130.0.19',\n        show_information: false,\n        show_statistic: false,\n        vhost_order: [] },\n     quota: null,\n     reseller_creating: false,\n     restore_email: 'mayer.dev@yahoo.com',\n     roles: [ 'ROLE_SUPER_ADMIN' ],\n     sites_allocated: 0,\n     state:\n      { sites: 2,\n        domain: 1,\n        email_domain: 0,\n        db: 2,\n        task: 1,\n        ftp_account: 2,\n        box: 0,\n        backup_plan: 0,\n        user: 4 },\n     user_creating: false,\n     username: 'fastuser',\n     virtualhost_count: 2 } }\n```\n\n## Методы\n\n### me()\n\nПолучить информацию о текущем аккаунте\n\n#### Использование:\n\n```js\nApi.me();\n```\n\n### settings()\n\nПолучить настройки\n\n#### Использование:\n\n```js\nApi.settings();\n```\n\n### users()\n\nПолучить список пользователей\n\n#### Использование:\n\n```js\nApi.users();\n```\n\n### user(id пользователя)\n\nПолучить информацию о пользователе\n\n#### Использование:\n\n```js\nApi.user(1);\n```\n\n### domains()\n\nПолучить список DNS-доменов\n\n#### Использование:\n\n```js\nApi.domains();\n```\n\n### domain(id домена)\n\nПолучить список DNS-записей домена\n\n#### Использование:\n\n```js\nApi.domain(1);\n```\n\n### sites(максимальное количество, по умолчанию 30)\n\nПолучить список сайтов\n\n#### Использование:\n\n```js\nApi.sites(1);\n```\n\n### site(id сайта)\n\nПолучить информацию о сайте\n\n#### Использование:\n\n```js\nApi.site(1);\n```\n\n### createUser(Данные пользователя)\n\nСоздать пользователя\n\n#### Создание пользователя:\n\n```js\nApi.createUser({\n\tusername: 'test', // логин\n\tpassword: 'qwer12345', // пароль\n\trole: 'user', // группа пользователя\n\tsites: 1 // количество разрешённых сайтов\n});\n```\n\n#### Создание реселлера:\n\n```js\nApi.createUser({\n\tusername: 'test', // логин\n\tpassword: 'qwer12345', // пароль\n\trole: 'reseller', // группа пользователя\n\tsites: 1, // количество разрешённых сайтов\n\tusers: 1, // количество разрешённых пользователей\n\tcreate: true // может ли создавать пользователей\n});\n```\n\n### deleteUser(id пользователя)\n\nУдаляет пользователя\n\n#### Использование:\n\n```js\nApi.deleteUser(16);\n```\n\n### pauseUser(id пользователя)\n\nЗаблокировать аккаунт пользователя\n\n#### Использование:\n\n```js\nApi.pauseUser(16);\n```\n\n### unpauseUser(id пользователя)\n\nРазблокировать аккаунт пользователя\n\n#### Использование:\n\n```js\nApi.unpauseUser(16);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayerdev%2Ffastpanel-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayerdev%2Ffastpanel-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayerdev%2Ffastpanel-api/lists"}