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.
DEVELOPER DOCUMENTATION
A practical overview of the application’s data, API and access model. These endpoints support Party Night’s own web interface.
React with a Next-compatible App Router, built using Vinext and served through Cloudflare Workers. Public venue and city pages render on the server.
Cloudflare D1 stores profiles, crews, saved venues, posts and conversations. The researched venue catalog ships as versioned data with source links.
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.
| Method | Route | Purpose |
|---|---|---|
| GET | /api/me | Current sign-in context, profile and administrator flag. |
| GET · PUT · DELETE | /api/profile | Read, edit or delete the current member’s profile and related app data. |
| GET | /api/venues | Return the researched venue directory and source links. |
| GET · POST | /api/saved | Read the current member’s saved IDs or toggle a venue using venueId. |
| GET · POST | /api/crews | Discover crews by city or text, or create one. |
| GET | /api/crews/:id | Read a crew, its member information and your membership state. |
| POST | /api/crews/:id/join · /leave | Join or request to join a crew, or leave it. |
| GET · POST | /api/feed | Read community posts or publish a post. |
| DELETE | /api/feed/:id | Remove your own post; authorised administrators may moderate. |
| POST | /api/feed/:id/like | Toggle the current member’s like. |
| GET · POST | /api/feed/:id/comments | Read comments or add a comment. |
| GET | /api/people | Find public member profiles by text query. |
| GET · POST | /api/chats | List your conversations or start a direct-message request. |
| GET · POST | /api/chats/:id/messages | Read or send messages after conversation access checks. |
| POST | /api/chats/:id/accept · /decline | Respond to a direct-message request as its recipient. |
| GET · POST | /api/blocks | Read your blocked accounts or toggle a block. |
| POST | /api/reports | Report a user, post, crew or message with a reason. |
| GET | /api/status | Check current application database health. |
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.
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.
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.