Skip to content
Back to discovery

DEVELOPER DOCUMENTATION

Under the surface.

A practical overview of the application’s data, API and access model. These endpoints support Party Night’s own web interface.

Web application

React with a Next-compatible App Router, built using Vinext and served through Cloudflare Workers. Public venue and city pages render on the server.

Persistent community

Cloudflare D1 stores profiles, crews, saved venues, posts and conversations. The researched venue catalog ships as versioned data with source links.

Identity and requests

Authenticated features use the native Sign in with ChatGPT session supplied by the hosting platform. The application reads the platform’s server-verified identity. It does not accept a member ID supplied by a browser as proof of identity.

Use same-origin requests from the signed-in app. Writes are JSON, require a valid origin, and enforce account, content-length and rate-limit checks. Social writes also require a completed adult profile. No public API-key issuance or third-party developer access program is currently provided.

If you operate a separate deployment, replace the hosting identity integration with a verified authentication boundary. Never trust identity headers sent directly by an untrusted browser.

Application endpoints

MethodRoutePurpose
GET/api/meCurrent sign-in context, profile and administrator flag.
GET · PUT · DELETE/api/profileRead, edit or delete the current member’s profile and related app data.
GET/api/venuesReturn the researched venue directory and source links.
GET · POST/api/savedRead the current member’s saved IDs or toggle a venue using venueId.
GET · POST/api/crewsDiscover crews by city or text, or create one.
GET/api/crews/:idRead a crew, its member information and your membership state.
POST/api/crews/:id/join · /leaveJoin or request to join a crew, or leave it.
GET · POST/api/feedRead community posts or publish a post.
DELETE/api/feed/:idRemove your own post; authorised administrators may moderate.
POST/api/feed/:id/likeToggle the current member’s like.
GET · POST/api/feed/:id/commentsRead comments or add a comment.
GET/api/peopleFind public member profiles by text query.
GET · POST/api/chatsList your conversations or start a direct-message request.
GET · POST/api/chats/:id/messagesRead or send messages after conversation access checks.
POST/api/chats/:id/accept · /declineRespond to a direct-message request as its recipient.
GET · POST/api/blocksRead your blocked accounts or toggle a block.
POST/api/reportsReport a user, post, crew or message with a reason.
GET/api/statusCheck current application database health.

Example: a crew request

A completed profile can create a crew using a same-origin request. The server assigns ownership from the verified session.

POST /api/crews
Content-Type: application/json

{
  "name": "Your crew name",
  "description": "What your crew is about",
  "city": "Sydney",
  "genre": "House",
  "privacy": "private"
}

This is an API format example. It is not a seeded crew or a published community record.

Data visibility

  • Profiles and community feed content are public; email addresses are excluded from public records.
  • Saved venues and block lists belong to the current account.
  • Private crew membership needs approval; its listing remains discoverable.
  • A crew chat requires current membership. A direct chat requires participation in that exact conversation.
  • Direct conversations start pending, with one introductory message before acceptance.
  • Messages are stored on the server and are not end-to-end encrypted.

Errors and operations

Failures return JSON in the form {"error":"Readable explanation"} with an appropriate HTTP status. Clients should display the explanation and avoid reporting a write as successful until the server confirms it. Rate-limit responses should be handled without repeatedly retrying a write.

Administrative APIs require an explicit server-side email allowlist; signing in first does not grant administration. Reports and aggregate service counts are available only through that authorised role.

The status page reads the application health endpoint. It reports the current check, not a fabricated historical uptime percentage. The sitemap lists public routes; member-only surfaces should not be indexed.

Venue data and location

Each directory record includes its ID, name, city, address, description, official website, source URL and research date. Genre tags are included only when supported by the research. There are no generated ratings, opening-hour guarantees or ticket inventories.

The device-location feature selects a supported city in the browser. It does not transmit precise coordinates to this application. Map links use the venue’s published address.