• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
dl4senses

dl4senses

fastest-growing-ai

Public
Like
fastest-growing-ai
Home
Code
7
frontend
1
.vtignore
AGENTS.md
README.md
deno.json
main-minimal.ts
H
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
main.ts
https://dl4senses--af753e8cd07511f0899842dde27851f2.web.val.run
README.md

Fastest Growing AI Repositories - Val Town Application

A simple, efficient Val Town application that analyzes and tracks the fastest growing AI repositories on GitHub.

πŸš€ Features

Core Functionality

  • Real-time GitHub API Integration - Fetches latest AI repository data
  • Growth Analysis Algorithm - Calculates growth scores with age-based multipliers
  • Multiple Endpoints - Analyze, trending, test, and health check endpoints
  • CORS Support - Works with web applications

Growth Analysis Algorithm

  • Growth Score = (Stars Γ· Days Old) Γ— Age Multiplier
  • Age Multipliers:
    • ≀7 days: 3.0x (explosive potential)
    • 8-14 days: 2.0x (high momentum)
    • 15-30 days: 1.5x (solid growth)
    • 31+ days: 1.0x (established baseline)

Growth Categories

  • πŸ”₯ EXPLOSIVE: Growth score >20
  • πŸš€ HOT: Growth score 10-20
  • πŸ“ˆ STRONG: Growth score 5-10
  • ⬆️ RISING: Growth score 2-5
  • πŸ“Š STEADY: Growth score <2

πŸ”§ API Endpoints

GET /api/analyze or GET /

Analyze AI repositories with growth metrics.

Parameters:

  • days (number): Analysis period (1-90, default: 7)
  • limit (number): Result limit (1-100, default: 20)

Example:

curl "https://your-val.web.val.run/api/analyze?days=14&limit=30"

GET /api/trending

Get trending repositories categorized by growth rate.

Parameters:

  • limit (number): Results per category (1-50, default: 10)

Example:

curl "https://your-val.web.val.run/api/trending?limit=15"

GET /api/test

Simple test endpoint to verify GitHub API connectivity and basic functionality.

Example:

curl "https://your-val.web.val.run/api/test"

GET /api/health

Health check and system status.

Example:

curl "https://your-val.web.val.run/api/health"

πŸ“Š Response Formats

Analyze Endpoint Response

{ "success": true, "query": { "days": 7, "limit": 20, "total_found": 150, "analyzed": 25, "created_since": "2024-11-26" }, "results": [ { "name": "user/ai-repo", "url": "https://github.com/user/ai-repo", "description": "Amazing AI project", "language": "Python", "owner": "user", "stars": 1250, "created_at": "2024-11-20T10:00:00.000Z", "days_old": 7, "stars_per_day": 178.57, "growth_score": 535.71, "growth_category": "EXPLOSIVE", "topics": ["ai", "machine-learning", "llm"] } ], "categories": { "explosive": [...], "hot": [...], "strong": [...], "rising": [...], "steady": [...] }, "summary": { "explosive": 3, "hot": 5, "strong": 7, "rising": 4, "steady": 6 } }

Trending Endpoint Response

{ "success": true, "explosive": [...], "hot": [...], "strong": [...], "rising": [...], "steady": [...], "metadata": { "analysis_date": "2024-12-03T12:00:00.000Z", "total_repos": 25, "time_period": 30 } }

Test Endpoint Response

{ "success": true, "totalFound": 5000, "recentRepos": 15, "repositories": [ { "name": "user/ai-repo", "stars": 500, "language": "TypeScript", "description": "AI-powered tool", "url": "https://github.com/user/ai-repo", "created_at": "2024-11-15T00:00:00.000Z", "days_old": 18, "stars_per_day": 27.78 } ] }

πŸš€ Deployment

Using Val Town CLI

  1. Create the val:
cd fastest_growing_ai vt create fastest-growing-ai ./
  1. Deploy:
vt watch # Auto-sync changes

Manual Deployment

  1. Copy the files to your Val Town project
  2. Configure HTTP trigger in Val Town UI

πŸ”§ Configuration

Environment Variables (Optional)

No environment variables are required for basic functionality. If you need higher GitHub API rate limits, you can optionally add:

# In Val Town dashboard: Settings β†’ Environment Variables GITHUB_TOKEN=ghp_your_github_token_here

πŸ“Š Usage Examples

API Integration

// JavaScript example const response = await fetch('https://your-val.web.val.run/api/analyze?days=7&limit=10'); const data = await response.json(); console.log('Top growing repositories:', data.results);
# Python example import requests response = requests.get('https://your-val.web.val.run/api/trending?limit=5') data = response.json() print('Explosive growth repos:', data['explosive']) print('Hot trending repos:', data['hot'])

Command Line Usage

# Get top 20 growing repositories from last 7 days curl "https://your-val.web.val.run/api/analyze" # Get trending repositories by category curl "https://your-val.web.val.run/api/trending" # Test basic functionality curl "https://your-val.web.val.run/api/test" # Check system health curl "https://your-val.web.val.run/api/health"

πŸ” Troubleshooting

Common Issues

Empty Results:

  • Check the /api/test endpoint first to verify GitHub API connectivity
  • Verify the date filter isn't too restrictive
  • Check if GitHub API rate limits are hit

API Errors:

  • Check /api/health for GitHub API status
  • Verify User-Agent header is properly set
  • Check GitHub API rate limits

Slow Response:

  • GitHub API calls can take time
  • Consider using smaller limits
  • Check network connectivity

Debugging

  1. Test Basic API Call:
curl "https://your-val.web.val.run/api/test"
  1. Check System Health:
curl "https://your-val.web.val.run/api/health"
  1. Monitor GitHub API Limits:
curl "https://api.github.com/rate_limit"

🎯 How It Works

1. GitHub API Integration

  • Uses GitHub's search API with topic:ai filter
  • Filters by creation date and star count
  • Sorts by star count (default) or custom sorting

2. Growth Analysis

  • Calculates days since repository creation
  • Computes stars per day
  • Applies age-based multipliers for growth score
  • Categorizes repositories based on growth score

3. Date Filtering

  • Uses ISO 8601 date format for GitHub API
  • Converts user-friendly parameters to GitHub format
  • Filters repositories created within specified time period

4. Response Formatting

  • Provides consistent JSON responses
  • Includes error handling and status reporting
  • Adds CORS headers for web application compatibility

πŸ“„ License

This project is open source and available under the MIT License.


Built with ❀️ for the AI community πŸ€–βœ¨

Simple, efficient, and focused on providing the best AI repository growth insights.

HTTP
  • main.ts
    dl4senses--af…f2.web.val.run
Code
frontend.vtignoreAGENTS.mdREADME.mddeno.jsonmain-minimal.ts
H
main.ts
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.