{"id":18430732,"url":"https://github.com/bleenco/morose","last_synced_at":"2025-04-07T17:33:50.081Z","repository":{"id":57302893,"uuid":"72294758","full_name":"bleenco/morose","owner":"bleenco","description":"private npm repository and/or proxy server for npmjs.org","archived":false,"fork":false,"pushed_at":"2017-09-12T12:49:22.000Z","size":1990,"stargazers_count":20,"open_issues_count":2,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-17T19:05:46.516Z","etag":null,"topics":["npm","private","proxy","registry","server"],"latest_commit_sha":null,"homepage":"https://morose.bleenco.io","language":"TypeScript","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/bleenco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10-29T16:02:28.000Z","updated_at":"2025-02-04T17:25:48.000Z","dependencies_parsed_at":"2022-08-29T07:30:28.217Z","dependency_job_id":null,"html_url":"https://github.com/bleenco/morose","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleenco%2Fmorose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleenco%2Fmorose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleenco%2Fmorose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleenco%2Fmorose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bleenco","download_url":"https://codeload.github.com/bleenco/morose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247698185,"owners_count":20981315,"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":["npm","private","proxy","registry","server"],"created_at":"2024-11-06T05:22:12.587Z","updated_at":"2025-04-07T17:33:49.608Z","avatar_url":"https://github.com/bleenco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cloud.githubusercontent.com/assets/1796022/26799017/160416cc-4a34-11e7-919e-91d0a2359d8c.png\"\u003e\n\u003c/p\u003e\n\n# morose\n\n[![Build Status](https://travis-ci.org/bleenco/morose.svg?branch=master)](https://travis-ci.org/bleenco/morose)\n\nRun npm registry or npm proxy on your own servers.\n\n`morose` allows you to have a local npm registry with zero configuration. You don't have to install and replicate an entire CouchDB database. `morose` keeps its own small database and, if a package doesn't exist there, it asks npmjs.org for it keeping only those packages you use.\n\n## Table of contents\n\n* [Compatibility](#compatibility)\n* [Use Cases](#use-cases)\n* [Installation](#installation)\n* [Usage](#usage)\n* [Running Tests](#running-tests)\n* [Hacking on morose](#hacking-on-morose)\n* [Setting up nginx reverse proxy](#setting-up-nginx-reverse-proxy)\n* [Inspiration](#inspiration)\n\n## Compatibility\n\n`morose` is compatible with `npm` version `5` and beyond.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/1796022/26878368-85bc3850-4b8d-11e7-9d6b-8bee91a41280.png\"\u003e\n\u003c/p\u003e\n\n## Use cases\n\n- Use private packages.\n\nIf you want to use all benefits of npm package system in your company without sending all code to the public, and use your private packages just as easy as public ones.\n\n- Cache npmjs.org registry.\n\nIf you have more than one server you want to install packages on, you might want to use this to decrease latency (presumably \"slow\" npmjs.org will be connected to only once per package/version) and provide limited failover (if npmjs.org is down, we might still find something useful in the cache).\n\n- Override public packages.\n\nIf you want to use a modified version of some 3rd-party package (for example, you found a bug, but maintainer didn't accept pull request yet), you can publish your version locally under the same name.\n\n## Installation\n\n```sh\n$ npm install morose -g\n```\n\n## Usage\n\n### Running a Server\n\n```sh\nmorose\n```\n\nWhen you start a server for the first time, configuration is created in `~/.morose` directory.\n\nNow you can navigate to `http://localhost:10000` in your browser where your packages can seen and searched.\n\n### Setting up npm config to use morose\n\n```sh\nnpm set registry http://localhost:10000\n```\n\n## Running tests\n\n* server unit tests\n\n```sh\nnode tests/run.js\n```\n\n* server end-to-end tests\n\n```sh\nnode tests/run_e2e.js\n```\n\n* app end-to-end Protractor tests\n\nFirst make sure `morose` is running, then;\n\n```sh\nnpm run protractor\n```\n\n## Hacking on morose\n\n### Running from source\n\n1. Clone this repository\n\n```sh\ngit clone https://github.com/bleenco/morose.git --depth 1\n```\n\n2. Build morose project\n\n```sh\nnpm run build:prod\n```\n\n3. Link morose to have global command\n\n```sh\nnpm link\n```\n\n4. Run command\n\n```sh\nmorose\n```\n\n...or, you can skip steps `2.`, `3.` and `4.` and start project in dev mode\n\n```sh\nnpm run dev\n```\n\n## Setting up nginx reverse proxy\n\n```nginx\nserver {\n  listen 80;\n  server_name morose.example.com;\n\n  location / {\n    proxy_set_header        Host $host;\n    proxy_set_header        X-Real-IP $remote_addr;\n    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;\n    proxy_set_header        X-Forwarded-Proto $scheme;\n    proxy_pass              http://localhost:10000;\n  }\n}\n```\n\n## Inspiration\n\n`morose` is heaviliy inspired by `sinopia` and we also used some stuff from there.\nThe main reason to make a new package with similar behavior is that `sinopia` is not updated anymore and as far as we know some `npm` commands doesn't work there.\n\n`morose` is build with in the way that is compatible with the newest `npm` releases.\n\n## LICENCE\n\n**MIT**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbleenco%2Fmorose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbleenco%2Fmorose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbleenco%2Fmorose/lists"}