Content
@
0 reply
0 recast
2 reactions
jtgi
@jtgi
A thread of snippets from automod codebase that may be of interest to ppl building on farcaster. ––––– 1. Server driven config that made it possible to add rules in minutes w/o writing any ui code. Sample config: https://github.com/jtgi/automod/blob/main/app/lib/validations.server.ts#L309-L360 Field generator: https://github.com/jtgi/automod/blob/main/app/components/curation-form.tsx#L777
11 replies
104 recasts
371 reactions
jtgi
@jtgi
2. A farcaster multi-select user picker with auto-complete. Example uses react-hook-form, customized react-select w/debouncing and @neynar’s query username api. https://github.com/jtgi/automod/blob/main/app/components/user-picker.tsx [@moxie.eth fan token variant as well: https://github.com/jtgi/automod/blob/main/app/components/moxie-picker.tsx]
1 reply
0 recast
7 reactions
jtgi
@jtgi
3. Login with Farcaster in remix.run with a customized login button. login button: https://github.com/jtgi/automod/blob/main/app/routes/_index.tsx#L321 login route: https://github.com/jtgi/automod/blob/main/app/routes/auth.farcaster.tsx remix-auth farcaster strategy: https://github.com/jtgi/automod/blob/main/app/lib/farcaster-strategy.ts
2 replies
0 recast
6 reactions