Fetch API compatible, complex form data / JSON body parser and guard
Hi, We've been working on open sourcing our streaming complex body parser/guard and wouldn't mind some more people contributing. It features: - JSON, urlencoded AND multipart form data parsing - Out-of-the-box constraints for resulting object depth, key amount and size; definable globally and per call, preventing resource exhaustion by bailing on the stream if limits are exceeded - Multi-boundary (!) multipart form data parsing - Multidimensional array form data with auto-increment and explicit indexes (formElement[] vs formElement[0]) - Object form data with dot notation, including…
What it does
In the maker’s words, at launch
Hi, We've been working on open sourcing our streaming complex body parser/guard and wouldn't mind some more people contributing. It features: - JSON, urlencoded AND multipart form data parsing - Out-of-the-box constraints for resulting object depth, key amount and size; definable globally and per call, preventing resource exhaustion by bailing on the stream if limits are exceeded - Multi-boundary (!) multipart form data parsing - Multidimensional array form data with auto-increment and explicit indexes (formElement[] vs formElement[0]) - Object form data with dot notation, including arbitrary amounts of nesting with arrays (<input name="foo.bar[].baz" value="it works!" />) - Typed output for the resulting object if you use a (user-specified) validator like Zod - Optional automatic casting for numbers and booleans in form data It's originally done for SvelteKit projects, but nothing's stopping you from using it in Hono, Next, etc. Thanks!
Does the same job
all alternatives →
- LFLink.fish – API to extract data from websites as JSON2017 · link.fish · ▲201

- JMJSON5 — modern JSON2012 · github.com · ▲64
- SFStaticJSON: fast, direct and static typed parsing of JSON with C++2016 · github.com · ▲18
- SAShunter – a Node.js application to read JSON and translate it into HTML2015 · github.com · ▲33
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, August 2023
the whole month →



Lottielab▲871Create and ship lottie animations to sites and apps faster
Dev tools · 2023 · lottielab.com
- LC
Outlines is a Python library that focuses on text generation with large language models. Brandon and I are not LLM experts and started the project a few months ago because we wanted to understand better how the generation process works. Our original background is probabilistic, relational and symbolic programming. Recently we came up with a fast way to generate text that matches a regex (https://blog.normalcomputing.ai/posts/2023-07-27-regex-guide...). The basic idea is simple: regular expressions have an equivalent Deterministic-Finite Automaton (DFA) representation. We…
AI · 2023 · github.com