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

ryi

nexus_github_check

Public
Like
nexus_github_check
Home
Code
5
.vtignore
AGENTS.md
README.md
deno.json
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
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
/
README.md
Code
/
README.md
Search
…
Viewing readonly version of main branch: v5
View latest version
README.md

nexus_github_check

A Val Town microservice that monitors the Ryizome GitHub repository and reports commit activity to the DDCT Nexus monitoring system.

Overview

This service fetches commit data from the GitHub API and tracks:

  • Last commit timestamp
  • Number of commits in the last 24 hours
  • Number of commits in the last 48 hours
  • Number of commits in the last 7 days
  • Last commit author, message, and SHA

The data is reported to the nexus service and appears in the daily status report sent via Telegram.

Configuration

Environment Variables

GITHUB_PAT (required): GitHub Personal Access Token with repository read access

To create a GitHub PAT:

  1. Go to GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic)
  2. Generate new token with repo scope (or use fine-grained token with Contents: Read-only)
  3. Add the token to Val Town environment variables

Schedule

Recommended: Daily execution (e.g., midnight UTC)

Set in Val Town dashboard when creating the interval val.

Deployment

  1. Create a new Val in Val Town
  2. Set as interval type
  3. Add GITHUB_PAT environment variable
  4. Copy code from main.tsx
  5. Set schedule to daily
  6. Save and test

Or use vt CLI:

cd nexus_github_check vt push

Monitoring

The service reports to nexus with service name RyizomeGitHub.

Check the daily report in Telegram for status:

RyizomeGitHub: 🟩 (OK)
  📊 3/5/18 commits (24h/48h/7d)
  ⏱️  Last: 2h ago by aeone
  💬 "Update nexus tracking system"

Error Handling

If the GitHub API check fails:

  • Error is logged to console
  • ERROR status is reported to nexus
  • Daily report shows: RyizomeGitHub: 🟥 (ERROR)

Common errors:

  • Missing or invalid GITHUB_PAT
  • GitHub API rate limit (unlikely with daily checks)
  • Network connectivity issues
  • Repository access issues

Dependencies

  • node:crypto - For checksum generation
  • Val Town SQLite - Used by nexus for data storage
  • GitHub REST API v3
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.