This week you will design (not build) the API for your assigned PostKit library.
Your goal: create a clear, usable, well-documented API that another student could use without asking you questions.
Spec:
PostKit-libs.md
Define:
- what your package exports
- inputs and outputs
- behavior
- how to use it
Create a README.md that includes:
For each:
- name
- inputs
- output
- description
- explain key decisions
- Follow the assigned spec
- You design the API (names, params, signatures)
- Must be clear, consistent, and TypeScript-friendly
Do NOT:
- implement code
- write tests
- publish to npm
- Read spec
- Sketch API
- Write README
- Open PR
- Get reviews
- Revise + get approval
You will submit your API via a Pull Request and review two peers.
Branch: api-proposal
PR title:
API Proposal — <package-name>
How:
- Create branch
- Update README
- Commit
- Open PR (
api-proposal → main)
main
Review exactly two libraries:
- If you are N → review N+1 and N+2
- Wrap: 9→10,1 and 10→1,2
How to review:
- Open repo
- Pull Requests tab
- Open PR
- Files changed
- Comment on lines
- Submit review
Also: request your reviewers on your PR
Each review must include:
- 3+ comments
- 1 suggestion
- 1 question
Focus on:
- clarity
- inputs/outputs
- usability
- edge cases
- respond to comments
- update README
- push changes
Required:
- 2 peer approvals
- instructor approval
Approval means reviewers can use your API without confusion.
⛔ No approval = no Week 2
Due: Start of Week 3 All PRs must be created and peer reviews completed by this time.
- unclear function names
- vague inputs/outputs
- missing examples
- weak reviews ("looks good")
- README complete
- API matches spec
- examples are clear
- PR approved (2 peers + instructor)
A good library starts with a clear API.
Make it:
easy to understand, easy to use, ready to build