Trending Vals

361
charmaine avatar
charmaine
quickIndigoBobolink
HTTP
Forked from stevekrouse/newStripeSubscriber
0
362
charmaine avatar
charmaine
insightfulBrownAnt
HTTP
Forked from stevekrouse/newStripeSubscriber
0
363
jjacobs22 avatar
jjacobs22
uptime
Cron
Forked from stevekrouse/uptime
0
364
AIWB avatar
AIWB
sqliteExplorerApp
HTTP
Forked from nbbaier/sqliteExplorerApp
0
365
stevekrouse avatar
stevekrouse
crmtemplate
HTTP
Forked from juecd/crmtemplate
0
366
stevekrouse avatar
stevekrouse
CRM
HTTP
Forked from juecd/CRM
0
367
juecd avatar
juecd
crmtemplate
HTTP
Forked from juecd/CRM
0
368
loading avatar
loading
blob_admin
HTTP
Forked from stevekrouse/blob_admin
0
369
arno avatar
arno
cron_rezo_rss2bsky
Cron
Forked from fil/cron_rezo_rss2bsky
0
370
telvideo avatar
telvideo
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
371
vishu44 avatar
vishu44
helpfulTealTapir
HTTP
Forked from stevekrouse/cerebras_coder
0
372
vishu44 avatar
vishu44
vigilantAmaranthDragonfly
HTTP
Forked from stevekrouse/cerebras_coder
0
373
vishu44 avatar
vishu44
protectiveWhiteToad
HTTP
Forked from stevekrouse/cerebras_coder
0
374
vishu44 avatar
vishu44
philosophicalSapphirePtarmigan
HTTP
Forked from stevekrouse/cerebras_coder
0
375
vishu44 avatar
vishu44
loyalOrangeCanidae
HTTP
Forked from vishu44/reverentAquaCuckoo
0
376
juecd avatar
juecd
CRM
HTTP
I needed a lightweight CRM to track user conversations. I wanted it to be dead simple to use to reduce the amount of manual data entry I have to do. I also want to use keyboard shortcuts as much as possible. I had Townie build 70% of this successfully! == Set your password in your Val.Town environment variables. Command+K within the Notes or Link to Notes field submits the Customer Interaction.
0
377
LionMonkey avatar
LionMonkey
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
378
vawogbemi avatar
vawogbemi
Tourist
HTTP
Forked from stevekrouse/cerebrasTemplate
0
379
tmcw avatar
tmcw
bedtimeStoryMaker
HTTP
Bedtime Story Maker Inspired from a RedwoodJS demo I mde last year, this adds generative art powered by Fal to the bedtime story maker. Start writing a story by picking a style (spooky, colofrol, adventurous an animal (penguin, mouse, unicorn, whale ...) a color for the animal and activity (befriends aliens, goes to the doctor, rides a rollercoaster, bakes a cake for friends) It uses OpenAI to write a children's bedtime story title summary story for a "fantastical story about a green whale who rides the bus" or the "spooky story about the tomato fox who explores a cave". Then using the summary, OpenAI geenrates another prompt to describe the instructions to geneate a childrens story book image. That's sent to Fal to generate an image. Stories get saved to bedtime_stories in SQLite for viewing, searching and maybe sharing. You then get a bedtime story to enjoy!
0
380
npn avatar
npn
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
381
rootvertex avatar
rootvertex
cerebrasTemplate
HTTP
Forked from stevekrouse/cerebrasTemplate
0
382
shuyib avatar
shuyib
pokemonBattleAdvisor
HTTP
Pokémon Battle Advisor Overview The Pokémon Battle Advisor is a web application designed to help Pokémon trainers strategize their battles by providing detailed and realistic battle recommendations. Users can specify their Pokémon team or randomize a team, and then receive tailored battle strategies based on their team and the opponent's Pokémon. The application leverages the CEREBRAS API to generate these recommendations, ensuring they adhere to official Pokémon game mechanics. Features Specify Your Pokémon Team : Users can enter the names of up to three Pokémon to include in their team. Randomize Pokémon Team : Users can opt to randomize their Pokémon team, fetching three random Pokémon from the PokéAPI. Challenger Pokémon Input : Users can enter the name of the opponent's Pokémon to receive a battle recommendation. Battle Recommendations : The app provides detailed battle strategies, including recommended Pokémon, strategies, and type advantages. Data Validation : Ensures that only valid Pokémon names are accepted, preventing random or incorrect names from being processed. Caching Mechanism : Uses in-memory caching to store fetched Pokémon data, reducing redundant API calls and improving performance. Responsive Design : The app is designed to be responsive, ensuring usability across various devices and screen sizes. Installation Prerequisites Deno : This project is built using Deno, a secure runtime for JavaScript and TypeScript. Install Deno by following the instructions on the official website . Steps Fork the Repository : Set Up Environment Variables : Create a .env file in the root directory and add your Cerebras API key: CEREBRAS_API_KEY=your_cerebras_api_key Note: Ensure that your Cerebras API key is kept secure and not exposed publicly. Run the Application : Execute the following command to start the server: deno run --allow-net --allow-env cerebras_try.ts --allow-net : Grants network access needed for API calls. --allow-env : Grants access to environment variables for the API key. Access the Application : Open your browser and navigate to http://localhost:8000 to view the Pokémon Battle Advisor. Usage Specify Your Pokémon: Enter the names of up to three Pokémon in the input fields provided. Click the "🎯 Load Specified Pokémon" button to fetch and display the specified Pokémon. Randomize Pokémon: Click the "🔀 Randomize Pokémon" button to fetch and display three random Pokémon. Enter Challenger's Pokémon: Enter the name of the opponent's Pokémon in the input field provided. Click the "🤖 Get Battle Recommendation" button to generate a battle strategy. View Battle Recommendation: The app will display a detailed battle recommendation, including recommended Pokémon, strategies, and type advantages. Code Structure cerebras_try.ts : The main TypeScript file that serves both the server and client-side code. Server-Side: Handles HTTP requests. Serves the HTML page containing the React application. Provides an API endpoint ( /api/cerebras-key ) to securely retrieve the Cerebras API key. Client-Side: Built using React. Manages the user interface, state management, and interactions. Fetches Pokémon data from the PokéAPI. Communicates with the OpenAI API but uses the CEREBRAS API to generate battle recommendations. Components & Functions: App Component : The main React component that manages the state and logic for the application. validatePokemonData Function : Validates the structure and types of fetched Pokémon data. loadUserPokemons Function : Fetches and validates user-specified Pokémon. fetchRandomPokemon Function : Fetches and validates random Pokémon. generateBattleRecommendation Function : Generates battle recommendations using the OpenAI API. formatRecommendation Function : Formats the recommendation text into structured sections. Error Handling Invalid Pokémon Names : If a user enters an invalid Pokémon name, an error message is displayed prompting the user to enter a valid name. API Errors : Any network or unexpected errors during API calls are caught, and corresponding error messages are displayed to the user. Missing API Key : The application checks for the presence of the Cerebras API key and notifies the user if it's missing or invalid. Technologies Used Deno : A secure runtime for JavaScript and TypeScript. React : For building the user interface. OpenAI API : For generating battle recommendations. PokéAPI : For fetching Pokémon data. TypeScript : For type safety and improved developer experience. Contributing Contributions are welcome! Please follow these steps to contribute: Relevant when I move it to github. Fork the Repository : Click the "Fork" button at the top right of the repository page to create a copy of the repository under your GitHub account. Clone Your Fork : git clone https://github.com/yourusername/pokemon-battle-advisor.git cd pokemon-battle-advisor Create a New Branch : git checkout -b feature/your-feature-name Make Your Changes : Implement your feature or bug fix. Commit Your Changes : git commit -m "Add your commit message here" Push to Your Fork : git push origin feature/your-feature-name Submit a Pull Request : Go to the original repository on GitHub and create a pull request from your forked repository. License This project is licensed under the MIT License. See the LICENSE file for details. Contact For any questions or feedback, please contact cusp-aloft-brim@duck.com
0
383
shuyib avatar
shuyib
cerebrasTemplate
HTTP
Forked from stevekrouse/cerebrasTemplate
0
384
buddydagamer avatar
buddydagamer
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
385
gratitude5dee avatar
gratitude5dee
fastPlumBonobo
HTTP
Forked from stevekrouse/cerebras_coder
0
386
gratitude5dee avatar
gratitude5dee
productiveCyanPigeon
HTTP
Forked from stevekrouse/cerebras_coder
0
387
gratitude5dee avatar
gratitude5dee
observantBronzeOrca
HTTP
Forked from stevekrouse/cerebras_coder
0
388
sakshamkapoor2911 avatar
sakshamkapoor2911
Code_Debugger
HTTP
Forked from stevekrouse/cerebrasTemplate
0
389
smc avatar
smc
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
390
gratitude5dee avatar
gratitude5dee
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0