The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
import type { BookDecoratedTemplate } from '../template-format';
/**
* Double spreads of travel ephemera: a map with ticket stubs, a filmstrip,
* the back of a postcard. Each is drawn in the theme of its archetype.
*
* Drawn on a 210 mm page and kept as fractions of it (template-format.ts),
* in the colours and faces of the theme named above; their links let any
* other theme recolour them.
*/
export const INNER_EPHEMERA: readonly BookDecoratedTemplate[] = [
{
id: 'map-tickets',
labelKey: 'studio.templates.name.mapTickets',
kind: 'inner',
archetype: 'grid-badge',
tags: ['map', 'route', 'tickets', 'ephemera', 'two-photos', 'graphic'],
descr:
"The journey's map on the left page; on the right two ticket stubs, one with the title and the date, one turned with the subtitle, a boarding pass and two photos side by side under them.",
background: null,
backgroundToken: 'paper',
elements: [
{
id: 'm1',
role: 'map',
frame: { x: 0.0857, y: 0.0857, w: 0.8286, h: 0.8286 },
rotation: 0,
opacity: 1,
locked: false,
font: 'sans',
color: '#141414',
accent: '#111111',
textScale: 1,
weight: 700,
stale: false,
token: 'ink',
accentToken: 'accent',
kind: 'map',
source: 'vector',
tileUrl: '',
attribution: '',
zoom: null,
style: 'minimal',
showLand: true,
showRoute: true,
showPins: true,
showLabels: false,
routeStyle: 'plain',
routeArc: 'straight',
routeDash: 'solid',
pinStyle: 'dot',
countries: [],
points: [],
path: [],
roads: [],
fitPadding: 0.4,
fitToCountries: true,
clip: 'rect',
tripId: null,
},
{
id: 's2',
frame: { x: 0.0857, y: 0.0857, w: 0.8286, h: 0.8286 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'shape',
shape: 'rect',
fill: null,
gradient: 'none',
stroke: '#141414',
strokeToken: 'ink',
strokeWidth: 0.0014,
strokeStyle: 'solid',
radius: 0,
},
{
id: 's3',
frame: { x: 1.0857, y: 0.1143, w: 0.581, h: 0.2619 },
rotation: 0,
opacity: 1,
locked: false,
group: 'ticket',
kind: 'shape',
shape: 'ticket-stub',
fill: '#f2eee7',
gradient: 'none',
stroke: null,
token: 'accent2',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 't4',
role: 'title',
on: 'accent2',
frame: { x: 1.1429, y: 0.1571, w: 0.4476, h: 0.1048 },
rotation: 0,
opacity: 1,
locked: false,
group: 'ticket',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.1238,
weight: 800,
italic: false,
align: 'left',
leading: 1,
tracking: 0,
color: '#141414',
token: 'ink',
fontRole: 'display',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1238,
},
{
id: 't5',
role: 'date',
frame: { x: 1.0857, y: 0.3905, w: 0.1429, h: 0.0333 },
rotation: 0,
opacity: 1,
locked: false,
group: 'ticket',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0357,
weight: 600,
italic: false,
align: 'left',
leading: 1,
tracking: 0.4,
color: '#141414',
token: 'ink',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0357,
},
{
id: 's6',
frame: { x: 1.2476, y: 0.419, w: 0.581, h: 0.2619 },
rotation: 4,
opacity: 1,
locked: false,
group: 'stub',
kind: 'shape',
shape: 'ticket-stub',
fill: null,
gradient: 'none',
stroke: '#141414',
strokeToken: 'ink',
strokeWidth: 0.0019,
strokeStyle: 'dashed',
radius: 0,
},
{
id: 't7',
role: 'subtitle',
keep: true,
frame: { x: 1.3143, y: 0.5048, w: 0.4476, h: 0.0667 },
rotation: 4,
opacity: 1,
locked: false,
group: 'stub',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0476,
weight: 600,
italic: false,
align: 'left',
leading: 1,
tracking: 0.3,
color: '#141414',
token: 'ink',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0476,
},
{
id: 's8',
keep: true,
frame: { x: 1.6762, y: 0.0952, w: 0.2571, h: 0.1333 },
rotation: 8,
opacity: 1,
locked: false,
kind: 'sticker',
stickerId: 'boardingPass',
colors: [],
flipX: false,
},
{
id: 'p9',
role: 'photo:1',
frame: { x: 1.0857, y: 0.7333, w: 0.4095, h: 0.2 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p10',
role: 'photo:2',
frame: { x: 1.5143, y: 0.7333, w: 0.4095, h: 0.2 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
],
},
{
id: 'filmstrip-script',
labelKey: 'studio.templates.name.filmstripScript',
kind: 'inner',
archetype: 'grid-badge',
tags: ['filmstrip', 'six-photos', 'script', 'story', 'cinema', 'graphic'],
descr:
'A black filmstrip across the spread with sprocket holes along both edges and six photos as its frames, three on each page; under it the title in a script, the date, the caption and the story.',
background: null,
backgroundToken: 'paper',
elements: [
{
id: 's1',
frame: { x: -0.0143, y: 0.1905, w: 2.0286, h: 0.4571 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'shape',
shape: 'rect',
fill: '#141414',
gradient: 'none',
stroke: null,
token: 'ink',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0,
},
{
id: 'l2',
tint: { stroke: 'paper' },
frame: { x: -0.0143, y: 0.2119, w: 2.0286, h: 0.0143 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'line',
points: [
{ x: 0, y: 0.5 },
{ x: 1, y: 0.5 },
],
curve: 'straight',
stroke: '#ffffff',
strokeWidth: 0.0086,
dash: 'dashed',
squiggle: 'none',
startCap: 'none',
endCap: 'none',
wobble: 0,
ornament: 'none',
},
{
id: 'l3',
tint: { stroke: 'paper' },
frame: { x: -0.0143, y: 0.6119, w: 2.0286, h: 0.0143 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'line',
points: [
{ x: 0, y: 0.5 },
{ x: 1, y: 0.5 },
],
curve: 'straight',
stroke: '#ffffff',
strokeWidth: 0.0086,
dash: 'dashed',
squiggle: 'none',
startCap: 'none',
endCap: 'none',
wobble: 0,
ornament: 'none',
},
{
id: 'p4',
role: 'photo:1',
frame: { x: 0.0762, y: 0.2476, w: 0.2667, h: 0.3429 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p5',
role: 'photo:2',
frame: { x: 0.3667, y: 0.2476, w: 0.2667, h: 0.3429 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p6',
role: 'photo:3',
frame: { x: 0.6571, y: 0.2476, w: 0.2667, h: 0.3429 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p7',
role: 'photo:4',
frame: { x: 1.0762, y: 0.2476, w: 0.2667, h: 0.3429 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p8',
role: 'photo:5',
frame: { x: 1.3667, y: 0.2476, w: 0.2667, h: 0.3429 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 'p9',
role: 'photo:6',
frame: { x: 1.6571, y: 0.2476, w: 0.2667, h: 0.3429 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 't10',
role: 'caption',
frame: { x: 0.0762, y: 0.6952, w: 0.8476, h: 0.0381 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'text',
text: '',
font: 'inter',
size: 0.0381,
weight: 400,
italic: true,
align: 'left',
leading: 1.2,
tracking: 0,
color: '#5b5b5b',
token: 'muted',
fontRole: 'body',
binding: null,
overridden: false,
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0381,
},
{
id: 't11',
role: 'body',
frame: { x: 0.0762, y: 0.7619, w: 0.8476, h: 0.1714 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'text',
text: '',
font: 'inter',
size: 0.0452,
weight: 400,
italic: false,
align: 'left',
leading: 1.55,
tracking: 0,
color: '#141414',
token: 'ink',
fontRole: 'body',
binding: null,
overridden: false,
vAlign: 'top',
},
{
id: 't12',
role: 'title',
frame: { x: 1.0762, y: 0.6857, w: 0.8476, h: 0.181 },
rotation: 0,
opacity: 1,
locked: false,
group: 'title',
kind: 'text',
text: '',
font: 'allura',
size: 0.2857,
weight: 400,
italic: false,
align: 'right',
leading: 1,
tracking: 0,
color: '#141414',
token: 'ink',
fontRole: 'script',
binding: null,
overridden: false,
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.2857,
},
{
id: 't13',
role: 'date',
frame: { x: 1.0762, y: 0.8857, w: 0.8476, h: 0.0381 },
rotation: 0,
opacity: 1,
locked: false,
group: 'title',
kind: 'text',
text: '',
font: 'montserrat',
size: 0.0381,
weight: 600,
italic: false,
align: 'right',
leading: 1,
tracking: 0.4,
color: '#5b5b5b',
token: 'muted',
fontRole: 'heading',
binding: null,
overridden: false,
transform: 'upper',
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.0381,
},
],
},
{
id: 'postcard-back',
labelKey: 'studio.templates.name.postcardBack',
kind: 'inner',
archetype: 'postcard',
tags: ['postcard', 'handwriting', 'stamp', 'postmark', 'story', 'two-photos', 'calm'],
descr:
'A bleed photo on the left page as the front of a postcard; on the right the back of the card: the title and the story in handwriting on the left half, a stamp with a postmark, the place and the date on the address lines.',
background: '#f3d58a',
backgroundToken: 'accent3',
elements: [
{
id: 'p1',
role: 'photo:1',
frame: { x: -0.0143, y: -0.0143, w: 1.0143, h: 1.0286 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
},
{
id: 's2',
frame: { x: 1.0905, y: 0.119, w: 0.8381, h: 0.7905 },
rotation: 0,
opacity: 0.12,
locked: false,
kind: 'shape',
shape: 'rect',
fill: '#1f2d4d',
gradient: 'none',
stroke: null,
token: 'ink',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0.0071,
},
{
id: 's3',
frame: { x: 1.0762, y: 0.1048, w: 0.8381, h: 0.7905 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'shape',
shape: 'rect',
fill: '#e3f1e8',
gradient: 'none',
stroke: null,
token: 'paper',
strokeWidth: 0,
strokeStyle: 'solid',
radius: 0.0071,
},
{
id: 'l4',
tint: { stroke: 'ink' },
frame: { x: 1.4905, y: 0.1619, w: 0.0095, h: 0.6762 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'line',
points: [
{ x: 0.5, y: 0 },
{ x: 0.5, y: 1 },
],
curve: 'straight',
stroke: '#1f2d4d',
strokeWidth: 0.0014,
dash: 'solid',
squiggle: 'none',
startCap: 'none',
endCap: 'none',
wobble: 0,
ornament: 'none',
},
{
id: 't5',
role: 'title',
frame: { x: 1.1238, y: 0.1524, w: 0.3429, h: 0.1048 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'text',
text: '',
font: 'dancing',
size: 0.1238,
weight: 400,
italic: false,
align: 'left',
leading: 1,
tracking: 0,
color: '#1f2d4d',
token: 'ink',
fontRole: 'script',
binding: null,
overridden: false,
vAlign: 'middle',
fit: 'shrink',
fitMax: 0.1238,
},
{
id: 't6',
role: 'body',
frame: { x: 1.1238, y: 0.2762, w: 0.3429, h: 0.5714 },
rotation: 0,
opacity: 1,
locked: false,
kind: 'text',
text: '',
font: 'dancing',
size: 0.0571,
weight: 400,
italic: false,
align: 'left',
leading: 1.35,
tracking: 0,
color: '#1f2d4d',
token: 'ink',
fontRole: 'script',
binding: null,
overridden: false,
vAlign: 'top',
},
{
id: 'p7',
role: 'photo:2',
frame: { x: 1.7333, y: 0.1429, w: 0.1429, h: 0.1714 },
rotation: 3,
opacity: 1,
locked: false,
group: 'stamp',
kind: 'photo',
photoId: null,
fit: 'cover',
focalX: 0.5,
focalY: 0.5,
radius: 0,
filter: 'none',
mask: null,
frameStyle: 'none',
border: { width: 0.0076, color: '#ffffff' },
edge: 'perforated',
edgeSize: 0.0052,
},
{
id: 's8',
tint: { colors: ['ink'] },
frame: { x: 1.5714, y: 0.1905, w: 0.2, h: 0.1143 },
rotation: -10,
opacity: 0.8,
locked: false,
group: 'stamp',
kind: 'sticker',
stickerId: 'postmark',
colors: ['#1f2d4d'],
flipX: false,
},
{
id: 't9',
role: 'subtitle',
frame: { x: 1.5333, y: 0.5238, w: 0.3429, h: 0.0429 },
rotation: 0,
opacity: 1,
locked: false,
group: 'address',
kind: 'text',
text: '',
font: 'dancing',
size: 0.0667,
weight: 400,
italic: false,
align: 'left',
leading: 1,
tracking: 0,
color: '#1f2d4d',
token: 'ink',
fontRole: 'script',
binding: null,
overridden: false,
vAlign: 'bottom',
fit: 'shrink',
fitMax: 0.0667,
},
{
id: 'l10',
tint: { stroke: 'ink' },
frame: { x: 1.5333, y: 0.5667, w: 0.3429, h: 0.0095 },
rotation: 0,
opacity: 1,
locked: false,
group: 'address',
kind: 'line',
points: [
{ x: 0, y: 0.5 },
{ x: 1, y: 0.5 },
],
curve: 'straight',
stroke: '#1f2d4d',
strokeWidth: 0.0012,
dash: 'solid',
squiggle: 'none',
startCap: 'none',
endCap: 'none',
wobble: 0,
ornament: 'none',
},
{
id: 't11',
role: 'date',
frame: { x: 1.5333, y: 0.6, w: 0.3429, h: 0.0429 },
rotation: 0,
opacity: 1,
locked: false,
group: 'address',
kind: 'text',
text: '',
font: 'dancing',
size: 0.0667,
weight: 400,
italic: false,
align: 'left',
leading: 1,
tracking: 0,
color: '#1f2d4d',
token: 'ink',
fontRole: 'script',
binding: null,
overridden: false,
vAlign: 'bottom',
fit: 'shrink',
fitMax: 0.0667,
},
{
id: 'l12',
tint: { stroke: 'ink' },
frame: { x: 1.5333, y: 0.6429, w: 0.3429, h: 0.0095 },
rotation: 0,
opacity: 1,
locked: false,
group: 'address',
kind: 'line',
points: [
{ x: 0, y: 0.5 },
{ x: 1, y: 0.5 },
],
curve: 'straight',
stroke: '#1f2d4d',
strokeWidth: 0.0012,
dash: 'solid',
squiggle: 'none',
startCap: 'none',
endCap: 'none',
wobble: 0,
ornament: 'none',
},
{
id: 'l13',
tint: { stroke: 'ink' },
frame: { x: 1.5333, y: 0.719, w: 0.3429, h: 0.0095 },
rotation: 0,
opacity: 1,
locked: false,
group: 'address',
kind: 'line',
points: [
{ x: 0, y: 0.5 },
{ x: 1, y: 0.5 },
],
curve: 'straight',
stroke: '#1f2d4d',
strokeWidth: 0.0012,
dash: 'solid',
squiggle: 'none',
startCap: 'none',
endCap: 'none',
wobble: 0,
ornament: 'none',
},
],
},
];