4
5- Service response types
6- Notion API types
7- Database schema types
8- Shared interfaces and enums
1# Backend Services
2
3This directory contains service modules for external API integrations and business logic:
4
5- Notion API integrations
6- External service calls
7- Data transformation logic
3This directory contains route handlers organized by functionality:
4
5- `/api` - JSON API endpoints for frontend/backend communication
6- `/tasks` - Webhook handlers for Notion integrations
7- `/views` - Server-side rendered views for frontend
20
211. Set `DISCORD_WEBHOOK` environment variable
222. Set `OPENAI_API_KEY` environment variable
233. Set `testMode = false` in main.tsx for production
7import { spotifyGetMyTracks } from "https://esm.town/v/neverstew/spotifyGetMyTracks/main.ts";
8import { spotifyAddPlaylistItems } from "https://esm.town/v/neverstew/spotifyAddPlaylistItems";
9import { getProject } from "https://esm.town/v/neverstew/api1001AlbumsGenerator";
10import { SPOTIFY_TOKEN } from "./tokens";
11
1/*
2 * Random scratchpad for gathering data and exploring the API.
3 */
4
3const app = new Hono();
4
5// TODO: Add API routes here
6
7export default app;
1# Services
2
3External service integrations and API clients.
4
5This directory contains:
6- Notion API integration
7- Other external service clients
8- Service response handling with consistent error patterns
1# API Routes
2
3JSON API endpoints that serve data to both backend and frontend components.
4
5These routes handle:
5## Structure
6
7- `/api` - JSON API endpoints for frontend consumption
8- `/tasks` - Webhook handlers for Notion and other external services
9- `/views` - Server-rendered views and data endpoints for frontend