• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

sqlitelogs

Remix of maxm/sqlitelogs
Public
Like
sqlitelogs
Home
Code
5
.vtignore
README.md
deno.json
logger.tsx
H
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
/
Code
/
Search
main.tsx
https://stevekrouse--3f01471827f94131bd0f08d3c85e25fc.web.val.run
README.md

Val Town Logger

A simple, powerful logging system for Val Town that stores logs in SQLite and provides both a web interface and API for viewing and searching logs.

Features

  • πŸ“ Log any data type with automatic formatting
  • πŸ” Search logs with full-text search
  • πŸ“Š Clean, dark-themed web interface
  • πŸ“± Responsive design that works on mobile and desktop
  • πŸ”„ Pagination and sorting options
  • πŸ”Œ API access for programmatic log retrieval

Usage

  1. Remix this project to your account
  2. Import the log function from the logger module and use it to log any data:
Create val
import { log } from "https://esm.town/v/YOUR_USERNAME_HERE/sqlitelogs/logger.tsx"; // Log simple messages await log("User signed up"); // Log multiple values await log("User", userId, "performed action", actionType); // Log objects and complex data await log("Request data:", requestObject); await log("Error occurred:", errorObject);
  1. View logs via the HTTP val

Implementation Details

The logger uses SQLite for storage with a table structure that includes:

  • id: Unique identifier for each log entry
  • line: The formatted log message
  • ts: Timestamp when the log was created
HTTP
  • main.tsx
    stevekrouse--3f…fc.web.val.run
Code
.vtignoreREADME.mddeno.jsonlogger.tsx
H
main.tsx
FeaturesVersion controlCode intelligenceCLI
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.