DEV Community

Cover image for is-kit Reached 200 Stars β­πŸŽ‰ It's No Longer Just My Project!
nyaomaru for Necoz

Posted on AI-assisted

is-kit Reached 200 Stars β­πŸŽ‰ It's No Longer Just My Project!

Shifted to the Necoz open-source org

Hoi hoi!πŸ‘‹

YAAAAAY!!! πŸ˜ΈπŸŽ‰πŸŽ‰πŸŽ‰
is-kit has reached 200 GitHub stars!! ⭐

GitHub logo 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

is-kit logo

npm version JSR npm downloads License

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 refineKey to narrow a child property while preserving its parent type
  • Validate object shapes and collections when that is useful
  • Parse or assert unknown values without a large schema framework
Documentation Site

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 star200


🐈 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 oneOfValues involving mutated array inputs.
  • @saimskywalker β€” Improved plain-object detection.
  • @tridev-tej β€” Strengthened error-handling tests for safeJsonParse.
  • @chirag-gupta7 β€” Improved coverage for equals and guardIn.
  • @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 safeParse result 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 tupleOf and equalsKey.
  • @daocuong11 β€” Improved documentation, tests, and contributor experience across numerous APIs.

πŸ”§ Making Developer Tooling Better

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
Enter fullscreen mode Exit fullscreen mode

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" }] }
Enter fullscreen mode Exit fullscreen mode

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);
Enter fullscreen mode Exit fullscreen mode

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,
    },
  });
}
Enter fullscreen mode Exit fullscreen mode

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" }]
Enter fullscreen mode Exit fullscreen mode

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!

πŸ‘‰ is-kit.dev

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-kit in 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.

πŸ‘‰ Find your next OSS quest


πŸ’š 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!!! πŸˆπŸš€

GitHub logo 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

is-kit logo

npm version JSR npm downloads License

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 refineKey to narrow a child property while preserving its parent type
  • Validate object shapes and collections when that is useful
  • Parse or assert unknown values without a large schema framework
Documentation Site

Best…

Thank you for reading! 🀲

Top comments (53)

Collapse
 
shubhradev profile image
Shubhra Pokhariya •

200 stars is lovely, but I think the 25 new contributors between those releases are an even bigger milestone. πŸ˜„
I liked the hasKey example 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! πŸŽ‰

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

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! πŸˆπŸš€

Collapse
 
earlgreyhot1701d profile image
Earl Grey Necoz •

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 πŸš€

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

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! πŸ˜ΈπŸ’šπŸš€

Collapse
 
earlgreyhot1701d profile image
Earl Grey Necoz •

Let's!

Collapse
 
technogamerz profile image
π“π‘πž π‹πšπ³π² 𝐆𝐒𝐫π₯ Necoz • • Edited

Remember this?
Congrats πŸŽ‰πŸ™ŒπŸ»β€οΈ

Thanks for writing πŸ™πŸ»

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

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!!! 🐈

Collapse
 
technogamerz profile image
π“π‘πž π‹πšπ³π² 𝐆𝐒𝐫π₯ Necoz •

Ayooooo let's go!! πŸ”₯πŸ™€πŸ˜»

Thread Thread
 
nyaomaru profile image
nyaomaru Necoz •

🐎😸

Collapse
 
star123 profile image
Sᴛᴀʀ⭐ Necoz •

Didi, please come on Discord tomorrow.

Collapse
 
technogamerz profile image
π“π‘πž π‹πšπ³π² 𝐆𝐒𝐫π₯ Necoz •

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

Collapse
 
antonioprosperi2svg profile image
Antonio Necoz •

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πŸžπŸπŸ’š

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

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! πŸˆπŸžπŸπŸ’š

Collapse
 
antonioprosperi2svg profile image
Antonio Necoz •

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 πŸˆπŸπŸ’š

Collapse
 
calemanurquiza profile image
Carlos MarΓ­a AlemΓ‘n Urquiza •

Congrats! 25 new contributors is a great sign. Moving to an org is also a good moment to write down the quiet things: who has admin and publishing rights, and under what terms contributions come in. A short note in CONTRIBUTING can save a lot of doubts later.

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Thank you so much! πŸ˜ΈπŸ’š

I completely agree! As the community grows, having clear documentation about permissions, responsibilities, and contribution guidelines becomes increasingly important.

I'd love to make sure everyone can contribute confidently without any confusion.
Thanks for the valuable advice! πŸˆπŸ‘

Collapse
 
calemanurquiza profile image
Carlos MarΓ­a AlemΓ‘n Urquiza •

Happy to help! Even a simple 3-line clause in CONTRIBUTING.md clarifying inbound licensing (e.g., 'contributions are licensed under the repo's MIT license') plus a MAINTAINERS.md file usually covers 95% of early-stage friction. Best of luck on the road to 300 stars!

Collapse
 
naheel0 profile image
Naheel Muhammed •

200 stars is good news. 25 contributors between v1.16.3 and v1.16.6 is the number I would put on the wall. Stars follow posts; contributors follow docs and tests.

The hasKey example is the one I'd steal. I hit the same bug in a config loader: the guard read config.name to check the key, the getter threw, and the stack trace pointed at my guard instead of the config file.

One fixture caught it after that:

const trap = { get name() { throw new Error("getter ran"); } };
assert.doesNotThrow(() => hasKey("name")(trap));
Enter fullscreen mode Exit fullscreen mode

two lines. It runs against every guard in my suite now, so the next one that peeks at a value fails a test instead of a production load.

Did you go the shared-harness route, or does each guard still carry a hand-written test?

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Thank you so much!! πŸ˜ΈπŸ’š
I love your getter trap example! πŸ‘

Currently, we're taking the hand-written test approach.

For example, hasKey and hasKeys have dedicated regression tests using jest.fn() to verify that getters are never invoked during property-presence checks.

A shared harness for guards that should only check property presence could be an interesting improvement!

Of course, guards like refineKey intentionally read property values, so we'd need to distinguish their expected behaviors.

Thanks for sharing your real-world experience and testing approach! πŸˆπŸ‘

Collapse
 
sylwia-lask profile image
Sylwia Laskowska •

Congrats!!!!!!!!

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Thank you sooooo much!!!! πŸ˜ΉπŸŽ‰πŸ’š
Your encouragement always gives me the motivation to keep going!πŸˆπŸš€

Collapse
 
csm18 profile image
csm Necoz •

Congratulations for 200 stars 🎊

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Thx! πŸ˜ΈπŸš€

Collapse
 
xulingfeng profile image
xulingfeng Necoz •

CongratsπŸŽ‰

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Thx! 😸🐼

Collapse
 
sharksevenro profile image
Umasou •

Congratulationsβ€”and I think toStandardSchema is the most consequential part for future contributors, because the public contract now includes an adapter boundary as well as the guards themselves.

A useful next regression suite would cover things such as:

  • whether validation invokes the original guard exactly once;
  • sync versus Promise-returning validation;
  • issue/path mapping for nested guards;
  • preserving the original guard’s narrowing and behavior outside the adapter.

That would let the core keep its β€œsmall guards, composed” philosophy while preventing ecosystem integrations from becoming a second, subtly different implementation. The throwing-getter example is a great model for this: a tiny example that turns an invisible assumption into an explicit contract.

Collapse
 
nyaomaru profile image
nyaomaru Necoz •

Thank you! That's a really thoughtful suggestion! πŸ˜ΈπŸ’š

The current design intentionally keeps the adapter thin, synchronous, and delegates validation entirely to the original guard.

Explicit regression tests for invocation count, synchronous behavior, and preservation of the original guard's contract would be valuable additions.

I'd love to strengthen these guarantees without introducing unnecessary complexity into the core.

Thank you for taking the time to think about the future of is-kit! πŸ‘