https://github.com/libreservice/micro_plum
Recipe downloader for My RIME
https://github.com/libreservice/micro_plum
Last synced: about 1 year ago
JSON representation
Recipe downloader for My RIME
- Host: GitHub
- URL: https://github.com/libreservice/micro_plum
- Owner: LibreService
- License: lgpl-3.0
- Created: 2023-05-22T23:22:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-17T23:32:03.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T01:03:53.229Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@libreservice/micro-plum
- Size: 54.7 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Micro Plum

Recipe downloader for [My RIME](https://github.com/LibreService/my_rime).
It's designed to fit [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) restrictions.
In short,
there is no free way to clone a GitHub repo to browser,
and you can only download a single file when you know the URL of it
(using raw.githubusercontent.com or cdn.jsdelivr.net).
## Comparison with [plum](https://github.com/rime/plum)
-|plum|Micro Plum
-|-|-
Type|command line tool|JavaScript library
Method|git clone|download 🔁 parse
Parameter|repository|*repository and schema Ids, or schema URL
recipe.yaml|support|**no support
Maintainability|bash 😢 + bat 😭|TypeScript 😄
\* Using plum you still need to assign schema Ids on deploy.
Being able use a single URL of schema mitigates the inconvenience to some extent.
\*\* Due to CORS, it can't expand wildcard.
## License
LGPLv3+
in order to be compatible with plum