How benarfi/typescriptsamples works
This repository is a collection of independent TypeScript samples, not one product. The clearest end-to-end workflows are the Image Board’s HTTP routes and MongoDB operations, and the async sample’s GitHub pull-request, commit, and comment retrieval. Other groups preserve the README’s major demo families. Connections are limited to relationships shown by excerpts or SOURCE INDEX references; unsampled internals are not inferred.
Main entry points: GreetingStore.ts Greeting Store · app.ts HTTP App · index.ts Async CLI · App.tsx Greeting App
Components 34
Image Board
- HTTP App
imageboard/app.ts - Index Route
imageboard/routes/index.ts - Mongo Data Access
imageboard/db.ts
Async GitHub
- Async CLI
async/src/lib/index.ts - GitHub Client
async/src/lib/github.ts - Formatting Utilities
async/src/lib/utils.ts
React Flux
- React Mount
react-flux-babel-karma/src/main.tsx - Greeting App
react-flux-babel-karma/src/components/App.tsx - Greeting View
react-flux-babel-karma/src/components/Greeting.tsx - Recipient Input
react-flux-babel-karma/src/components/WhoToGreet.tsx - Greeting Actions
react-flux-babel-karma/src/actions/GreetingActions.ts - Greeting Store
react-flux-babel-karma/src/stores/GreetingStore.ts - Flux Base Store
react-flux-babel-karma/src/stores/FluxStore.ts - App Dispatcher
react-flux-babel-karma/src/dispatcher/AppDispatcher.ts - Greeting State
react-flux-babel-karma/src/types/GreetingState.ts
Framework Samples
- Angular Seed App
angular1/app/app.ts - Angular Views
angular1/app/view1/view1.ts - Version Component
angular1/app/components/version/version.ts - Angular 2 Todo
angular2/app/todo.ts - AngularFire Adapter
angular2/firebase/angularfire.js - TodoMVC
todomvc/js/todos.ts
Other Demos
- Mankala Game
mankala/Game.ts - Board Position
mankala/Position.ts - Warship Combat
warship/warship.ts - Raytracer
raytracer/raytracer.ts - D3 Data Demo
d3/data.ts - Parallax Starfield
jquery/parallax.ts - Time Reporter
umd/shared/timeReporter.ts - Browser Time Demo
umd/browser/app.ts
Other components
- Web Visitor
- MongoDB
- Remote Site
- GitHub API
- Terminal
Connections 24
- Web Visitor → HTTP App: requests
imageboard/app.ts - HTTP App → Index Route: routes to
imageboard/app.ts - Index Route → Mongo Data Access: loads users
imageboard/routes/index.ts - HTTP App → Mongo Data Access: reads and writes
imageboard/app.ts - Mongo Data Access → MongoDB: queries
imageboard/db.ts - HTTP App → Remote Site: fetches HTML
imageboard/app.ts - Terminal → Async CLI: runs
async/src/lib/index.ts - Async CLI → GitHub Client: requests pull data
async/src/lib/index.ts - Async CLI → Formatting Utilities: formats messages
async/src/lib/index.ts - GitHub Client → GitHub API: calls API
- Async CLI → Terminal: prints results
async/src/lib/index.ts - React Mount → Greeting App: mounts
react-flux-babel-karma/src/main.tsx - Greeting App → Greeting Store: reads state
react-flux-babel-karma/src/components/App.tsx - Greeting App → Greeting View: renders
react-flux-babel-karma/src/components/App.tsx - Greeting App → Recipient Input: renders
react-flux-babel-karma/src/components/App.tsx - Greeting View → Greeting Actions: uses
react-flux-babel-karma/src/components/Greeting.tsx - Recipient Input → Greeting Actions: uses
react-flux-babel-karma/src/components/WhoToGreet.tsx - Greeting Store → Flux Base Store: extends
react-flux-babel-karma/src/stores/GreetingStore.ts - Greeting Store → App Dispatcher: registers with
react-flux-babel-karma/src/stores/GreetingStore.ts - Greeting Store → Greeting Actions: references
react-flux-babel-karma/src/stores/GreetingStore.ts - Greeting Store → Greeting State: uses state type
react-flux-babel-karma/src/stores/GreetingStore.ts - Angular 2 Todo → AngularFire Adapter: imports
angular2/app/todo.ts - Mankala Game → Board Position: uses positions
- Browser Time Demo → Time Reporter: starts
umd/browser/app.ts