-
Notifications
You must be signed in to change notification settings - Fork 140
chore: effect example #3635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: effect example #3635
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Pull Request Review: Effect ExampleOverviewThis PR adds a new Effect.ts integration example for RivetKit, demonstrating how to use the Effect library with Rivet Actors. The implementation includes wrapper utilities for Effect integration and example actors showcasing the pattern. 🔴 Critical Issues1. README Does Not Follow Template (examples/effect/README.md)The README violates the documented template format from Missing Required Sections:
Current Issues:
Required Fix: # Effect.ts Integration for RivetKit
Example project demonstrating Effect.ts integration with RivetKit actors for type-safe, composable workflows.
[Learn More →](https://github.com/rivet-dev/rivetkit)
[Discord](https://rivet.dev/discord) — [Documentation](https://rivetkit.org) — [Issues](https://github.com/rivet-dev/rivetkit/issues)
## Getting Started
```sh
git clone https://github.com/rivet-dev/rivetkit
cd rivetkit/examples/effect
pnpm install
pnpm run devRun the connect script to interact with actors: pnpm run connectFeatures
ImplementationThis example provides Effect.ts wrappers around RivetKit's actor system, enabling developers to write actions using Effect generators. Key implementation files:
The ResourcesRead more about:
LicenseApache 2.0 Recommendation: Remove this code or add a clear comment explaining why it's kept as reference. 3. Unused Function (examples/effect/src/actors/user.ts:58-62, 73-77)The function createStripeCustomer(email: string): Effect.Effect<string> { /* ... */ }
function sendResendWelcomeEmail(email: string): Effect.Effect<void> { /* ... */ }Recommendation: Either use these functions or remove them to keep the example focused. 4. Stub Email Validation (examples/effect/src/actors/user.ts:53-55)The email validation always returns function validateEmail(email: string): boolean {
return true;
}Recommendation: Either implement basic validation or add a comment explaining this is intentionally stubbed for demonstration purposes.
|

No description provided.