Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/se7entyse7en/npm-packages-deps-retrieval


https://github.com/se7entyse7en/npm-packages-deps-retrieval

Last synced: 24 days ago
JSON representation

Awesome Lists containing this project

README

        

# npm-packages-deps-retrieval

## Running

The requirements are: `docker`, `docker-compose`, `make`.
To run the application, you need to clone the repository and run the following commands:
```
$ make docker-build
$ make start
```

Go to `http://localhost:8000`.

## TODOs

- [ ] Add diagram of the architecture
- [ ] Add a way to observe components stats
- [ ] Add tests
- [ ] Add error message in web page
- [ ] Dockerize application

## Ideas

- Use npm registry webhook to point to the `dispatcher`
- Use a graph database that should be much more suitable for this data
- Add an in-memory LRU cache to both workers and APIs
- Add a distributed in-memory LRU cache (redis)
- Before hitting the DB it may worth adding a bloom filter on top
- For each package with unpinned dependencies, consider each compatible ones

## Limitations

- Dependencies prefixed with `~` `^` are threated as pinned
- Dependencies with different qualifiers (`>=`, `<`, etc.) are ignored