An opinionated approach to have type safety in native JavaScript
Post about Avocado, a small library and pattern guide to help you with type safety and data validation in native JavaScript.
An opinionated approach to have type safety in native JavaScript launched on April 27, 2015 with 19 votes, #1,037 of 3,600 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 11 years on.
In plain words
Avocado is a small JavaScript library and pattern guide that provides type safety and data validation for native JavaScript projects. It helps developers maintain code organization and prevent spaghetti code by establishing simple, modular patterns without requiring heavyweight frameworks. The tool is designed for JavaScript developers who want to add structure and type checking to their projects while preserving the language's flexibility.
written from the facts on this page · September 2026
From the sources
I have to admit, I love JavaScript and do not completely grasp the bashing. It supports my style of thinking and prototyping. I like its flexibility, it gives me a lot of subjective freedom. But as Voltaire and others say, with great power comes great responsibility. By not forcing any models, certain styles or patterns on you there is a high probability of your project ending up in total spaghetti or even worse risotto code. Therefore I’m a big fan of simple patterns and modularity. I don’t like monolithic frameworks which force you to use a certain structure or style of code. To understand what I like about simple patterns have a look at Bostock’s Towards Reusable Charts and Elliot on…from rafelsberger.at
Does a similar job
all alternatives →- AIAn Isomorphic JavaScript Framework Faster Than React2015 · jsblocks.com · ▲337
Instant API – Build type-safe web APIs with JavaScript2023 · github.com · ▲102Hey there HN! I just wrapped up an all-day documentation spree for Instant API, a JavaScript framework for easily building web APIs that implements type safety at the HTTP interface. It uses a function-as-a-service approach combined with a slightly modified JSDoc spec to automatically enforce parameter and schema validation before HTTP requests make it through to your code. You just write comments above your endpoint functions and voila, enforced type safety contracts between your API endpoints and your developers. OpenAPI specifications are generated automatically as a byproduct of simply…
Execute JavaScript in a WebAssembly QuickJS sandbox2024 · github.com · ▲206This TypeScript package allows you to safely execute JavaScript code within a WebAssembly sandbox using the QuickJS engine. Perfect for isolating and running untrusted code securely, it leverages the lightweight and fast QuickJS engine compiled to WebAssembly, providing a robust environment for code execution. Features - *Security*: Run untrusted JavaScript code in a safe, isolated environment. - *File System*: Can mount a virtual file system - *Custom Node Modules*: Custom node modules are mountable - *Fetch Client*: Can provide a fetch client to make http(s) calls - *Test-Runner*: Includes…
CalDOM: An agnostic, reactive and minimalist JavaScript UI library2021 · caldom.org · ▲107An agnostic, reactive & minimalist (3kb) JavaScript UI library with direct access to native DOM.

- KAKysely, a type-safe SQL query builder for TypeScript2023 · kysely.dev · ▲90
The most powerful type-safe SQL query builder for TypeScript
More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 3d ago · permit.petercai.com
- IV
Life & fun · 15d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 16d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 10d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 14d ago · carrierexplode.com

Life & fun · 24d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, April 2015
the whole month →
Hunter▲1,703Find any company logo by domain with Hunter’s free logo API. No account, no API key. The simplest Clearbit Logo API replacement, switch in 30 seconds.
Growth · 2015 · hunter.io



saas that helps convert
Life & fun · 2015 · transformy.io
- AR
Life & fun · 2015 · tiffzhang.com
