A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Effect-TS/effect below:

Effect-TS/effect: Build production-ready applications in TypeScript

An ecosystem of tools to build robust applications in TypeScript

Welcome to Effect, a powerful TypeScript framework that provides a fully-fledged functional effect system with a rich standard library.

Effect consists of several packages that work together to help build robust TypeScript applications. The core package, effect, serves as the foundation of the framework, offering primitives for managing side effects, ensuring type safety, and supporting concurrency.

The Effect monorepo is organized into multiple packages, each extending the core functionality. Below is an overview of the packages included:

Package Description effect Core package README @effect/ai AI utilities README @effect/ai-openai OpenAI utilities README @effect/ai-anthropic Anthropic utilities README @effect/ai-amazon-bedrock Effect modules for working with Amazon Bedrock AI apis README @effect/ai-google Effect modules for working with Google AI apis README @effect/cli CLI utilities README @effect/cluster Distributed computing tools README @effect/experimental Experimental features and APIs README @effect/opentelemetry OpenTelemetry integration README @effect/platform Cross-platform runtime utilities README @effect/platform-browser Platform utilities for the browser README @effect/platform-bun Platform utilities for Bun README @effect/platform-node Platform utilities for Node.js README @effect/platform-node-shared Shared utilities for Node.js README @effect/printer General-purpose printing utilities README @effect/printer-ansi ANSI-compatible printing utilities README @effect/rpc Remote procedure call (RPC) utilities README @effect/sql SQL database utilities README @effect/sql-clickhouse An @effect/sql implementation for ClickHouse. README @effect/sql-d1 An @effect/sql implementation for Cloudflare D1. README @effect/sql-drizzle An @effect/sql implementation for Drizzle. README @effect/sql-kysely An @effect/sql implementation for Kysely. README @effect/sql-libsql An @effect/sql implementation using the @libsql/client library. README @effect/sql-mssql An @effect/sql implementation using the mssql tedious library. README @effect/sql-mysql2 An @effect/sql implementation using the mysql2 library. README @effect/sql-pg An @effect/sql implementation using the postgres.js library. README @effect/sql-sqlite-bun An @effect/sql implementation using the bun:sqlite library. README @effect/sql-sqlite-do An @effect/sql implementation for Cloudflare Durable Objects sqlite storage. README @effect/sql-sqlite-node An @effect/sql implementation using the better-sqlite3 library. README @effect/sql-sqlite-react-native An @effect/sql implementation using the react-native-quick-sqlite library. README @effect/sql-sqlite-wasm An @effect/sql implementation using the @sqlite.org/sqlite-wasm library. README @effect/typeclass Functional programming type classes README @effect/vitest Testing utilities for Vitest README @effect/workflow Durable workflows for Effect README

For detailed information and usage examples, visit the Effect website.

For a complete API reference of the core package effect, see the Effect API documentation.

Get started with Effect by watching our introductory video on YouTube. This video provides an overview of Effect and its key features:

Connect with Our Community

Join the Effect community on Discord to connect with other developers, ask questions, and share insights: Join Effect's Discord Community.

Contributing via Pull Requests

We welcome contributions via pull requests! Here are some guidelines to help you get started:

Setting Up Your Environment

Begin by forking the repository and clone it to your local machine.

Navigate into the cloned repository and create a new branch for your changes:

git checkout -b my-branch

Ensure all required dependencies are installed by running:

pnpm install  # Requires pnpm version 10.4.0

Make the changes you propose to the codebase. If your changes impact functionality, please add corresponding tests to validate your updates.

Run the following commands to ensure your changes do not introduce any issues:

When adding a new feature, it's important to document your code using JSDoc comments. This helps other developers understand the purpose and usage of your changes. Include at least the following in your JSDoc comments:

Note: A HTML utility file, code2jsdoc-example.html, has been added to assist with creating JSDoc @example comments. This web-based interface includes two text areas:

  1. An input textarea for pasting example code.
  2. An output textarea that dynamically generates formatted JSDoc @example comments.

This utility helps ensure consistent formatting and streamlines the process of documenting examples. See the following example of its usage:

Example Input:

import { Effect } from "effect"

console.log(Effect.runSyncExit(Effect.succeed(1)))
/*
Output:
{
  _id: "Exit",
  _tag: "Success",
  value: 1
}
*/

Output:

*
* @example
* ```ts
* import { Effect } from "effect"
*
* console.log(Effect.runSyncExit(Effect.succeed(1)))
* // Output:
* // {
* //   _id: "Exit",
* //   _tag: "Success",
* //   value: 1
* // }
* ```
*

By using this utility, you can save time and maintain consistency in your JSDoc comments, especially for complex examples.

Before committing your changes, document them with a changeset. This process helps in tracking modifications and effectively communicating them to the project team and users:

During the changeset creation process, you will be prompted to select the appropriate level for your changes:

Finalizing Your Contribution

Once you have documented your changes with a changeset, it’s time to commit them to the repository. Use a clear and descriptive commit message, which could be the same message you used in your changeset:

git commit -am 'Add some feature'

If your commit addresses an open issue, reference the issue number directly in your commit message. This helps to link your contribution clearly to specific tasks or bug reports. Additionally, if your commit resolves the issue, you can indicate this by adding a phrase like ", closes #<issue-number>". For example:

git commit -am 'Add some feature, closes #123'

This practice not only helps in tracking the progress of issues but also automatically closes the issue when the commit is merged, streamlining project management.

Push the changes up to your GitHub fork:

git push origin my-branch

Open a pull request against the appropriate branch on the original repository:

Please be patient! We will do our best to review your pull request as soon as possible.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4