kitlangton / kitlangton/effect-solutions
Content Request: Monorepo setups and integration into existing code bases
- Dominant language
- TypeScript
- Stars
- 442
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for building this collection of useful tips and guidelines on Effect!
I wanted to ask if there's plans to add a section on how to structure larger code bases (especially across different platforms like client, mobile, server, etc.), when using Effect either as the main framework, or when just adding the first pieces into an existing code base.
Some questions I have on this:
1. When using the RPC/HTTP packages, do I import only the types from the Server on the client? Or would it be better to have an intermediate packages called "@mysoftware/contracts" that holds the 'base definitions' so to speak (same for any shared schemas)
2. Are there any conventions on how to structure application entry points + layer building? Especially in larger apps where Effect isn't as widely used yet, do you have a single "clientRuntime" that has all the layers combined via a ManagedRuntime, or is it better to have a runtime per "domain/module"? Are multiple ManagedRuntimes even allowed?
3. How is tree-shaking handled when using Context.Tag with predefined layers? As far as I know, any bundler will pull in the test or alternative layers into the final bundle as well (not good on a client) - what alternatives can be used (or are recommended) here?
Thanks in advance!
Contributor guide
Research direction
Start by reviewing the existing guide structure and the Effect topics named in the request: RPC/HTTP packages, ManagedRuntime, and Context.Tag. Define the scope of a monorepo and integration section around client, mobile, server, and existing code bases. Done means adding an agreed section that addresses the three listed questions with clear guidance.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- content, documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100