nel 1.1.0 copy "nel: ^1.1.0" to clipboard
nel: ^1.1.0 copied to clipboard

A Dart Repository Server.

Nel - A Dart Repository Server #

pub package

In order to use authentication, set the following environment variables:
JWT_PRIVATE_KEY_PEM: EC private key in PEM format used to verify JWT tokens

Generating JWT Tokens

To generate JWT tokens, you can use the following tool:

dart run bin/gen_jwt.dart

Permission requested for the jwt should be an integer value representing bit flags.
For example, to request read (4) and write (2) permissions, use 6 (4 | 2).
Permission 1 is reserved and should not be used (it may be used in future versions).



A server app built using Shelf, configured to enable running with Docker.

Running with the Dart SDK #

You can run the example with the Dart SDK like this:

$ dart run bin/nel.dart
Server listening on port 8080

And then from a second terminal:

$ curl http://0.0.0.0:8080
Hello, World!
$ curl http://0.0.0.0:8080/api/packages/I_love_Dart
<package versions info>