Hoi hoi!👋
YAAAAAY!!! 😸🎉🎉🎉
is-kit has reached 200 GitHub stars!! ⭐
necoz-oss
/
is-kit
Build small guards. Compose them. A lightweight, zero-dependency toolkit for building reusable TypeScript type guards that compose, refine, and preserve natural narrowing. Runtime-safe 🛡️, composable 🧩, and ergonomic ✨.
is-kit
Build small guards. Compose them.
is-kit is a lightweight, zero-dependency toolkit for building reusable TypeScript type guards.
is-kit is not just a collection of isX helpers. Its main focus is composing
small runtime checks into reusable guards while preserving useful TypeScript
narrowing.
It helps you write small isFoo functions, compose them into richer runtime
checks, refine properties on values you already know about, and keep
TypeScript narrowing natural inside regular control flow. Use it at runtime
boundaries when needed, without requiring a schema-first workflow.
Runtime-safe 🛡️, composable 🧩, and ergonomic ✨ without asking you to adopt a heavy schema workflow.
- Build and reuse typed guards
-
Compose guards with
and,or,not,oneOf - Use
refineKeyto narrow a child property while preserving its parent type - Validate object shapes and collections when that is useful
-
Parse or assert
unknownvalues without a large schema framework
Best…
When is-kit reached 50 stars, I wrote about how we use it in a real production application serving more than 100,000 users. ⭐
When it reached 100 stars, I wrote about new APIs, runtime edge cases, and an interesting type inference issue involving Effect. ⭐
And now,
200 stars! 🚀⭐⭐⭐
So, what happened this time? 👀
- Did we discover another crazy TypeScript bug?
- Did we completely rewrite the library in Rust?
- Did a cat accidentally delete the entire repository?
Nope. 😹
Something different happened.
More and more people started building is-kit together!!!🚀
🐈 is-kit Found a New Home!
One of the biggest changes since reaching 100 stars is that is-kit moved from my personal GitHub account to a new open-source organization called Necoz.
The idea behind Necoz is pretty simple.
Small. Simple. Useful.
I wanted to create a place where developers could build small, useful tools together, regardless of their experience, background, or where they live. 😸
And is-kit has become one of the projects that brought these people together.
It's really exciting to see something that started as my little TypeScript library gradually become a community project. 🐈
🏆 Meet the Cats Behind is-kit!
Between v1.16.3 and v1.16.6 alone, we welcomed 25 new contributors!!!😻😻😻
Some improved the documentation.
Some discovered runtime edge cases.
Some strengthened TypeScript inference tests.
And some came back again and again to help improve the library!
Let me introduce these amazing cats. 😸
🛡️ Making Runtime Behavior More Reliable
-
@painbaba — Fixed a subtle issue in
oneOfValuesinvolving mutated array inputs. - @saimskywalker — Improved plain-object detection.
-
@tridev-tej — Strengthened error-handling tests for
safeJsonParse. -
@chirag-gupta7 — Improved coverage for
equalsandguardIn. - @wathsalaggg — Verified that property-presence guards do not unnecessarily read property values.
-
@srijavuppala — Strengthened the runtime guarantees of
assert. -
@Doomguy-BFG9000 — Improved regression coverage for
lazy. -
@psjdeveloper — Improved predicate behavior tests for
define.
🧪 Making Our Guards Easier to Trust
-
@AmirAbaris — Strengthened type-level tests for
refineKey. - @diyaryavuz — Improved tuple validation and property refinement tests.
- @Pratham2511 — Expanded parsing and sparse-array regression coverage.
-
@Aaqibhafeezkhan — Verified evaluation order and short-circuiting in
oneOf. -
@crims0n — Improved tests for
predicateToRefine. - @GyulianoDev — Strengthened array guard tests.
-
@BoteroAlejandro11 — Improved short-circuit coverage for
mapOf. - @tylrcc — Contributed documentation and regression tests across multiple APIs.
📚 Making is-kit Easier to Understand
-
@guhcostan — Clarified
safeParseresult semantics. -
@nuriadevs — Documented the finite-number behavior of
isNumber. -
@agenticsymphony-tech — Clarified error boundaries in
safeJsonParse. - @atokim4 — Explained the differences between optional value and property guards.
-
@deba2k5 — Documented equality and array-input behavior in
oneOfValues. -
@ArnabOPP — Improved documentation for union narrowing with
oneOf. -
@Lil-Clanky — Improved documentation and edge-case coverage for
tupleOfandequalsKey. - @daocuong11 — Improved documentation, tests, and contributor experience across numerous APIs.
🔧 Making Developer Tooling Better
- @lanangptraa — Improved CLI option validation.
Look at all these cats!!! 😹🐈🐈⬛🐱
And of course, thank you to everyone else who has contributed to is-kit along the way! 🙌
👉 Meet all is-kit contributors on GitHub
Thank you, everyone! 💚💚💚
🤔 Why Do These Small Contributions Matter?
A lot of these contributions aren't flashy new features.
But that's actually something I really like.
Consider a simple property guard.
import { hasKey } from "is-kit";
const input = {
get name() {
throw new Error("Oops!");
},
};
hasKey("name")(input); // true
Should checking whether an own property exists require reading its value?
No!
And thanks to our contributors, this kind of behavior is now explicitly covered by regression tests.
There are many similar questions.
- Should a guard stop evaluating after a validation failure?
- Should a wrapper preserve exceptions thrown by the original guard?
- Should mutating an original array affect an already-created guard?
- Should a property refinement preserve the rest of the original type?
These are small questions individually.
But together, they determine whether a library behaves predictably.
And when your library is designed around composing small runtime checks, predictable behavior really matters.
A new API might attract attention.
A good regression test might prevent a future bug that nobody will ever hear about.
Both are valuable contributions to OSS. 🙌
🔥 What's New? Standard Schema Support!
Of course, we also have some technical news!
Starting with v1.17.0, is-kit supports Standard Schema through a new API called toStandardSchema.
Standard Schema defines a common validation interface that allows TypeScript libraries and tools to work together without requiring library-specific integrations.
And now, you can turn your existing is-kit guards into Standard Schema-compatible validators.
import { isString, toStandardSchema } from "is-kit";
const schema = toStandardSchema(isString);
schema["~standard"].validate("hello");
// { value: "hello" }
schema["~standard"].validate(123);
// { issues: [{ message: "Invalid value" }] }
Super simple, right? 😸
The interesting part is that you don't need to rewrite your existing guards.
For example, you can define a reusable guard like this 👇
import { isString, struct, toStandardSchema } from "is-kit";
const isUser = struct({
name: isString,
});
const userSchema = toStandardSchema(isUser);
And use it with a Standard Schema-compatible tool such as TanStack Form.
import { useForm } from "@tanstack/react-form";
function useUserForm() {
return useForm({
defaultValues: {
name: "",
},
validators: {
onChange: userSchema,
},
});
}
Meanwhile, your original guard is still a normal TypeScript type guard.
const input: unknown = { name: "Ada" };
if (isUser(input)) {
input.name; // string
}
const users: unknown[] = [
{ name: "Ada" },
{ name: 123 },
];
const validUsers = users.filter(isUser);
// [{ name: "Ada" }]
One guard, multiple use cases.
No additional dependencies.
No new validation framework.
Just a small bridge between is-kit and the wider TypeScript ecosystem. 🚀
You can read more here:
💪 What Has Changed Since 100 Stars?
Besides Standard Schema support, we've been working on:
- More precise runtime contracts.
- Better documentation and practical examples.
- Stronger runtime and type-level regression tests.
- TypeScript compatibility.
- Developer tooling and contributor experience.
We also launched a dedicated documentation website!
But the original philosophy hasn't changed.
Build small guards. Compose them.
I still want is-kit to feel like a natural extension of TypeScript, rather than something that requires you to change the way you write your entire application.
More useful doesn't have to mean more complicated.
🎯 What's Next? Road to 300 Stars!
Our next milestone is
300 GitHub stars!!! ⭐⭐⭐
But I don't just want to increase the star counter.
Before reaching 300 stars, I'd love to see:
- More developers using
is-kitin real applications. - More integrations with the TypeScript ecosystem.
- Clearer documentation and more practical examples.
- A more consistent and intuitive API.
- More contributors joining us and sharing their ideas.
And most importantly, I want contributing to is-kit to continue being fun! 😸
You don't need to implement a huge feature to participate.
- Fix a typo.
- Add a test.
- Improve an example.
- Ask a question.
- Tell us about something that feels confusing.
There are plenty of ways to help.
💚 Thank You for 200 Stars!
At 50 stars, I was happy that someone found my idea useful.
At 100 stars, I was happy that people were finding interesting ways to use it.
At 200 stars, I'm happy that I'm no longer building it alone.
That's probably my favorite change since the last milestone.
Thank you to everyone who has starred, used, shared, or contributed to is-kit.
And to all the cats who are building it together,
Let's keep going!!! 🐈🚀
necoz-oss
/
is-kit
Build small guards. Compose them. A lightweight, zero-dependency toolkit for building reusable TypeScript type guards that compose, refine, and preserve natural narrowing. Runtime-safe 🛡️, composable 🧩, and ergonomic ✨.
is-kit
Build small guards. Compose them.
is-kit is a lightweight, zero-dependency toolkit for building reusable TypeScript type guards.
is-kit is not just a collection of isX helpers. Its main focus is composing
small runtime checks into reusable guards while preserving useful TypeScript
narrowing.
It helps you write small isFoo functions, compose them into richer runtime
checks, refine properties on values you already know about, and keep
TypeScript narrowing natural inside regular control flow. Use it at runtime
boundaries when needed, without requiring a schema-first workflow.
Runtime-safe 🛡️, composable 🧩, and ergonomic ✨ without asking you to adopt a heavy schema workflow.
- Build and reuse typed guards
-
Compose guards with
and,or,not,oneOf - Use
refineKeyto narrow a child property while preserving its parent type - Validate object shapes and collections when that is useful
-
Parse or assert
unknownvalues without a large schema framework
Best…
Thank you for reading! 🤲


Top comments (36)
200 stars is lovely, but I think the 25 new contributors between those releases are an even bigger milestone. 😄
I liked the
hasKeyexample too. Checking that a property exists shouldn't read its value, so it's great to see that covered by regression tests.Congratulations to you and everyone contributing to is-kit! Here's to 300! 🎉
Thank you so much!! 😸💚
I completely agree! Welcoming 25 new contributors is even more exciting to me than reaching 200 stars.
I'm looking forward to seeing how both is-kit and our community evolve on the road to 300 stars! 🐈🚀
The collaboration on Dev.to is next level! Way to go on creating this community who is chipping in and sharing their passion for improvement. Looking forward to the next milestone.
woohoo 🚀
Woooohoooo!! Thank you so much! 😹🎉
I'm really happy that DEV has brought so many passionate developers together!
Seeing people support each other and grow together is even more exciting than watching the star counter go up.
Let's keep this wonderful community growing! Next stop: 300 stars! 😸💚🚀
Let's!
Next target: 200 stars! Nyaomaru, good luck! 😼
Remember this?
Congrats 🎉🙌🏻❤️
Thanks for writing 🙏🏻
Of course I remember!! 😹💚
Your encouragement really keeps me going!
Thank you for cheering me on since the last milestone! 😸
We made it to 200, and now we're aiming for 300 stars! ⭐🚀
Let's go!!! 🐈
Ayooooo let's go!! 🔥🙀😻
🐎😸
Didi, please come on Discord tomorrow.
Hey, sorry about tomorrow, I won't be able to make it lol. I'm feeling a bit sick right now, so I need to get some rest. Let's catch up on Dec 10 :D
Congratulations on 200 stars, nyaomaru! 🎉⭐
I'm really happy to see is-kit growing this fast. You know I love tinkering, so I went poking around and noticed how well organized everything is, SEO included. Nice work! 🐞
Big thanks to all the contributors, but I'm pretty sure you're the one behind all of it. 😸
Keep going like this! I'm way too swamped right now to send a pull request, but I'd really love to join in someday. It's a great group.
Thanks for sharing these good vibes 🙂! signed BeeLadybug🐞🐝💚
Thank you so much!! 😸💚
Haha!! You've even been investigating our SEO! Nothing escapes the curious BeeLadybug! 😹🐞
I'm really grateful to have such wonderful contributors. Their ideas and small improvements keep motivating me too!
And there's absolutely no rush to contribute! Whenever you have some free time, we'd be happy to have you join in.
Let's keep enjoying OSS at our own pace! 🐈🐞🐝💚
Haha guilty! 🐞 A curious ladybug has to check how the big cats do it 😹
Thank you, that means a lot. I'll come by when things calm down a bit, even with something small.
Our own pace sounds perfect 🐈🐝💚
Congrats!!!!!!!!
Thank you sooooo much!!!! 😹🎉💚
Your encouragement always gives me the motivation to keep going!🐈🚀
Congratulations for 200 stars 🎊
Thx! 😸🚀
Congrats🎉
Thx! 😸🐼
"It's no longer just my project" is the real headline; the 200 stars are just the evidence. The moment other people's code depends on your guards, a repo stops being a repo and starts being a promise. Moving it to an org is the right way to mark that - ownership widening before it has to.
Congratulations. The thing worth protecting now is what got it here: small, composable, no heavy workflow demanded. Stars attract feature requests that fight all three.
Thank you so much!! 😸💚
That's exactly what I want to protect as is-kit grows!
"Small. Simple. Useful." is the core philosophy of Necoz, after all!
No matter how big our community grows, I want to stay true to that philosophy. 🐈🚀
The throwing-getter example is a lovely way to make a small contract visible. Checking that a property exists without reading it means this guard can be composed without unexpectedly executing application code. Giving that behavior its own regression test is exactly the kind of contribution that makes a small library dependable.
Exactly!! I'm really happy that you picked up on this point! 😸💚
When small guards are composed into more complex ones, even subtle runtime behaviors become important.
That's why I value contributions that make these contracts explicit and protect them with regression tests, just as much as new features.
Small improvements, stronger foundations!
Thanks for reading the article so carefully! 🐈
Congratulations 🎊
Thx! 😸👍