Repository navigation
Package Registry and lpp zip
0x4171341 edited this page Jul 24, 2026
·
1 revision
The official package registry is a GitHub Pages-hosted JSON index:
https://samarnever-droid.github.io/lplusplus/registry/index.json
The registry is Git-based and simple by design. A package entry points to source files in the repository or to raw URLs.
lpp-ziplpp-mathlpp-stringslpp-collectionslpp-algolpp-convert
lpp-zip is the first real package-style library. It is written in L++ and uses binary buffer builtins.
Source:
packages/lpp-zip/src/zip.lpp
Package manifest:
packages/lpp-zip/lpp.toml
zip_create() -> Int
zip_add_file(archive: Int, filename: Str, content: Str)
zip_save(archive: Int, path: Str)
zip_free(archive: Int)
zip_open(path: Str) -> Int
zip_entry_count(handle: Int) -> Int
zip_entry_name(handle: Int, index: Int) -> Str
zip_entry_data(handle: Int, index: Int) -> Str
zip_close(handle: Int)
import zip
def main():
archive := zip_create()
zip_add_file(archive, "hello.txt", "Hello from L++!")
zip_add_file(archive, "numbers.txt", "1 2 3 4 5")
zip_save(archive, "/tmp/example.zip")
zip_free(archive)
handle := zip_open("/tmp/example.zip")
count := zip_entry_count(handle)
print(count)
print_str(zip_entry_name(handle, 0))
print_str(zip_entry_data(handle, 0))
zip_close(handle)
-
lpp-zipdepends heavily onbuf_*builtins. - Host linker runtime is the safest path.
- Freestanding direct runtimes may not support every buffer builtin on every platform yet.
- Package tests must run with the correct package import layout. If
import zipfails, run from the package root or ensuresrc/zip.lppis visible in the import path.
A registry entry should include:
{
"name": "lpp-example",
"version": "0.1.0",
"description": "Example package",
"source_url": "https://raw.githubusercontent.com/.../example.lpp",
"dependencies": [],
"keywords": ["example"]
}