Gathering detailed insights and metrics for hashdo-web
Gathering detailed insights and metrics for hashdo-web
Gathering detailed insights and metrics for hashdo-web
Gathering detailed insights and metrics for hashdo-web
npm install hashdo-web
Typescript
Module System
Min. Node Version
Node Version
NPM Version
33.9
Supply Chain
80.1
Quality
68.9
Maintenance
25
Vulnerability
80
License
JavaScript (100%)
Total Downloads
49,337
Last Day
1
Last Week
38
Last Month
263
Last Year
1,537
78 Commits
4 Watching
1 Branches
3 Contributors
Latest Version
0.1.94
Package Id
hashdo-web@0.1.94
Unpacked Size
51.56 kB
Size
18.80 kB
File Count
16
NPM Version
6.1.0
Node Version
10.5.0
Cumulative downloads
Total Downloads
Last day
-83.3%
1
Compared to previous day
Last week
-68.1%
38
Compared to previous week
Last month
2,822.2%
263
Compared to previous month
Last year
-21.7%
1,537
Compared to previous year
Expose #Do functionality through a web API.
Install #Do into your project using NPM.
npm install hashdo-web --save
Require it in your code.
var hdweb = require('hashdo-web');
Setup any plugins you may want to use
1// Use MongoDB instead of default in-memory development database. 2hdweb.hashdo.db = require('hashdo-db-mongo');
Initialise the web server.
1var baseUrl = 'https://myawesomesite.com'; 2var firebaseUrl = 'https://myawesomesite.firebaseio.com'; 3var port = 8080; 4var cardsDir = './node_modules'; 5 6hdweb.init(baseUrl, firebaseUrl, port, cardsDir);
Setup your own routes and/or middleware.
1hdweb.express.get('/', function (req, res) { 2 res.redirect('http://myawesomesite.com'); 3});
Start the web server.
1hdweb.start(function () { 2 console.log('#Do web server is ready to go!'); 3});
The following routes are created to access #Do functionality through HTTP calls.
Retrieve the number of cards that have been loaded in JSON format.
Retrieve the details for cards that have been loaded in JSON format.
Parameter q
can be used to provide a filter for card names. Parameter page
will return the list of card on the requested page number. A maximum of 20 cards will be displayed per page.
Retrieve the details for a specific card.
Parameter pack
refers to the pack name the card belongs to. Parameter card
is the card name.
Allows saving card state directly from the client.
This is called from client code using card.state.save
which is available when clientStateSupport
is enabled for your card.
Allows sending analytics data directly from the client.
This is called from client code using card.analytics.record
which is available when clientAnalyticsSupport
is enabled for your card.
Can be called to update a card's state from an external system.
The body data must be JSON and will be passed into your card's webHook
function for processing.
Secures any body data (secure card inputs) and responds with a token that can be used to decrypt that data. The body data must be JSON and will typically be any card inputs that need to be protected.
Gets card HTML (including inline JavaScript and CSS) for a specific card. URL query parameters are used for card inputs. token
can be used to pass in any secured inputs.
Copyright 2015 (c). All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
77 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More