Sanctuary
spartan-schema
Our great sponsors
Sanctuary | spartan-schema | |
---|---|---|
5 | 12 | |
3,013 | 431 | |
0.1% | - | |
7.1 | 2.7 | |
3 months ago | about 1 year ago | |
JavaScript | TypeScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Sanctuary
-
Ask HN: Freelancer? Seeking freelancer? (February 2024)
SEEKING WORK • Berlin, Germany • Remote or on-site • Software developer
I'm a software developer with 13 years of experience. I love leveraging software to save people time. I have a background in (visual) design and consider design to be crucial to the development of all software (even software with no visible interface).
I have deep knowledge of JavaScript. I have also worked professionally with TypeScript, Python, and Haskell. I enjoy working with HTML and CSS. I know React, and I'm looking for an opportunity to learn htmx.
I have created Sanctuary (https://sanctuary.js.org/) and several other libraries. :)
https://davidchambers.me/cv/
-
Ask HN: Who wants to be hired? (February 2024)
Location: Berlin, Germany
Remote: Yes
Willing to relocate: Possibly
Technologies: JavaScript, TypeScript, Python, Haskell, Clojure, Bash, SQL, HTML, CSS, React, htmx, functional programming
Résumé/CV: https://davidchambers.me/cv/
Email: [email protected]
Author of Sanctuary (https://sanctuary.js.org/) and several other libraries. I love writing parsers and interpreters. I enjoy writing shell scripts more than is healthy (ShellCheck is amazing). I love hyperlinks and discovering web standards.
-
Hegel – An advanced static type checker for JavaScript
I wonder if this will be something that functional libraries like Ramda [1] or Sanctuary [2] will be able to benefit from.
One of the reasons these libraries don't work so well with TS is that it doesn't have ML-style whole program inference and hence doesn't work so well with patterns like currying. Hegel seems more capable in that regard.
[1] https://ramdajs.com/
[2] https://github.com/sanctuary-js/sanctuary
-
Introduction to Functional Programming in JavaScript
Fortunately, as it has been shown in this article, it’s definitely possible to use functional programming with plain JavaScript. However, if you really want to dive deeper into this paradigm while using JavaScript, you’ll probably want to use some already existing functional libraries such as Sanctuary, Fluture, Ramda and others.
-
Sanctuary Cheat Sheet
Hey everyone, I put together a [Cheat Sheet](https://github.com/identinet/sanctuary-cheat-sheet) for [Sanctuary](https://sanctuary.js.org/) that I hope is helpful to you.
spartan-schema
-
Hegel – An advanced static type checker for JavaScript
In the same vein, shameless plug for my own library, Spartan Schema:
https://github.com/ar-nelson/spartan-schema
It does the same thing as Zod, but is much smaller/simpler and its types always have a JSON representation.
- Spartan Schema: Like JSON Schema, but simpler, and with automatic Typescript types
- Ultra-minimal JSON schemas with TypeScript inference
What are some alternatives?
ramda - :ram: Practical functional Javascript
ts-to-zod - Generate zod schemas from typescript types/interfaces
RxJS
flow-runtime - A runtime type system for JavaScript with full Flow compatibility.
Index - ⚡ Pattern Matching in Typescript
Hegel - An advanced static type checker
Rambda - Faster and smaller alternative to Ramda
ts-simple-type - Relationship type checker functions for Typescript types.
lodash - A modern JavaScript utility library delivering modularity, performance, & extras.
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
underscore-contrib - The brass buckles on Underscore's utility belt
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.