example of how you can deploy this as a website :) #15
Open
eden-chan wants to merge 16 commits intokarpathy:masterfrom
Open
example of how you can deploy this as a website :) #15eden-chan wants to merge 16 commits intokarpathy:masterfrom
eden-chan wants to merge 16 commits intokarpathy:masterfrom
Conversation
- Add py-modules configuration for direct module import - Bump version to 0.2.0 - Add author information - Update repository URLs
- Add Flask web app that reuses original CLI code - Add requirements.txt for web dependencies - Add render.yaml for Render deployment - Add deployment documentation - Add .gitignore for Python projects - Add MANIFEST.in for package distribution
- File-based caching using /tmp directory (works on Render) - Homepage shows cards of recently rendered repos - 24-hour cache TTL with automatic cleanup - Stores up to 100 repos in cache - No database required - uses JSON metadata file
- Add quick example buttons for popular repos (nanoGPT, Whisper, etc) - Improve mobile layout with responsive grid and flex layouts - Reduce max width from 1200px to 900px for better desktop viewing - Add responsive font sizes using clamp() - Style improvements for cards and empty state - Add tryExample() function to autofill and render
- Remove stars display (not fetched from API) - Remove cached timestamp display - Simplify card design with just name and URL - Improve URL styling with ellipsis for long URLs - Add subtle shadow on card hover
- Make entire card clickable to navigate to repo - Add loading page with spinner and progress steps - Show loading animation while repo is being processed - Loading page auto-redirects to actual processing - Clean card styling with hover effects
- Better 'How to Use' section with clear instructions - Separate Web and CLI usage sections - Copy to clipboard buttons for each code example - Visual feedback when copying (button changes to ✓ Copied!) - Improved styling with code blocks - Works with older browsers fallback
- Remove headers and explanatory text - Single row per method (Web/CLI) - Minimal copy buttons (just clipboard icon) - Smaller padding and margins - Cleaner, more scannable layout - Faster copy feedback (checkmark for 1.5s)
- Remove emoji icons from Web/CLI labels - Show actual nanoGPT example for both web and CLI - Combine pip install and usage in one CLI command - More concrete, ready-to-use examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Loved this, and wanted to make it more accessible. demo
pip install rendergitor just visit https://rendergit.com/https://github.com/eden-chan/rendergit