r/typescript • • 4d ago

Monthly Hiring Thread Who's hiring Typescript developers December

11 Upvotes

The monthly thread for people to post openings at their companies.

* Please state the job location and include the keywords REMOTE, INTERNS and/or VISA when the corresponding sort of candidate is welcome. When remote work is not an option, include ONSITE.

* Please only post if you personally are part of the hiring company—no recruiting firms or job boards **Please report recruiters or job boards**.

* Only one post per company.

* If it isn't a household name, explain what your company does. Sell it.

* Please add the company email that applications should be sent to, or the companies application web form/job posting (needless to say this should be on the company website, not a third party site).

Commenters: please don't reply to job posts to complain about something. It's off topic here.

Readers: please only email if you are personally interested in the job.

Posting BS top level comments that aren't job postings, eg "It's quiet in here" etc is a ban.


r/typescript • • 21h ago

Announcing TypeScript 7.1 RC

Thumbnail
devblogs.microsoft.com
213 Upvotes

r/typescript • • 10h ago

TTSC: TypeScript v7 Runtime (ts-node alternative) + unplugin for every bundlers

Thumbnail
github.com
2 Upvotes

r/typescript • • 8h ago

dbask – an open-source TypeScript database harness for AI applications

0 Upvotes

I built dbask to make it easier for AI applications to interact with existing relational databases. It provides tools for schema discovery, relationship inspection, SQL execution and query planning, with read-only defaults and execution safeguards. It supports MySQL, MariaDB and PostgreSQL and comes with a CLI, TypeScript SDK and MCP server. v0.2.0 is now out.

Would love to hear what other JavaScript developers think, particularly those experimenting with AI agents and database integrations.

GitHub: https://github.com/NegusDev/dbask


r/typescript • • 11h ago

Overview: as vs satisfies vs type annotations

Thumbnail
slicker.me
0 Upvotes

r/typescript • • 15h ago

Fork of ts-node with support for TypeScript 7.1 and 3rd party implementations (like tsrs)

Thumbnail
github.com
0 Upvotes

Maybe it will help someone heavily dependent on ts-node. I don't have any plans to publish this fork separately on npm, so if you want to use it by yourself

  1. clone repository
  2. build it from scratch
  3. upload the built package to your local www.verdaccio.org

The main branch also supports the usage of tsrs


r/typescript • • 1d ago

ArkType 3.0: TypeScript's smallest, fastest validator

30 Upvotes

ArkType 3.0 is out with @ark/aot, an optional build-time precompiler that compiles your type() definitions straight into standalone JS — no parser shipped, no new Function, and zero-build dynamic mode still works identically.

You write:

import { type } from "arktype"

const Shape = type({
	kind: "'circle'",
	radius: "number > 0"
}).or({
	kind: "'square'",
	side: "number > 0"
})

type Shape = typeof Shape.infer

And @ark/aot emits plain JS checks like:

const isPositive = n => Number.isFinite(n) && n > 0

const checkShape = data => {
	switch (data?.kind) {
		case "circle": return isPositive(data.radius)
		case "square": return isPositive(data.side)
	}
	return false
}

Set algebra runs before codegen: unions auto-discriminate into a switch without declaring a discriminator, overlapping ranges collapse (> 0 & >= 10 -> >= 10), and contradictory intersections fail the build.

The numbers (precompiled, vs Zod 4)

  • 15x faster validation (median across 32 scenarios; #1 on public speed benchmarks)
  • 21x smaller bundles (1.21 kB vs 25.1 kB gz on Valibot's login form — smaller than Valibot's 1.56 kB too)
  • 63x lighter startup on Node 24

Also in 3.0

  • One-prompt migration: npx skills add arktypeio/arktype for moving from Zod or upgrading from 2.x, plus npx arktype init and npx arktype check
  • Bundlers & runtimes: @ark/aot/unplugin (Vite, esbuild, Rolldown, Rollup, webpack, Rspack, Rsbuild, Bun, Farm), @ark/aot/turbopack (Next.js 16), @ark/aot/node, @ark/aot/bun, and tsc && ark emit — powered by oxc, no ts-patch
  • Codecs, JSON Schema & i18n: arktype/codecs (.encode), Standard Schema + auto-baked Standard JSON Schema, built-in fromJsonSchema (compare/compose Zod schemas directly with .extends() / .overlaps()), and arktype/i18n
  • Cross-editor support: highlighting and inline errors in VS Code/Cursor/Windsurf, JetBrains IDEs, and Neovim (arktype.nvim), plus Helix Tree-sitter highlighting (Zed in review)
  • Release post: https://arktype.io/docs/blog/3.0
  • Precompile docs: https://arktype.io/docs/precompile
  • Benchmarks: https://arktype.io/docs/precompile/benchmarks
  • GitHub (MIT): https://github.com/arktypeio/arktype

Happy to answer any questions!


r/typescript • • 3d ago

How do I circumvent referring to a block-scoped variable before declaration in this case?

4 Upvotes

I apologize that my title may be an XY problem. What I'm actually doing is I have basically a dialogue tree in a module. Each line is a separate variable and it should have inside itself a reference to the following line.

export type DialogLine = {
    text: string;
    responses: PlayerResponse[];
}

export type PlayerResponse = {
    text: string;
    nextLine: DialogLine;
}

I guess the solution could be as simple as having the order reversed: later dialogue lines go at the top, earlier ones - at the bottom. But I can't guarantee that it'll always work and there won't be some branching or looping.

Maybe using string aliases rather than the actual variables is the solution. I've got no idea. Could just hide the issue from the compiler.


r/typescript • • 3d ago

Theo gg's t3code, went multilingual. I measured the cost

0 Upvotes

Last week everyone was digging into T3 Code's telemetry, the data leaving your machine. I got curious about the other direction: the data coming in.

On November 12, T3 Code (Theo's GG open-source app for coding agents) went multilingual. Two weeks later: 10 languages, 10,298 strings. Its AGENTS.md lists "Performance without compromise" among the things the project "can never compromise on". Theo also left a note in that same file: "measure twice, cut once".

So I measured. I built the production bundles (web, desktop, mobile) and pulled them apart.

A few things that stood out:

\- A French user downloads 370 KB of gzipped i18n before the first frame. The app waits for the whole catalog before it renders anything

\- About 63% of that catalog is text for screens they haven't opened yet, also full of orphalan keys

\- Every string ships twice: English + French via the catalog

\- In two weeks, the team wrote three patches to the library's compiled code to stop it from hashing and parsing strings on every render.

The worst, the team did measure the cost when they adopted the library. The catch: they measured once, on a settings page with a 3.6 kB catalog. Then the whole app got translated, and nobody measured again.

And it's not just the bundle. It's also rendering and performance issue. As well as DX.

Disclosure: I'm part of that competing i18n library, so read this as a competitive take, not a neutral review. (Every number links to a commit or a source, and if I got something wrong I'd genuinely like to know.)

Full article : https://intlayer.org/blog/t3code-i18n-reverse-engineered


r/typescript • • 4d ago

Executor is moving to Effect for writing apps

0 Upvotes

Executor is an open source router that lets you connect services like Gmail and GitHub once, so then agent harness can use them through a single connection.

Founder Rhys Sullivan said he originally built a custom framework for Executor apps, which are small Typescript programs. After dogfooding it for awhile, he decided it was simpler to let agents write Effect directly.

The change will help with things like handling errors, retrying a failed request, and refactoring apps over time.

Here's an authoring guide and code examples for the new Effect-based app feature

https://github.com/UsefulSoftwareCo/executor/blob/3cecd7141d0a84a485ef2ea5db8eebeabc8c4a53/packages/apps-next/skills/app-authoring/SKILL.md


r/typescript • • 6d ago

Unframework - The compiler that speaks seven UI frameworks

Thumbnail
unframework.dev
30 Upvotes

Unframework is now available on npm. My dream of writing a component once using TSX, and compiling it to native React, Vue, Svelte, Angular, Solid, Qwik and Astro code, has finally become a reality.

The first components I’ve put through the whole pipeline are a Button, an Input, a Radio, and a Checkbox, and they render the same in all seven frameworks.

"The same" is both a promise and a test. On every PR, CI compiles the components to each framework and checks every output in a real browser: the DOM, the accessibility tree and the pixels have to match one shared baseline, with zero pixel tolerance (visual parity).

I'm also releasing Unframework Preview. It shows every component on all seven frameworks side by side, with controls for their props, so you can see parity for yourself. Build it as a static site and host it anywhere, like a Storybook that speaks seven frameworks at once.

Each output is a real component in its framework's own style: hooks in React, runes in Svelte, signals in Solid. There's no runtime or wrapper in between, so each file depends only on its framework.

Looking forward to hearing your thoughts.

https://unframework.dev


r/typescript • • 6d ago

How do you type and validate env vars at startup in a TS backend?

0 Upvotes

I'm building Elpod, a small decorator-free framework for Elysia on Bun (alpha, so APIs still move), and config is one part I'd like opinions on.

Right now env vars get parsed once at startup into a typed object, and every invalid value is collected into a single ConfigError before the server listens, instead of failing on the first one.

import { defineConfig, env } from "@elpod/core";

export const config = defineConfig({
  port: env.number("PORT", { default: 3000, min: 1, max: 65_535 }),
  environment: env.enum("NODE_ENV", ["development", "test", "production"] as const, {
    default: "development",
  }),
  paymentsUrl: env.url("PAYMENTS_URL", { required: true }),
  timeoutMs: env.duration("REQUEST_TIMEOUT", { default: 5_000 }),
  databaseUrl: env.secret("DATABASE_URL", { required: true }),
});

env.duration wants a unit like 5s or 250ms and gives back milliseconds, and secret values show up as [REDACTED] when you inspect the config. In tests you pass a plain object as the second argument instead of touching process.env.

What I'm unsure about is the typing side. The enum needs as const to narrow to a union, which is easy to forget. Would you rather have a schema lib (zod, valibot, TypeBox) do all of this, or are a few dedicated env helpers fine? And how do you keep secrets out of logs in your own setups?

Docs if you want to look: https://elpod.vercel.app/docs/configuration


r/typescript • • 8d ago

Which of your import cycles are real? What the compiler erases, what it keeps, and what I found in 104 popular repos

0 Upvotes

Most cycle detectors read import statements. That gives a lot of false alarms in TypeScript, because a large share of imports never reach the emitted JavaScript. I spent a while getting this right for a structure linter, and the rules turned out to be less obvious than "import type is free".

What does not create a runtime dependency:

- `import type { X }` and `import { type X }`

- A plain `import { X }` where X is only used in type positions. The compiler drops it, unless `verbatimModuleSyntax` is on, in which case it stays

- A `const enum`, unless `isolatedModules` or `preserveConstEnums` is on, and then it is a real import again

- A dynamic `import()` or a `require()` inside a function body. It runs later, so it does not take part in the load-time loop

What does, even though it looks like a type:

- A class used as a constructor parameter type in a decorated class with `emitDecoratorMetadata`. The class is emitted into `design:paramtypes`, so NestJS and Angular code has runtime edges where the source shows only annotations

- Everything in a `.js` file. There is nothing to erase

- An enum imported from a component file. It is a value

Two patterns produced most of the big cycles I looked at:

  1. Barrels. One `index.ts` that re-exports two files from a higher layer turns a single bad edge into a 20-file cycle, because every sibling that imports the barrel is now in the loop. Importing the sibling file directly usually removes the whole thing.
  2. A registry that constructs its members and passes itself in. `Config` does `new Tool(this)`, `Tool` calls `this.config.something()`. `Tool` only has `import type { Config }`, so no file-level cycle is reported anywhere, and the two classes still cannot be changed or tested apart.

I ran this over the 104 most starred TypeScript repos in the AI ecosystem, with the compiler's own resolution (project references, path aliases, every tsconfig in a monorepo). 260 findings were then checked by hand against the source. The cycle rules held up: the listed edges were real value imports.

Numbers per repo, with every finding and its file and line: https://github.com/PatternVoid/unknot/blob/main/LEADERBOARD.md

The linter is open source and I am its author: https://github.com/PatternVoid/unknot. `npx unknot` prints the cycles of your project with the few imports that go against the layer order.

Did I miss a case where the compiler keeps or drops an import? `importsNotUsedAsValues` and old `preserveValueImports` projects are the ones I am least sure about.


r/typescript • • 8d ago

How do you stop a singleton service from holding per-request state?

0 Upvotes

I've been building a small DI layer for Elysia on Bun, and one bug class I wanted the container to catch is a long-lived service holding onto something that only makes sense for one request, like the current user or a request id. It looks fine with one request at a time and then two concurrent requests start seeing each other's data.

The approach I went with: each class declares its lifetime and its dependencies as static fields, and the graph refuses to build if a singleton depends on a request-scoped provider.

```ts
class RequestAudit {
static readonly lifetime = "request" as const;
}

class ReportService {
// singleton by default
static readonly needs = [RequestAudit] as const; // the graph rejects this
constructor(private readonly audit: RequestAudit) {}
}
```

Routes that need per-request things get them through a handler wrapper instead, so request-scoped objects never end up stored on a singleton.

Curious how others handle this in Node or Bun backends. Do you lean on AsyncLocalStorage, pass a context object around explicitly, or have your container enforce it? And is a hard error too strict for cases where someone actually wants it?

It's alpha (0.1.x), so the API may still change. Docs if anyone wants to look: https://elpod.vercel.app/docs/dependency-injection


r/typescript • • 9d ago

Our workflow runtime is all in typescript and we got asked for a python port. How do you habdle mixed language setup?

4 Upvotes

I work on Workflow Builder, an open source runtime that runs workflows drawn as diagrams on Temporal. It takes a case from the first step to a final and keeps the decisions, versions and the full case record along the way, Retries timeouts, and history come from Temporal.

Under the hood one generic TS workflow walks a JSON graph (the DSL interpreter pattern), every node is an activity. The rest of the runtime is Typescript too: the worker plugin, the store, the API. We just got asked for a python version.
Our plan is to keep runtime in typescript and let nodes run on python workers on their own task queue. The alternative is a second runtime in python and hen two interpreter workflows have to stay replay safe.

I have the following questions for people whose workers are not typescript:

  1. do you already mix languages across your workers?
  2. would one node worker running our workflow be a dealbreaker in your production or just annoying? if dealbreaker, why?
  3. are python activities enough or do you beed the workflow itself in python (agent loops as workflow, timers, signals)? Would a python child workflow called from the TS one cover it?

r/typescript • • 10d ago

Using readonly on a type's field to allow to implement it via a getter?

1 Upvotes

Disclaimer: I got this answer from an AI, which I haven't used before. It doesn't show its sources. I've got no idea if it's a legitimate option or a hallucination.

I asked it how to declare a getter within a type. It gave me the answer and suggested using readonly as an alternative.

I mean, it doesn't make much of a difference, in that it just makes a shorter syntax for when the getter just needs to return a simple variable without doing anything to it.

Is this a valid use?

Would the readonly field be able to be implemented via an actual getter, or does it mean that it could be a function?


r/typescript • • 10d ago

How do you keep feature modules from reaching into each other's internals in a backend?

3 Upvotes

In most backends I've worked on, "modules" are just folders. Nothing stops billing from importing a repository straight out of users, and after a while every feature quietly depends on every other feature's internals.

I'm trying a different approach in Elpod, a small framework I'm building on top of Elysia. It runs on Bun rather than Node, but the problem is the same. Each feature is a plain value that says what it owns and what it exposes:

```ts
export const users = pod({
name: "users",
prefix: "/users",
controller: UsersController,
providers: [UsersService, UsersRepository],
exports: [UsersService],
});

export const billing = pod({
name: "billing",
prefix: "/billing",
controller: BillingController,
imports: [users],
providers: [BillingService],
});
```

And a class lists what it needs as a static tuple, no decorators:

```ts
export class BillingService {
static readonly needs = [UsersService] as const;

constructor(private readonly users: UsersService) {}
}
```

Only what users exports is visible to billing, so UsersRepository stays private. Import cycles between features and duplicate exports fail when the app composes, not later. These are in-process boundaries though, not security boundaries, so authorization still lives in the services.

For those of you with bigger Node services: do you enforce this kind of thing at all? dependency-cruiser, eslint-plugin-boundaries, Nx module boundaries, or just code review? I'm curious whether doing it at the DI level feels useful or like extra ceremony.

It's alpha (0.1.x), so the API can still change. Docs if you want to look: https://elpod.vercel.app/docs/features-and-pods/


r/typescript • • 13d ago

How would you type-check a DI dependency list against the constructor params?

6 Upvotes

I'm building a small DI layer for Elysia on Bun with no decorators. A class lists its dependencies like this:

class Greeter {
  static readonly needs = [Clock] as const;
  constructor(private clock: Clock) {}
}

Right now it only checks at boot that the list length matches the constructor's parameter count. Someone on r/bun pointed out that swapping Clock for a different class with the same arity slips through, and they're right.

My plan is to map needs to instance types and compare that against ConstructorParameters<typeof Greeter>, then add a @ts-expect-error test for the swap. Has anyone done this cleanly without the error messages turning into a wall of generics?

(Project is Elpod, early alpha, if anyone's curious: https://elpod.vercel.app)


r/typescript • • 14d ago

Codex Generated JavaScript and TypeScript Files Can Be Painful To Read. Use Airbnb JavaScript Style Guide.

0 Upvotes

Airbnb JavaScript style guide can significantly make your code better and readable by humans. In my last post I mentioned about setting up Codex Cloud and increasing my output per unit time.


r/typescript • • 16d ago

vercel-labs/scriptc: TypeScript-to-Native Compiler

Thumbnail
github.com
71 Upvotes

Vercel Labs has released scriptc, an experimental Apache 2.0 licensed compiler that turns ordinary TypeScript into small native executables with no Node, V8 and no JavaScript engine in the binary.

The repository was created on 22 July 2026 and has since gathered around 4.9k stars. scriptc uses the real TypeScript compiler for parsing and type checking, lowers programs to a typed IR, then emits readable C, LLVM IR, assembly, objects, native executables or WebAssembly via WASI Preview 1.

Every construct lands in one of three tiers: compiled statically by default, run dynamically inside an embedded quickjs-ng engine of roughly 620KB when --dynamic is passed for npm packages and any typed code, or rejected at compile time with an SC code and a rewrite hint.

A benchmark of scriptc 0.0.16 against Bun 1.3.12 and Node 24.18.0 recorded median CLI startup of 1.78ms versus 21.29ms for Bun and 61.78ms for Node, with idle memory of 1.9MiB for a framework free node:http server. The same tests found Hono required --dynamic, pushing 62% of the server into QuickJS and cutting throughput to 18.4k requests per second against Bun's 70.5k.


r/typescript • • 15d ago

Optique 1.4.0: Default commands, Markdown references, and more focused help

Thumbnail
github.com
2 Upvotes

r/typescript • • 17d ago

Any TypeScript ORM that supports different databases (no raw SQL/query builders this time) at the same time?

10 Upvotes

So, I am building a real estate application in Express for college.

I want to have a PostgreSQL database as the main database and the SQLite database for unit testing. For example, I made a service for the User model and I want to use it both for the web app and testing. I need a TypeScript ORM that supports multiple datasources (PostgreSQL and SQLite (in-memory if possible)). services/UserService.ts:

import { compareSync, hashSync } from "bcrypt";

import logger from "../global/logger";
import logMessages from "../global/logMessages";
import { userMapper as mapper } from "../mappers";
import { User } from "../models";
import { IRegister, IUserChangePassword, IUserUpdate } from "../interfaces";
import prisma from "../prisma/main/client";

export default class UserService {
    constructor(private prisma: any) {}

    // Main
    async create(data: IRegister) {
        delete data.password2;
        data.email = data.email.toLowerCase();
        data.password = hashSync(data.password, 10);

        // 1 Parametrized queries
        const user = await prisma.user.create({ data });

        // 5 Security logging
        logger.info(logMessages.USER_SERV.create, { userId: user.id });
        return mapper.toClass(user);
    }

    // ... other methods
}

I used to use Prisma, but setting it to support both PostgreSQL and SQLite was so convoluted. I had to build a schema, a config and a client for each datasource. That also implied having to duplicate the entire services just for unit testing.

Configurations `prisma/main/prisma,config.ts` and `prisma/test/prisma.config.ts`:
```TS
import "dotenv/config";
import { defineConfig, env } from "prisma/config";

export default defineConfig({
    schema: "./schema.prisma",
    migrations: { path: "./migrations" },
    datasource: { url: env("MAIN_DATABASE_URL") }
});
// same as above

export default defineConfig({
    // same as above
    datasource: { url: env("TEST_DATABASE_URL") }
});

prisma/main/client.ts and prisma/test/client.ts:

import { PrismaPg } from "@prisma/adapter-pg";

import { PrismaClient } from "./generated/client";
import { MAIN_DATABASE_URL } from "../../global/env";

const connectionString = MAIN_DATABASE_URL;

const adapter = new PrismaPg({ connectionString });
const client = new PrismaClient({ adapter });
export default client;

import { PrismaBetterSqlite3 } from "@prisma/adapter-better-sqlite3";

import { PrismaClient } from "./generated/client";
import { TEST_DATABASE_URL } from "../../global/env";

const connectionString = TEST_DATABASE_URL;

const adapter = new PrismaBetterSqlite3({ url: connectionString });
const client = new PrismaClient({ adapter });

export default client;

So, I turned the service into a class that will accept any client in the constructor.

export default class UserService {
    constructor(private prisma: any) {}

And I instantiated it in controllers/auth.controller.ts and tests/userService.test.ts:

// ... other imports
import { mainClient } from "../prisma";
import { UserService } from "../services";

const service = new UserService(mainClient);
import { testClient } from "../prisma";
import { UserService } from "../services";

const service = new UserService(client);

I tried Drizzle ORM with PGLite, but I did not know how to set it up for both main db and testing.

I need something simple like its in Django and Laravel. Please don't recommend raw SQL and query builders (Kysely (I hate that name) and others) at the moment.


r/typescript • • 18d ago

Seeking feedback on my niche TS code review tool(PRSense)

2 Upvotes

Hi r/typescript!

Long time lurker here. I've been a javascript dev for almost 10 years now, and moved to TypeScript a couple of years ago for serious work. Coming from an OCaml background the logical choice would've been to switch to rescript but somehow I ended up loving TypeScript for its simplicity and elegance, and much needed algebraic types. I did some serious Java coding earlier, so it would appear that I've come full circle, as TS seems like the most compact yet really powerful Java-esque language.
I've used TS in projects small and large, and couldn't go back. As of recently I've been using LLMs to generate a lot of TS code so to accelerate my workflow while maintaining my sanity. To delve deeper into the typescript ecosystem, I built https://github.com/navxio/PRSense and my productivity spiked immediately. Now I can use LLM generated code in my small to medium sized projects without headaches, and at least one of them is live with non trivial revenue(6 months in production). Needless to say it's an indispensable part of my workflow now.

It's a tiny yet powerful command line tool that integrates with git so you can use it with your agents too if you're so inclined. Looking for some devs who still write code by hand (and use LLM generated code). Any feedback is appreciated!

Thanks for reading and cheers!

Edit 1: Grammar Edit 2: It uses ts-morph aggressively to reduce LLM token budget, essentially minimizing the token usage. More on the architecture to follow in a blog post!!


r/typescript • • 19d ago

a ReBAC authorization platform where your permission schema is just TypeScript (open source, MIT)

6 Upvotes

Hey r/typescript 👋

My team and I been working on peretyn, an open-source authorization platform for TypeScript apps. You describe who can do what as relationships between things (users, teams, documents, whatever your app has), and your app asks one question: is this allowed?

A few highlights:

- The schema is plain TypeScript. No separate DSL to learn. Your types and relations are checked at compile time, so a typo in a permission name fails the build instead of failing in prod.

- Built on OpenFGA. It's the same relationship-based model as Google Zanzibar, so roles, sharing, teams and nested access all fit without piling up special cases.

- Self-hosted in one command. One install script brings up the whole stack: Postgres, the runtime, the control plane and a dashboard. There's also a local mode if you just want to poke at it.

- SDK + CLI. Use the SDK in your app and the CLI to ship your schema like any other piece of infrastructure.

- Open source, MIT licensed. Whatever you build on it stays yours.

The landing page is a bit of an experiment too: you walk through it as user:visitor, and each section unlocks as you earn new relations in your own little permission graph. It's probably the quickest way to get the idea, and there's nothing to install.

Feel free to give it a look: https://peretyn.dev

Docs: https://docs.peretyn.dev and GitHub: https://github.com/peretyn/peretyn

Heads up, it's early (pre-1.0), so expect some breaking changes between minor versions. That's exactly why I'd love feedback now: does the approach make sense? Is anything confusing? What would stop you from using it? Roasts welcome too 🙂

Thanks for reading!