Gathering detailed insights and metrics for effect
Gathering detailed insights and metrics for effect
Gathering detailed insights and metrics for effect
Gathering detailed insights and metrics for effect
An ecosystem of tools to build robust applications in TypeScript
npm install effect
@effect/typeclass@0.29.19
Published on 27 Nov 2024
@effect/vitest@0.13.19
Published on 27 Nov 2024
@effect/sql-sqlite-wasm@0.21.5
Published on 27 Nov 2024
@effect/rpc-http@0.42.28
Published on 27 Nov 2024
@effect/sql-sqlite-node@0.21.12
Published on 27 Nov 2024
@effect/sql-pg@0.21.12
Published on 27 Nov 2024
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7,734 Stars
6,175 Commits
246 Forks
25 Watching
45 Branches
115 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
TypeScript (99.92%)
JavaScript (0.06%)
HTML (0.01%)
Cumulative downloads
Total Downloads
Last day
-46%
195,498
Compared to previous day
Last week
14.2%
1,694,020
Compared to previous week
Last month
19.9%
5,912,038
Compared to previous month
Last year
9,391.2%
22,992,727
Compared to previous year
1
Welcome to Effect, a powerful TypeScript framework that provides a fully-fledged functional effect system with a rich standard library.
strict
flag enabled in your tsconfig.json
file1{ 2 // ... 3 "compilerOptions": { 4 // ... 5 "strict": true 6 } 7}
For detailed information and usage examples, please visit the Effect website.
To get started with Effect, watch our introductory video on YouTube. This video provides an overview of Effect and its key features, making it a great starting point for newcomers:
Join our vibrant community on Discord to interact with fellow developers, ask questions, and share your experiences. Here's the invite link to our Discord server: Join Effect's Discord Community.
For detailed information on the Effect API, please refer to our API Reference.
We welcome contributions via pull requests! Here are some guidelines to help you get started:
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:
1git checkout -b my-branch
Ensure all required dependencies are installed by running:
1pnpm install # Requires pnpm version 9.0.4
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:
pnpm codegen
(optional): Re-generate the package entrypoints in case you have changed the structure of a package or introduced a new module.pnpm check
: Confirm that the code compiles without errors.pnpm test
: Execute all unit tests to ensure your changes haven't broken existing functionality.pnpm circular
: Check for any circular dependencies in imports.pnpm lint
: Ensure the code adheres to our coding standards.
pnpm lint-fix
to automatically correct some of these.pnpm dtslint
: Run type-level tests.pnpm docgen
: Ensure the documentation generates correctly and reflects any changes made.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:
@example
tag to demonstrate how to use the feature.@since
tag to indicate the version in which the feature was introduced. If you're unsure about the version, please consult with a project maintainer.@category
tag to help organize the documentation. If you're unsure about what category to assign, ask a project maintainer.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:
@example
comments.This utility helps ensure consistent formatting and streamlines the process of documenting examples. See the following example of its usage:
Example Input:
1import { Effect } from "effect" 2 3console.log(Effect.runSyncExit(Effect.succeed(1))) 4/* 5Output: 6{ 7 _id: "Exit", 8 _tag: "Success", 9 value: 1 10} 11*/
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:
1pnpm changeset
During the changeset creation process, you will be prompted to select the appropriate level for your changes:
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:
1git 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:
1git 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:
1git push origin my-branch
Open a pull request against the appropriate branch on the original repository:
main
branch: For minor patches or bug fixes.next-minor
branch: For new features that are non-breaking.next-major
branch: For changes that introduce breaking modifications.Please be patient! We will do our best to review your pull request as soon as possible.
The latest stable version of the package.
Stable Version
1
9.8/10
Summary
Withdrawn Advisory: OS Command Injection in effect
Affected Versions
<= 1.0.4
Patched Versions
No security vulnerabilities found.