Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wenxuanjun/vindex
Fast Indexer written in V, compatible with nginx's autoindex module.
https://github.com/wenxuanjun/vindex
Last synced: about 1 month ago
JSON representation
Fast Indexer written in V, compatible with nginx's autoindex module.
- Host: GitHub
- URL: https://github.com/wenxuanjun/vindex
- Owner: wenxuanjun
- License: gpl-3.0
- Created: 2022-10-06T07:27:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T13:31:31.000Z (over 1 year ago)
- Last Synced: 2024-08-04T01:03:01.319Z (5 months ago)
- Language: V
- Homepage:
- Size: 26.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-v - vindex - A simple file list server generating json strings, compatible with nginx's autoindex module. (Applications / Command-line)
README
# vindex - Fast Indexer written in V
Generate json string for a directory which is compatible with nginx's `autoindex` module.
## Usage
```bash
$ ./vindex -h
Usage: vindex [options]Description: Fast and simple file list server written in V
This application does not expect any arguments
Options:
-l, --host host for listening, default is 127.0.0.1
-p, --port port for listening, default is 3000
-d, --dir base dir of the indexer, default is ./
-v, --verbose print full path when verbose, default is true
-h, --help display this help and exit
--version output version information and exit
```## Compile
```bash
$ v -prod -skip-unused -cc gcc -cflags "-O3 -static -flto" .
```## TODO
- [x] Use a faster implementation to replace WaitGroup
- [ ] No GC, complete manual memory management