百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

typed

> 前端框架
开源

使用 Effect-TS 的 Web 应用程序

366 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 Effect-TS 的 Web 应用程序

Typed

Beta: This repository and all packages are in beta.

Effect native · Platform first

Cooperative by design

Build reactive applications, accessible interfaces, and your own libraries. Keep the types. Keep the platform. Make it yours.

Start building · Why cooperative? · Documentation · API reference

TypeScript + Effect · Open source · Adopt one piece at a time

Why Typed

01 — State is yours. Keep your model independent of the view. Test the behavior without mounting an interface.

02 — The DOM is shared. Compose real nodes, native events, and existing tools. Give each part a clear owner.

03 — Work has a lifetime. Use Effect to describe errors, dependencies, and cleanup. Carry those contracts directly into the UI.

Build with it. Build on it.

The same small contracts connect an application to its infrastructure—and a library to its users.

For application developers — Start with a running view. Add forms, requests, navigation, and tests as the product grows. Bring the same model to your existing stack or build an application from the ground up. Follow the application path →

For library developers — Compose push streams, renderer-independent state, and typed templates. Preserve error and service channels. Build a component library, renderer, or framework. Follow the library path →

One value. Every place it belongs.

A RefSubject is current state and a stream of changes. Derive the total, interpolate both values, and give the button an Effect. The renderer connects the updates and owns their subscriptions.

typescript
import { RefSubject } from "@typed/fx";
import { component, html } from "@typed/template";
import { Button } from "@typed/ui/Button";

export const Quantity = component(function* () {
  const quantity = yield* RefSubject.make(1);
  const total = RefSubject.map(quantity, n => n * 24);

  return html`
    ${quantity} items · $${total}
    ${Button({
      content: "Add an item",
      onclick: RefSubject.increment(quantity),
    })}
  `;
});

Understand the example →

Use the pieces you need

No all-or-nothing migration. Start with reactive state, a single island, or a shared component.

@typed/fx — Reactive programs

Values over time, derived state, concurrency, and scoped subscriptions.

@typed/template — HTML with a lifetime

Typed template literals, local DOM updates, server rendering, and hydration.

@typed/ui — Accessible building blocks

Compose controls, forms, collections, and overlays around native browser behavior.

@typed/router — URLs as typed inputs

Parse paths and queries, select views, and connect routing to your application.

@typed/guard — Decisions with typed inputs

Validate inputs, compose matching rules, and preserve errors and dependencies.

@typed/async-data — Honest request state

Represent loading, refreshing, success, failure, and optimistic data explicitly.

Every package, module, and public export →

Integrate with your stack

Bring Typed to the renderer you already use:

  • @typed/react, @typed/svelte, and @typed/vue — render components in either direction with SSR and hydration, native reactive state, Effect services, and shared routing.
  • @typed/template/WebComponent — native custom elements with Typed views, server rendering, and hydration.
  • @typed/astro — Typed islands in Astro pages.

See how Typed fits your stack →

Keep useful work useful

Separate business rules from presentation. Reuse accessible interaction patterns. Adopt new tools without rewriting the model. Those are engineering choices that leave more room to work on the product.

Documentation website

apps/website is an Astro static site for GitHub Pages. Guides, integration recipes, the Quick Start, and TodoMVC tutorial live in Markdown. The API reference is generated from public package exports and source documentation.

bash
pnpm --filter typed-website docs:generate
pnpm --filter typed-website test:docs
pnpm --filter typed-website typecheck
pnpm --filter typed-website test:production
pnpm --filter typed-website dev

See website development and the @typed/astro integration for commands and rendering contracts.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptarchitectureasyncdomeffect

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架