norfolkjs / npmjs.us Goto Github PK
View Code? Open in Web Editor NEWUnofficial but pretty good US (east) mirror for npm
Home Page: https://registry.npmjs.us
Unofficial but pretty good US (east) mirror for npm
Home Page: https://registry.npmjs.us
Hey @stanzheng, unpublish https://www.npmjs.org/package/npmjsus. I read it as "npm jesus" at first anyway.
This is the official npm module: https://www.npmjs.org/package/npmjs.us
Still not sure if I want to use couchdb's access control. Probably. It needs the following:
Most local mirrors are created for the purpose of reliability.
I see that you're creating a local mirror for the npm registry, but all requests for registry.npmjs.org
from anywhere near Norfolk will hit the Ashland, VA, Fastly POP anyway, which is our shielding cache endpoint for the registry. It seems like any cause of an outage there will either (a) not affect you (if it partitions us-east from the world) or (b) affect npmjs.us just as badly as registry.npmjs.com.
Also, you're proxying all tarball requests to fullfatdb.npmjs.com, so you'll have strictly less reliability than by going through the Fastly endpoint. If your purpose was to colocate a registry in AWS's us-east datacenter to reduce cross-DC bandwidth, you're losing out here, because fullfatdb.npmjs.com is hosted on Joyent, and you're proxying all the bits through your nginx endpoint.
So... what are you trying to do? Maybe we can help :)
The registry can be used during replication, but it will be slower. Current pace of data import suggests completion in about 60 hours.
nginx config is in the etc folder in this repo. Add location
for <owner>
to namespace private modules between users.
They sure do.
with npm 1.3.0:
npm http GET https://registry.npmjs.us/public/underscore-contrib
npm ERR! Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN
npm ERR! at Request.onResponse (/usr/lib/nodejs/npm/node_modules/request/index.js:655:24)
npm ERR! at ClientRequest.g (events.js:192:14)
npm ERR! at ClientRequest.EventEmitter.emit (events.js:96:17)
npm ERR! at HTTPParser.parserOnIncomingClient (http.js:1588:7)
npm ERR! at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
npm ERR! at CleartextStream.socketOnData (http.js:1491:20)
npm ERR! at CleartextStream.CryptoStream._push (tls.js:544:27)
npm ERR! at SecurePair.cycle (tls.js:898:20)
npm ERR! at EncryptedStream.CryptoStream.write (tls.js:285:13)
npm ERR! at Socket.ondata (stream.js:38:26)
hello i am from china
and i have the domain npmsj.cn
but how to set up a mirror and always replicate from npmjs.org?
thx
This is relevant mostly for publishing. npmjs.us
mirror already supports the full GET api. The PUT api is basically not supported at all; npm publish
ing to the npmjs.us
mirror will fail. Some unit tests are in order here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.