Gathering detailed insights and metrics for hexo-generator-searchdb
Gathering detailed insights and metrics for hexo-generator-searchdb
Gathering detailed insights and metrics for hexo-generator-searchdb
Gathering detailed insights and metrics for hexo-generator-searchdb
npm install hexo-generator-searchdb
76.8
Supply Chain
93.8
Quality
78
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
69 Stars
53 Commits
5 Forks
2 Watching
3 Branches
9 Contributors
Updated on 13 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
6.7%
538
Compared to previous day
Last week
1%
2,909
Compared to previous week
Last month
4.1%
12,561
Compared to previous month
Last year
63.4%
151,191
Compared to previous year
1
2
Seach data generator plugin for Hexo.
This plugin is used for generating a search index file, which contains all the necessary data of your articles that you can use to write a local search engine for your blog. Supports both XML and JSON format output.
1npm install hexo-generator-searchdb
You can configure this plugin in your root _config.yml
. All the arguments are optional.
1search: 2 path: search.xml 3 field: post 4 content: true 5 format: html
search.xml
. If the file extension is .json
, the output format will be JSON. Otherwise XML format file will be exported.false
, the generated results only cover title and other meta info without mainbody. By default is true
.This plugin is used for generating a xml / json file from your Hexo blog that provides data for searching.
After executing hexo g
you will get the generated result at your public folder.
You have two choices:
you don't want to write search engine by yourself. There are many themes that take use this plugin for local searching that works out of box.
you are familiar with JavaScript and would like to write your own search engine. You can implement one by yourself according to the template code search.js
. There is no documentation at present, but you can find its usage in the source code of the theme NexT. Generally there are 3 steps:
search.js
script via CDN, for example:1<script src="https://cdn.jsdelivr.net/npm/hexo-generator-searchdb@1.4.0/dist/search.js"></script>
A LocalSearch
class is provided in the search.js
which tells the browser how to grab search data and filter out contents what we're searching;
LocalSearch
class.No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 0/17 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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2024-11-18
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