marcsatskyhunter / capper Goto Github PK
View Code? Open in Web Editor NEWA web application server with built-in object capability security built on Node.js/Express
A web application server with built-in object capability security built on Node.js/Express
I only see how to return JSON objects from methods. I'd like to return an image (preferably: a list of images). I can send base64 encoded bytes, but that's sort of tedious.
Suggestions?
I'm looking at ways to tweak invokeActor
to use res.sendFile()
but all the approaches I see look awkward.
I'd like to subscribe to database events using mysql-events. It looks like websockets and express get along reasonably well... Ideally, capper would integrate with q-connection for two-way messaging.
I have a vague recollection of discussion of this somewhere, but as I'm about to do some coding in this area, I figured I'd put it in the queue here.
When I tried node --harmony server -make hello
on current node.js, I got a silent failure.
The new flag to get proxies is --harmony-proxies
.
The silent failure was a real pain to diagnose.
Capper was the one of the few apps that motivated me to go through the hassle of setting up an SSL key and such, and the first to motivate me to set up a CA cert (so that I can get at my capper app from my android tablet).
The large random number sparse caps work well for authorization, but while we're at it, how about integrity? How about URLs such as https://myhost:1341/FINGERPRINT/ocaps/#s=82q1...
? This would make them YURLs.
I might try this out... pki.js looks promising.
Based on a clue, I get:
Capper$ openssl x509 -noout -in ssl/server.crt -fingerprint -sha1
SHA1 Fingerprint=AF:1B:04:F8:76:61:33:2B:E1:88:60:80:1D:C4:02:9D:FC:DA:6B:0B
Capper$ openssl x509 -noout -in ssl/server.crt -fingerprint -sha256
SHA256 Fingerprint=FF:C1:4A:7D:47:D7:F6:AE:E2:95:4B:E0:9E:36:55:DC:7E:99:4A:CF:BD:38:B7:0F:78:28:B0:86:2C:F8:E6:0B
For bonus points: encrypt the capper.db with the same key.
I'm trying to use capper in my projects. So far, I haven't checked in the capper sources but just the code I'm writing. But it's a wierd set-up to mix my code inside capper.
I'd much rather npm install capper
and use it like any other npm package. I'd rather call into it and pass in functions such as reviverToUIPath
and reviverToMaker
.
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.