https://github.com/royalicing/silverorb
https://github.com/royalicing/silverorb
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/royalicing/silverorb
- Owner: RoyalIcing
- Created: 2023-08-17T15:02:48.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T10:38:44.000Z (about 1 year ago)
- Last Synced: 2025-05-08T21:29:11.024Z (about 1 year ago)
- Language: Elixir
- Size: 233 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🕸️🔋 SilverOrb: the standard library for Orb
WebAssembly is low level — you essentially get to define global variables, an array of memory, and some functions to operate on them. It’s not batteries-included.
SilverOrb provides these batteries so common tasks are easier. They are:
- [`StringBuilder`](https://hexdocs.pm/silver_orb/SilverOrb.StringBuilder.html) for assembling strings from dynamic parts.
- `IntFormatter` for converting integers to strings.
- `ISO8601` for parsing dates and times.
- `Arena` allocator for memory management.
- `ASCII` (coming soon) for operating on ASCII strings.
- `UTF8` (coming soon) for operating on UTF-8 strings.
- `IntParser` (coming soon) for converting strings to integers.
- `XMLBuilder` (coming soon) for assembling XML from dynamic parts.
- `FormData` (coming soon) for decoding/encoding `application/x-www-form-urlencoded` strings.
- `URLSearchParams` (coming soon) for decoding/encoding URL query strings.
- `URL` (coming soon) for decoding/encoding URLs.
- `Request` (later) for encoding HTTP/1 requests.
- `Response` (later) for encoding HTTP/1 responses.
- `Iterator` (coming soon) for creating a custom sequence type that can be iterated through.
## Installation
The package can be installed by adding `silver_orb` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:silver_orb, "~> 0.0.10"}
]
end
```
## Inspiration
- https://www.rfleury.com/p/untangling-lifetimes-the-arena-allocator