Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete service for package names #10

Open
cheapsteak opened this issue Apr 5, 2016 · 3 comments
Open

Autocomplete service for package names #10

cheapsteak opened this issue Apr 5, 2016 · 3 comments

Comments

@cheapsteak
Copy link
Owner

cheapsteak commented Apr 5, 2016

update:
Use this endpoint

https://registry.npmjs.org/-/v1/search?text=@blueprintjs/core&popularity=1 (no cors anymore?)

{"objects":[{"package":{"name":"@blueprintjs/core","scope":"blueprintjs","version":"3.35.0","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2020-10-22T20:27:20.202Z","links":{"npm":"https://www.npmjs.com/package/%40blueprintjs%2Fcore","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"blueprintjs","email":"[email protected]"},"maintainers":[{"username":"blueprintjs","email":"[email protected]"}]},"score":{"final":0.34707235929565494,"detail":{"quality":0.4279804095296444,"popularity":0.29146162791455704,"maintenance":0.3333333333333333}},"searchScore":100000.36},{"package":{"name":"blueprintjs-core-acms","scope":"unscoped","version":"3.22.5","description":"Core styles & components","keywords":["blueprint","components","styles","theme","ui"],"date":"2019-12-14T23:34:29.052Z","links":{"npm":"https://www.npmjs.com/package/blueprintjs-core-acms"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"davronsherbaev","email":"[email protected]"},"maintainers":[{"username":"davronsherbaev","email":"[email protected]"}]},"score":{"final":0.23679618174692377,"detail":{"quality":0.4279804095296444,"popularity":0.001631761531632976,"maintenance":0.30808840671988263}},"searchScore":0.00003629999},{"package":{"name":"@invisionag/blueprintjs-core","scope":"invisionag","version":"3.18.0-refactor-lifecycle-methods.0","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2019-08-20T07:27:34.892Z","links":{"npm":"https://www.npmjs.com/package/%40invisionag%2Fblueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"tobilen","email":"[email protected]"},"maintainers":[{"username":"ivx-jenkins","email":"[email protected]"},{"username":"mmainz","email":"[email protected]"},{"username":"yichang","email":"[email protected]"},{"username":"ivx-circle-ci","email":"[email protected]"},{"username":"drogglbecher","email":"[email protected]"},{"username":"tobilen","email":"[email protected]"},{"username":"kaibrueckers","email":"[email protected]"},{"username":"mwannewitz","email":"[email protected]"},{"username":"susahope","email":"[email protected]"},{"username":"joshuajaco","email":"[email protected]"},{"username":"t_klepzig","email":"[email protected]"},{"username":"alexmarold","email":"[email protected]"},{"username":"jana_hehr","email":"[email protected]"},{"username":"fruetel","email":"[email protected]"},{"username":"tristandruyen","email":"[email protected]"},{"username":"schmitze333","email":"[email protected]"},{"username":"csprle","email":"[email protected]"},{"username":"tsupertramp","email":"[email protected]"},{"username":"yguezeldal","email":"[email protected]"},{"username":"beckerei","email":"[email protected]"},{"username":"stefan.schiffer","email":"[email protected]"},{"username":"alexphilo","email":"[email protected]"},{"username":"ahx","email":"[email protected]"},{"username":"cloudwaechter","email":"[email protected]"},{"username":"tobias","email":"[email protected]"}]},"score":{"final":0.23858317457861977,"detail":{"quality":0.4279804095296444,"popularity":0.021802234318442932,"maintenance":0.2930236277379184}},"searchScore":0.00003263913},{"package":{"name":"@xrc-inc/blueprintjs-core","scope":"xrc-inc","version":"3.13.0-1","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2019-02-21T11:11:10.197Z","links":{"npm":"https://www.npmjs.com/package/%40xrc-inc%2Fblueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"victorwong","email":"[email protected]"},"maintainers":[{"username":"echozh","email":"[email protected]"},{"username":"idy","email":"[email protected]"},{"username":"sword.guo","email":"[email protected]"},{"username":"victorwong","email":"[email protected]"}]},"score":{"final":0.1833595871738048,"detail":{"quality":0.33178871651365804,"popularity":0.02711204481575144,"maintenance":0.21238216152626962}},"searchScore":7.795477e-7},{"package":{"name":"qy-blueprintjs-core","scope":"unscoped","version":"4.0.1","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2019-07-26T07:51:19.982Z","links":{"npm":"https://www.npmjs.com/package/qy-blueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"qianyue","email":"[email protected]"},"maintainers":[{"username":"qianyue","email":"[email protected]"}]},"score":{"final":0.15241532062711263,"detail":{"quality":0.4279804095296444,"popularity":0.0013461400489670455,"maintenance":0.06728585357451673}},"searchScore":1.2073734e-7},{"package":{"name":"santas-blueprintjs-core","scope":"unscoped","version":"1.4.1","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2016-12-21T15:13:20.714Z","links":{"npm":"https://www.npmjs.com/package/santas-blueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"peter.sandtner","email":"[email protected]"},"maintainers":[{"username":"peter.sandtner","email":"[email protected]"}]},"score":{"final":0.13274234343893226,"detail":{"quality":0.4403976481166808,"popularity":0.0017801400112229956,"maintenance":0}},"searchScore":2.0023469e-8},{"package":{"name":"@bs-blueprintjs/core","scope":"bs-blueprintjs","version":"0.3.1","description":"BuckleScript bindings for Blueprintjs","date":"2017-09-05T14:33:34.720Z","links":{"npm":"https://www.npmjs.com/package/%40bs-blueprintjs%2Fcore","homepage":"https://github.com/shanewilson/bs-blueprintjs#readme","repository":"https://github.com/shanewilson/bs-blueprintjs","bugs":"https://github.com/shanewilson/bs-blueprintjs/issues"},"author":{"name":"Shane Wilson"},"publisher":{"username":"shanewilson","email":"[email protected]"},"maintainers":[{"username":"shanewilson","email":"[email protected]"}]},"flags":{"unstable":true},"score":{"final":0.08181918230432599,"detail":{"quality":0.23913833663790884,"popularity":0.02879337517986666,"maintenance":0}},"searchScore":1.2491702e-11}],"total":7,"time":"Fri Oct 23 2020 15:48:19 GMT+0000 (UTC)"}

or this

https://api.npms.io/v2/search/suggestions?q=@blueprintjs/core (better results?)

[{"package":{"name":"@blueprintjs/core","scope":"blueprintjs","version":"3.32.1","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2020-09-23T01:56:57.705Z","links":{"npm":"https://www.npmjs.com/package/%40blueprintjs%2Fcore","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"blueprintjs","email":"[email protected]"},"maintainers":[{"username":"blueprintjs","email":"[email protected]"}]},"score":{"final":0.6702192901469012,"detail":{"quality":0.88358007500181,"popularity":0.4659753170453448,"maintenance":0.6915825905156787}},"searchScore":1012.16376,"highlight":"@<em>blueprintjs</em>/<em>core</em>"},{"package":{"name":"@xrc-inc/blueprintjs-core","scope":"xrc-inc","version":"3.13.0-1","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2019-02-21T11:11:10.197Z","links":{"npm":"https://www.npmjs.com/package/%40xrc-inc%2Fblueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"victorwong","email":"[email protected]"},"maintainers":[{"username":"echozh","email":"[email protected]"},{"username":"idy","email":"[email protected]"},{"username":"sword.guo","email":"[email protected]"},{"username":"victorwong","email":"[email protected]"}]},"score":{"final":0.5259843135749891,"detail":{"quality":0.8238403737433894,"popularity":0.2621713093530387,"maintenance":0.5344921233668823}},"searchScore":7.764732,"highlight":"@xrc-inc/<em>blueprintjs</em>-<em>core</em>"},{"package":{"name":"blueprintjs-core-acms","scope":"unscoped","version":"3.22.5","description":"Core styles & components","keywords":["blueprint","components","styles","theme","ui"],"date":"2019-12-14T23:34:29.052Z","links":{"npm":"https://www.npmjs.com/package/blueprintjs-core-acms"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"davronsherbaev","email":"[email protected]"},"maintainers":[{"username":"davronsherbaev","email":"[email protected]"}]},"score":{"final":0.16294929503516872,"detail":{"quality":0.19898039221964037,"popularity":0.0013497941865722662,"maintenance":0.2936649982970752}},"searchScore":2.636988,"highlight":"<em>blueprintjs</em>-<em>core</em>-acms"},{"package":{"name":"@bs-blueprintjs/core","scope":"bs-blueprintjs","version":"0.3.1","description":"BuckleScript bindings for Blueprintjs","date":"2017-09-05T14:33:34.720Z","links":{"npm":"https://www.npmjs.com/package/%40bs-blueprintjs%2Fcore","homepage":"https://github.com/shanewilson/bs-blueprintjs#readme","repository":"https://github.com/shanewilson/bs-blueprintjs","bugs":"https://github.com/shanewilson/bs-blueprintjs/issues"},"author":{"name":"Shane Wilson"},"publisher":{"username":"shanewilson","email":"[email protected]"},"maintainers":[{"username":"shanewilson","email":"[email protected]"}]},"flags":{"unstable":true},"score":{"final":0.15715102839607487,"detail":{"quality":0.2677806568747299,"popularity":0.0625191997914442,"maintenance":0.15695746116185838}},"searchScore":2.6029463,"highlight":"@bs-<em>blueprintjs</em>/<em>core</em>"},{"package":{"name":"@logicalclocks/quartz-blueprintjs-core","scope":"logicalclocks","version":"3.31.0","description":"Fork of Blueprint JS: core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2020-09-10T15:16:29.213Z","links":{"npm":"https://www.npmjs.com/package/%40logicalclocks%2Fquartz-blueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"logicalclocks"},"publisher":{"username":"giardiv","email":"[email protected]"},"maintainers":[{"username":"steffengr","email":"[email protected]"},{"username":"dowlingj","email":"[email protected]"},{"username":"giardiv","email":"[email protected]"}]},"score":{"final":0.17763513735276593,"detail":{"quality":0.19898039221964037,"popularity":0.003641008629163338,"maintenance":0.3333333333333333}},"searchScore":2.5506647,"highlight":"@logicalclocks/quartz-<em>blueprintjs</em>-<em>core</em>"},{"package":{"name":"qy-blueprintjs-core","scope":"unscoped","version":"4.0.1","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2019-07-26T07:51:19.982Z","links":{"npm":"https://www.npmjs.com/package/qy-blueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"qianyue","email":"[email protected]"},"maintainers":[{"username":"qianyue","email":"[email protected]"}]},"score":{"final":0.07826600277116157,"detail":{"quality":0.19898039221964037,"popularity":0.0015352001038481393,"maintenance":0.05152732876835031}},"searchScore":1.2751418,"highlight":"qy-<em>blueprintjs</em>-<em>core</em>"},{"package":{"name":"@invisionag/blueprintjs-core","scope":"invisionag","version":"3.18.0-refactor-lifecycle-methods.0","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2019-08-20T07:27:34.892Z","links":{"npm":"https://www.npmjs.com/package/%40invisionag%2Fblueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"tobilen","email":"[email protected]"},"maintainers":[{"username":"ivx-jenkins","email":"[email protected]"},{"username":"mmainz","email":"[email protected]"},{"username":"yichang","email":"[email protected]"},{"username":"ivx-circle-ci","email":"[email protected]"},{"username":"drogglbecher","email":"[email protected]"},{"username":"tobilen","email":"[email protected]"},{"username":"kaibrueckers","email":"[email protected]"},{"username":"mwannewitz","email":"[email protected]"},{"username":"susahope","email":"[email protected]"},{"username":"joshuajaco","email":"[email protected]"},{"username":"t_klepzig","email":"[email protected]"},{"username":"alexmarold","email":"[email protected]"},{"username":"jana_hehr","email":"[email protected]"},{"username":"fruetel","email":"[email protected]"},{"username":"tristandruyen","email":"[email protected]"},{"username":"schmitze333","email":"[email protected]"},{"username":"csprle","email":"[email protected]"},{"username":"tsupertramp","email":"[email protected]"},{"username":"yguezeldal","email":"[email protected]"},{"username":"beckerei","email":"[email protected]"},{"username":"stefan.schiffer","email":"[email protected]"},{"username":"alexphilo","email":"[email protected]"},{"username":"ahx","email":"[email protected]"},{"username":"cloudwaechter","email":"[email protected]"},{"username":"tobias","email":"[email protected]"}]},"score":{"final":0.07637842093502449,"detail":{"quality":0.19898039221964037,"popularity":0.02186148545152989,"maintenance":0.02580795246027691}},"searchScore":1.2167931,"highlight":"@invisionag/<em>blueprintjs</em>-<em>core</em>"},{"package":{"name":"santas-blueprintjs-core","scope":"unscoped","version":"1.4.1","description":"Core styles & components","keywords":["palantir","blueprint","components","styles","theme","ui"],"date":"2016-12-21T15:13:20.714Z","links":{"npm":"https://www.npmjs.com/package/santas-blueprintjs-core","homepage":"https://github.com/palantir/blueprint#readme","repository":"https://github.com/palantir/blueprint","bugs":"https://github.com/palantir/blueprint/issues"},"author":{"name":"Palantir Technologies"},"publisher":{"username":"peter.sandtner","email":"[email protected]"},"maintainers":[{"username":"peter.sandtner","email":"[email protected]"}]},"score":{"final":0.06032378604411917,"detail":{"quality":0.19898039221964037,"popularity":0.0017990525092201712,"maintenance":0}},"searchScore":0.9704795,"highlight":"santas-<em>blueprintjs</em>-<em>core</em>"}]

UI - probably this one https://www.npmjs.com/package/vue-autosuggest

@cheapsteak cheapsteak changed the title Autosuggestion for package names Autocomplete for package names Apr 5, 2016
@cheapsteak cheapsteak changed the title Autocomplete for package names Autocomplete service for package names Apr 5, 2016
@cheapsteak
Copy link
Owner Author

Update:
couchdb can be queried via
https://skimdb.npmjs.com/registry/_all_docs?startkey="query"&limit=5

npm said they'd be okay with proxying the data as long as traffic isn't too much

If/when traffic increases we can host our own instance of the registry's couch db

@Jolg42
Copy link

Jolg42 commented Feb 11, 2021

npms data can be unreliable

npm is thinking about adding CORS to registry endpoints npm/feedback#117 (comment)

@Jolg42
Copy link

Jolg42 commented Feb 11, 2021

Current workaround if CORS is a problem npm/feedback#117 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants