{"id":16758431,"url":"https://github.com/kessler/node-sinopia-leveldb","last_synced_at":"2025-04-10T17:13:56.471Z","repository":{"id":57361815,"uuid":"61892116","full_name":"kessler/node-sinopia-leveldb","owner":"kessler","description":"a leveldb backed auth plugin for sinopia private npm","archived":false,"fork":false,"pushed_at":"2016-08-01T20:41:38.000Z","size":11,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T03:31:52.652Z","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/kessler.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}},"created_at":"2016-06-24T14:59:00.000Z","updated_at":"2020-01-07T11:08:10.000Z","dependencies_parsed_at":"2022-09-26T16:41:04.492Z","dependency_job_id":null,"html_url":"https://github.com/kessler/node-sinopia-leveldb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-sinopia-leveldb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-sinopia-leveldb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-sinopia-leveldb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kessler%2Fnode-sinopia-leveldb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kessler","download_url":"https://codeload.github.com/kessler/node-sinopia-leveldb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261913,"owners_count":21074225,"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","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":"2024-10-13T04:05:17.294Z","updated_at":"2025-04-10T17:13:56.449Z","avatar_url":"https://github.com/kessler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sinopia-leveldb\n\n**a leveldb backed auth plugin for [sinopia private npm](https://github.com/rlidwka/sinopia)**\n\n- This plugin saves only hashes of the password\n- Plugin comes with an api tool to perform various operations (see below)\n- Supports groups, groups can be used in sinopia's config.yaml to restrict access to packages\n\n[![npm status](http://img.shields.io/npm/v/sinopia-leveldb.svg?style=flat-square)](https://www.npmjs.org/package/sinopia-leveldb) [![Dependency status](https://img.shields.io/david/kessler/node-sinopia-leveldb.svg?style=flat-square)](https://david-dm.org/kessler/node-sinopia-leveldb)\n\n## set up\n\n#### install sinopia and the plug in\n```\nnpm install -g sinopia\nnpm install -g sinopia-leveldb\n```\n\n#### add this to config.yaml, in the auth section:\n```yaml\nauth:\n  leveldb:\n    file: ./userdb\n\n    # replace the control port use to communicate \n    # between the cli and sinopia.\n    # this configuration is optional\n    # controlServerPort: 4874\n```\nThe db path is relative to the location of sinopia's config.yaml\nYou should also remove ```htpasswd ``` plugin if it's there\n\n#### fire up sinopia\n```\nsinopia\n```\nI usually use pm2 for this. \n\n#### use the cli tool to initialize the database\nWith a root user, pick any name\n```\nsinopia-leveldb init myuser\n```\n\n***The cli provide in itself is not secure and is designed to work on the machine that is running sinopia***\n\n## other cli commands\n\n#### set password\n```\nsinopia-leveldb set-password myuser\n```\n\n#### add user to groups\n```\nsinopia-leveldb add-group myuser somegroup\n```\n\n#### list user's groups\n```\nsinopia-leveldb list myuser\n```\n\n#### list all users with their groups\n```\nsinopia-leveldb list\n```\n\n## license\n\n[MIT](http://opensource.org/licenses/MIT) © yaniv kessler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-sinopia-leveldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkessler%2Fnode-sinopia-leveldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkessler%2Fnode-sinopia-leveldb/lists"}