Proyek
Lihat di GitHub
kitlangton/effect-solutions
Tentang
A guide to writing idiomatic Effect code.
Pembelajaran dan pendidikanYang dapat Anda lakukan
- Practical patterns - Real-world solutions, not just theory
- Type-safe examples - All code validated with Effect LSP
- AI-friendly - Structured for LLM consumption via CLI
- Community-driven - Open issues to suggest/debate patterns
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +3
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliEffect Solutions
Effect best practices and patterns — https://www.effect.solutions
Living Document: Opinionated collection exploiting Cunningham's Law. Disagree? Open an issue
What is this?
Curated Effect TypeScript patterns for common scenarios — error handling, services, layers, testing, and more. For humans and AI agents.
Usage
Website: Browse at effect.solutions
CLI: Access docs offline
bunx effect-solutions list # List all topics
bunx effect-solutions show http-clients # Show specific topic
bunx effect-solutions open-issue # Leave feedback
Features
- Practical patterns - Real-world solutions, not just theory
- Type-safe examples - All code validated with Effect LSP
- AI-friendly - Structured for LLM consumption via CLI
- Community-driven - Open issues to suggest/debate patterns
Quick Examples
Error handling
import { Effect } from "effect"
Effect.gen(function* () {
const user = yield* findUser(id).pipe(
Effect.catchTag("NotFound", () => Effect.succeed(null))
)
})
HTTP client setup
import { Effect, HttpClient } from "effect"
import { FetchHttpClient } from "@effect/platform"
const program = Effect.gen(function* () {
const http = yield* HttpClient.HttpClient
const result = yield* http.get("/api/users")
})
program.pipe(
Effect.provide(FetchHttpClient.layer)
)
See effect.solutions for full patterns and rationale.
Contributing
- Find a missing pattern or disagree with a recommendation
- Open an issue to discuss
- Submit PR with pattern + tests
- Create changeset:
bun scripts/changeset-named.ts "description"
See CONTRIBUTING.md for details and CLAUDE.md for development workflow.
Releasing (tags auto-publish)
- Apply changesets and bump versions:
bun run version(creates tagvX.Y.Z). - Push the tag/commit to GitHub.
- The
Releaseworkflow builds multi-arch CLI binaries and runschangeset publishto publish all packages to npm.
Packages
effect-solutions- CLI for local docs- Website at effect.solutions
License
MIT
Jelajahi proyek terkait
Memuat…