Comments (2)
Ok, i don't immediately see a way of ameliorating tweetnacl
, so that looks ok i suppose. BTW, minifying gives me this:
total 1408
-rw-r--r-- 1 nick staff 688K Oct 26 10:26 bundle.js
-rw-r--r-- 1 nick staff 314B Oct 26 10:26 index.html
-rw-r--r-- 1 nick staff 671B Oct 26 10:26 style.css
-rw-r--r-- 1 nick staff 290B Oct 26 10:26 style.css.map
from ts-ucan.
The ucan library uses tweetnacl
for Ed25519 cryptography, which is a pure-js implementation and contributes a bit to the bundle size.
However, it doesn't have to contribute 2.5 megabytes. Here's your resulting bundle: https://ucan-demo.netlify.app/bundle.js
It (1) isn't minified and (2) contains the whole source-map inline.
(2) probably contributes multiple megabytes to the bundle. Turning on minification (1) should help as well.
from ts-ucan.
Related Issues (20)
- `npm i` fails after cloning the repo HOT 1
- Display UCAN version in README
- Update to v0.10 spec HOT 2
- Outdated code in repo? HOT 1
- Cannot export keys with p256 plugin HOT 1
- consider using dag-json instead of json.stringify HOT 4
- Remove dependencies HOT 20
- Compressed public key DID for NIST ECDSA curves HOT 3
- tsconfig monorepo tricks like config inheritance & a composite config with references to other packages
- Leveraging WebAssembly? HOT 4
- Builder.delegateCapability fails for tokens originating from delegation HOT 1
- Lock uint8arrays at 3.0.0 HOT 2
- Canonicalize UCANs by default HOT 1
- ESM build is incompatible with Node.js ESM HOT 1
- Release please? HOT 10
- Fix readme
- `npm install` fails HOT 1
- encode + decode
- encode + parse HOT 5
- More bounds checking
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-ucan.