How praveenarr/iouring works
This is a small Next.js Posts Hub application: users sign in, manage a posts feed, and open individual posts to view, edit, or delete them. The root layout provides shared authentication and post state plus create/edit dialogs; post mutations call JSONPlaceholder and update client-side state. The sampled code does not establish how posts are initially loaded, and the home page was not inspected, so those relationships are omitted.
Main entry points: ListClient.jsx Posts feed · PostsContext.jsx Post state and CRUD · PostClient.jsx Post detail · AuthContext.jsx Authentication state
Components 15
Pages and routes
- Home route
app/page.js - Sign-in page
app/login/page.jsx - Posts feed
app/list/ListClient.jsx - Post detail
app/post/PostClient.jsx
Post interface
- Root layout
app/layout.js - Navigation header
app/components/Header.jsx - Footer
app/components/Footer.jsx - Create post modal
app/components/AddPostModal.jsx - Edit post modal
app/components/EditPostModal.jsx - Delete confirmation
app/components/ConfirmModal.jsx
Client state
- Authentication state
app/context/AuthContext.jsx - Post state and CRUD
app/context/PostsContext.jsx
External services
- Browser local storage
- JSONPlaceholder API
Other components
- Visitor
Connections 25
- Visitor → Sign-in page: signs in
- Visitor → Posts feed: manages posts
- Posts feed → Post detail: opens post
app/list/ListClient.jsx - Sign-in page → Authentication state: logs in
app/login/page.jsx - Sign-in page → Posts feed: navigates
app/login/page.jsx - Posts feed → Authentication state: reads user
app/list/ListClient.jsx - Posts feed → Post state and CRUD: reads and deletes
app/list/ListClient.jsx - Post detail → Post state and CRUD: updates and deletes
app/post/PostClient.jsx - Root layout → Authentication state: provides
app/layout.js - Root layout → Post state and CRUD: provides
app/layout.js - Root layout → Create post modal: renders
app/layout.js - Root layout → Edit post modal: renders
app/layout.js - Posts feed → Navigation header: renders
app/list/ListClient.jsx - Posts feed → Footer: renders
app/list/ListClient.jsx - Posts feed → Delete confirmation: renders
app/list/ListClient.jsx - Post detail → Navigation header: renders
app/post/PostClient.jsx - Post detail → Footer: renders
app/post/PostClient.jsx - Post detail → Delete confirmation: renders
app/post/PostClient.jsx - Navigation header → Authentication state: reads and logs out
app/components/Header.jsx - Navigation header → Post state and CRUD: opens create modal
app/components/Header.jsx - Create post modal → Post state and CRUD: creates post
app/components/AddPostModal.jsx - Edit post modal → Post state and CRUD: updates post
app/components/EditPostModal.jsx - Authentication state → Browser local storage: reads and writes
app/context/AuthContext.jsx - Post state and CRUD → JSONPlaceholder API: sends CRUD requests
app/context/PostsContext.jsx - Post state and CRUD → Posts feed: updates feed state
app/list/ListClient.jsx