How mgoldie05/chalk works
Chalk is a campus robotics-club announcement wall. Members register or sign in, compose posts, and view the public wall; authors and officers can remove posts, while officers can access a role-gated private desk. Server actions coordinate authentication, post mutations, and SQLite access; the wall formats post bodies as light markdown. The README documents the feature set, and sampled source supports the main request paths. The health endpoint and some infrastructure are omitted as peripheral to the user workflow.
Main entry points: actions.js Server actions · page.js Public wall · db.js SQLite database · auth.js Sessions and accounts
Components 13
Web experience
- App shell
app/layout.js - Registration
app/register/page.js - Sign in
app/login/page.js - Compose post
app/compose/page.js - Officer desk
app/mod/page.js
Identity and actions
- Server actions
lib/actions.js - Sessions and accounts
lib/auth.js
Wall and content
- Public wall
app/page.js - Markdown formatting
lib/markdown.js - Post renderer
components/PostBody.js
Persistence
- Demo data
lib/seed.js - SQLite database
lib/db.js
Other components
- Club member
Connections 20
- Club member → Registration: registers
app/register/page.js - Club member → Sign in: signs in
app/login/page.js - Club member → Compose post: submits post
app/compose/page.js - Club member → Public wall: views posts
README.md - App shell → Server actions: loads user
app/layout.js - Registration → Server actions: submits registration
app/register/page.js - Sign in → Server actions: submits credentials
app/login/page.js - Compose post → Server actions: submits post
app/compose/page.js - Server actions → Sessions and accounts: manages sessions
lib/actions.js - Server actions → SQLite database: writes posts
lib/actions.js - Sessions and accounts → SQLite database: reads and writes
lib/auth.js - Sessions and accounts → Demo data: initializes data
lib/auth.js - Demo data → SQLite database: seeds records
lib/seed.js - Public wall → Server actions: loads user
app/page.js - Public wall → SQLite database: reads posts
app/page.js - Public wall → Markdown formatting: formats bodies
app/page.js - Public wall → Post renderer: renders HTML
app/page.js - Officer desk → Server actions: checks user
app/mod/page.js - Officer desk → SQLite database: reads desk notes
app/mod/page.js - App shell → Server actions: signs out
app/layout.js