MCPcopy Index your code
hub / github.com/craftedbygc/taxi

github.com/craftedbygc/taxi @1.8.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.8.0 ↗ · + Follow
69 symbols 126 edges 19 files 28 documented · 41%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Taxi.js is the spiritual successor to Highway.js.

Full Documentation

npm i @unseenco/taxi or yarn add @unseenco/taxi


Taxi is a js library for adding AJAX navigation and beautiful transitions to your website.

It was designed as a drop-in replacement for Highway.js which is sadly no longer maintained.

Enhancements over Highway:

  • URL-based routing
  • Better cache management
  • Ability to preload URLs
  • Blocks navigation during an active transition (can be opted out)
  • Auto runs javascript on the new page
  • Previous page's content is automatically removed (you can opt out of this if you like)
  • Click events on links can be intercepted via stopPropagation without hacks

Differences to Highway

  • Different public API
  • New methods and functionality
  • data-taxi, data-taxi-view, data-taxi-ignore are to be used instead of data-router-wrapper, data-router-view, data-router-disabled respectively.
  • attach and detach are no longer methods - link clicks are listened to via delegation so these are no longer needed.
  • redirect is now navigateTo as "redirect" felt weird as a method name!
  • Renderers now have an initialLoad method
  • The params passed to renderers, transitions, and events are now a little different
  • Old content is automatically removed during a transition - so no need to manually call from.remove() in your transitions.

Full Documentation

Core symbols most depended-on inside this repo

processUrl
called by 9
src/helpers.js
on
called by 6
src/Core.js
add
called by 6
src/RouteStore.js
remove
called by 6
src/Renderer.js
createCacheEntry
called by 4
src/Core.js
createDom
called by 3
src/Renderer.js
navigateTo
called by 2
src/Core.js
beforeFetch
called by 2
src/Core.js

Shape

Method 42
Class 20
Function 7

Languages

TypeScript100%

Modules by API surface

src/Core.js20 symbols
src/Renderer.js13 symbols
src/Transition.js7 symbols
docs/assets/js/renderers/DefaultRenderer.js6 symbols
src/helpers.js5 symbols
src/RouteStore.js4 symbols
docs/assets/js/transitions/DefaultTransition.js4 symbols
src/Transition.d.ts2 symbols
src/RouteStore.d.ts2 symbols
src/Renderer.d.ts2 symbols
src/Core.d.ts2 symbols
docs/assets/js/index.js1 symbols

For agents

$ claude mcp add taxi \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact