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

colel

rust-nyc-event-signin

Public
Like
rust-nyc-event-signin
Home
Code
9
backend
1
frontend
3
shared
1
.vtignore
AGENT.md
BRAND_STYLE_GUIDE.md
README.md
deno.json
main.tsx
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
/
README.md
Code
/
README.md
Search
7/10/2025
Viewing readonly version of main branch: v2
View latest version
README.md

Event Check-in System

A complete event check-in system for managing attendee sign-ins with secure name verification.

Features

  • Event Management: Create events with attendee lists and password protection
  • Secure Check-in: Fuzzy search-based sign-in with name verification
  • Analytics Dashboard: Track check-ins with date-based analytics
  • CSV Import/Export: Import attendee lists and export check-in data
  • Responsive UI: Clean, modern interface built with React and TailwindCSS

How It Works

  1. Event Creation: Organizers create events with attendee lists via CSV upload
  2. Attendee Sign-in: Attendees use fuzzy search to find and check in with their names
  3. Data Tracking: System tracks all check-ins with timestamps
  4. Analytics: Organizers can view check-in analytics and export data
  5. Security: No sensitive information exposed, password-protected management

Project Structure

β”œβ”€β”€ backend/
β”‚   └── index.ts              # Main API server with Hono
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html           # Main HTML template
β”‚   β”œβ”€β”€ index.tsx            # React app entry point
β”‚   └── components/
β”‚       β”œβ”€β”€ App.tsx          # Main app component
β”‚       β”œβ”€β”€ TalkSubmissionForm.tsx  # Form component
β”‚       └── SubmissionSuccess.tsx   # Success page component
β”œβ”€β”€ shared/
β”‚   └── types.ts             # Shared TypeScript types
└── README.md

Setup

Environment Variables

You'll need to set up the following environment variables for Discord integration:

  • DISCORD_BOT_TOKEN: Your Discord bot token
  • DISCORD_GUILD_ID: Your Discord server ID
  • DISCORD_ORGANIZERS_CHANNEL_ID: Channel ID where organizer notifications are sent
  • DISCORD_CATEGORY_ID (optional): Category ID for organizing talk channels
  • DISCORD_TEST_CATEGORY_ID (optional): Category ID for organizing test channels
  • DISCORD_TEST_ORGANIZERS_CHANNEL_ID (optional): Channel ID for test announcements

Testing Environment Variables

The following environment variables are used for testing the Discord integration without affecting production channels:

  • ENABLE_TEST_API: Set to "true" to enable the test API endpoint (required for testing)
  • DISCORD_TEST_CATEGORY_ID: Separate category for test channels to keep them organized
  • DISCORD_TEST_ORGANIZERS_CHANNEL_ID: Separate channel for test notifications to avoid spamming production organizers

Testing the Discord Integration:

curl -X POST https://rustnyc-talks.val.run/api/discord/test \ -H "Content-Type: application/json" \ -d '{"channelName": "my-test-channel", "firstMessage": "Hello from test endpoint!"}'

Parameters:

  • channelName (required): Name for the test channel (will be sanitized for Discord)
  • firstMessage (required): First message to send to the channel

This will create a test channel with the specified name, send the first message, and return an invite link. If test environment variables are configured, it will also notify the test organizers channel.

Testing Discord Invite Creation Directly:

You can also test the Discord invite creation process directly using Discord's API:

curl -X POST https://discord.com/api/v10/channels/CHANNEL_ID/invites \ -H "Authorization: Bot YOUR_BOT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "max_age": 0, "max_uses": 0, "unique": true }'

Replace CHANNEL_ID with an existing channel ID and YOUR_BOT_TOKEN with your Discord bot token. This matches exactly how the bot creates invitation links internally.

Discord Bot Setup

  1. Create a Discord application at https://discord.com/developers/applications
  2. Create a bot and copy the token
  3. Invite the bot to your server with the following permissions:
    • Manage Channels
    • Send Messages
    • Create Instant Invite
    • View Channels

Database

The system uses SQLite with the following schema:

CREATE TABLE talk_submissions_1 ( id INTEGER PRIMARY KEY AUTOINCREMENT, speaker_name TEXT NOT NULL, talk_context TEXT NOT NULL, is_on_behalf BOOLEAN NOT NULL, discord_channel_id TEXT, discord_invite_link TEXT, created_at DATETIME DEFAULT CURRENT_TIMESTAMP );

API Endpoints

  • POST /api/submissions - Submit a new talk proposal
  • GET /api/submissions - Get all submissions (admin)
  • POST /api/discord/test - Test Discord integration (creates test channel and sends message)

Discord Integration Status

βœ… Discord integration is fully implemented with comprehensive logging

The system will automatically:

  • Create Discord channels for each talk submission
  • Generate invite links for the channels
  • Post notifications to the organizers channel

Comprehensive Logging: The system includes detailed logging throughout the Discord integration process:

  • πŸ” Environment variable checks on startup
  • 🎯 API request tracking with submission details
  • πŸ”§ Discord channel creation with API responses
  • πŸ”— Invite link generation with full details
  • πŸ“’ Organizer notifications with message content
  • πŸ’₯ Detailed error logging with stack traces and specific Discord error codes
  • πŸ“Š Final result summaries

Fallback behavior: If Discord credentials are not provided, the system will use placeholder values and log what would have been done, allowing the form to still function for testing.

Debugging: Use the requests tool to view detailed logs of each submission, including all Discord API interactions and any errors that occur.

Usage

  1. Fill out the talk submission form
  2. Submit the form
  3. Receive a Discord invite link
  4. Join the Discord channel to discuss your talk with organizers

Tech Stack

  • Backend: Hono (API framework)
  • Frontend: React 18.2.0 with TypeScript
  • Database: SQLite
  • Styling: TailwindCSS
  • Platform: Val Town (Deno runtime)
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
Β© 2026 Val Town, Inc.