#Sports#Clubs

"Who's playing Sunday?" A match-day app for your cricket team

Nov 4, 2026・33 min read

Share

"Who's playing Sunday?" A match-day app for your cricket team

In this post

  • A free app that shows who's in for Sunday's match, builds the batting order and tracks match fees
  • About 3 minutes to start using it, or 15 minutes to make your own version
  • Jisapp (free), your usual AI and your team's WhatsApp group

Saturday night, 10 p.m., and still no eleven

It's Saturday night. The match is at 7 a.m. tomorrow, and the captain is scrolling up the team's WhatsApp group for the third time.

Eight thumbs-up. Two "will try." One "depends on work." Someone replied to the wrong message, so it's not clear if that "yes" was for this week or last week. (The players in this post are made up, but you probably know them.)

By the time the captain has counted, it's 10:30, and three messages saying "who else is coming?" have pushed the original question off the screen.

What makes it annoying

  • Answers get lost. Every new message pushes the "who's in?" question further up the chat
  • Nobody knows if you have eleven until someone counts by hand
  • On the day, there's the batting order to sort out and ₹200 match fees to collect, and nobody remembers who has already paid

None of this is hard. It's just scattered across one long chat.

How an app makes it easier

The biggest win: you know if you have eleven the moment you open the app.

The top card shows the next match, the opponent and the ground, and a ring that fills up as players tap "I'm in." It says "Need 3 more" until you get there, then "We have a team!" When anyone taps, everyone else's screen updates on its own.

The next match, with a ring that counts how many players are in
The next match, with a ring that counts how many players are in

Here's what else it does:

  • Squad: everyone's answer in one list, with how many have replied. In, Maybe and Out are sorted so you can see the gaps
  • Batting order: built automatically from the players who are in. Openers first, then the keeper, batters, all-rounders and bowlers. The captain can move anyone up or down
  • Fees: shows how much has been collected out of the total. Tap a name to mark it paid
  • Man of the match: one vote each after the game, with a crown for the leader
The batting order is built from the players who are in
The batting order is built from the players who are in
Match fees: how much is in, and who has paid
Match fees: how much is in, and who has paid

Use it as it is

We made it as an official Jisapp app. You can use it right now:

A Jisapp appTeam CricketTry it
▶The prompt for this appOpen
You are an excellent front-end engineer building apps for Jisapp.
I want to make "Team Cricket (a match-day app for our cricket team)".

[Extra requests and specs (from the user)]
- A match-day app for our cricket team. The top card shows the next match: opponent, date, time and ground, and a ring that counts how many players are in out of 11 ("Need 3 more" / "We have a team!")
- Each player taps "I'm in", "Maybe" or "Out" for each match. The squad list shows everyone's answer and how many have replied
- Players have a role (BAT / WK / AR / BOWL). Build the batting order automatically from the players who are in (two openers, then the keeper, the other batters, all-rounders and bowlers), and let the captain move players up or down
- Match fees: show how much has been collected out of the total, and let us mark each player as paid or unpaid
- Man of the match: everyone who played gets one vote, and the leader is shown with a crown
- Settings: add or edit the squad (one player per line: name, role) and the matches (opponent, date, time, ground, fee)
- Tabs: Squad, Order, Fees, MOTM
- Reflect the requests above as much as you can. If they conflict, Jisapp's rules come first (single HTML file, no CDNs, API keys only via secret).

Follow the rules below and output the complete index.html as one whole file in your first reply (no "changed parts only", no skipping). Whether to save data has already been decided, so don't ask about saving.
Write all text in the app's screens (labels, buttons, messages) in natural English.

[When the user wants to use external APIs (AI, weather, maps, etc.) (important)]
- If the user wants an app that uses an external service (API) such as AI, weather, maps, translation or news, follow [Using external APIs (how it works on Jisapp)] below. In your reply, always explain how to get the API key before the code, and how to set it up on Jisapp plus a note about costs after the code.
- If the app doesn't need an external API, don't ask about or explain external APIs.

[Rules for writing the code]
Strictly follow these Jisapp rules and put everything into a single index.html.

[One complete HTML file (single file)]
Don't split CSS or JavaScript into other files. Embed everything in one "index.html" file.

[No CDNs or external CSS frameworks at all (important)]
Never use CDNs such as Tailwind CSS or Bootstrap — because of environment limits, the design won't apply or it will error. The only exception: loading Google Fonts (fonts.googleapis.com) with a <link> tag, as the design spec asks, is allowed (always list the body font after it so nothing breaks if it doesn't load).
Write all design in plain CSS (Vanilla CSS), use CSS variables (:root) and so on, and build a bright, fresh, polished, modern UI (light mode) that's friendly for beginners.

[UI/UX design]
Build the design with Vanilla CSS only, following the spec below. Don't use external frameworks (Tailwind, etc.).
The goal: don't make "a neat screen that looks like every other AI-made app." Make a screen that feels like its subject and is fun to touch.

[Priorities] When unsure, or when rules conflict, follow this order:
  readability and ease of use > the bans (gradients, emoji, etc.) > feeling like the subject > decoration

====================================================
0. Decide first (before you start, write these three down briefly, then build)
====================================================
- The subject's metaphor: what real-world object is this app like? For example: diary → planner/notebook, budget → receipt or wallet, workouts → training log, travel → ticket or passport, duty roster → chalkboard or notice board, fandom → concert ticket or trading card, study → flashcards or notebook, shop → menu or order slip.
- The main data: what information appears most on the screen (dates, people, amounts, counts, places, progress, etc.)?
- The user's mood: how should it feel when they open it (calm / energized / organized / excited)?
From these three, choose the colors, fonts, materials and the shape of the first main element. Write what you chose, with the reasons, as a comment at the top of the code.
- If the subject doesn't map to a real object (to-do lists, settings, tools, etc.), don't force a metaphor. Make the main element "start with the content" or "big type only" (section 3), and show personality through fonts, colors and wording.

====================================================
1. Overall concept
====================================================
- A polished, colored design that doesn't rely on gradients. White cards float on a lightly tinted base, with a "main" color and an "accent" color for contrast.
- On top of that, bring in a little of the subject's metaphor through "material" and "shape," so the screen isn't just a stack of white boxes (sections 3 and 4).
- [Banned] Gradients (linear-gradient / radial-gradient / conic-gradient, including soft blurred color blobs) and rainbow-like use of many colors. Don't use frosted glass on cards or the whole-screen background.
- Where to use frosted glass: only on parts that float over the content (a header that stays at the top while scrolling, tabs or buttons fixed to the bottom, toasts, and the backdrop behind bottom sheets, modals and menus).
  Floating parts use background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); with a 1px rgba(255,255,255,.6) border.
  The backdrop behind bottom sheets, modals and menus uses background: rgba(17,24,39,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);

====================================================
2. Colors
====================================================
- Always decide the roles. Put every color in CSS variables on :root, and never write colors directly elsewhere in the code (so the theme can be swapped).
  Base (--base): the whole-screen background. A very light tint of the main color.
  Main (--main): emphasis on the main element, main buttons, heading icons, and the color of the subject's materials (bookmarks, bands, etc.).
  Main ink (--main-ink): a slightly darker main color for main-colored text on a white background.
  Accent (--accent): a bright highlight color for labels, emphasis, selected marks, sticky notes, etc.
  Light main (--main-l): the main color at about 10%. For secondary buttons, selected backgrounds and chips.
- To look refined: avoid pure primary colors and pick slightly grayed, "muted" colors. Pairing main and accent colors that are close to complementary (green × mustard, blue × yellow, pink × yellow, brick × yellow, etc.) gives good contrast.
- A main color that carries white text needs a contrast ratio of at least 3:1 with white (4.5:1 or more if possible). If you want a light main color, put dark text on it instead of white.
- Tint the text grays slightly toward the main hue (brownish for warm apps, bluish for cool apps). Pure black or neutral grays (#111827 / #6b7280, etc.) look cold and mechanical.
  Rough guide: text = a very dark shade of the main hue; secondary text = a low-saturation mid tone; faint text = lighter still.
- Make the input background (--field) close to the base too (e.g. #f7f1ea for warm apps, #f1f4ee for green ones).
- Cards are white (#fff).
- Status colors are allowed: warning/delete red (#be123c on #fdecef), changed/pending orange (#d97706 on #fef3c7), info blue (#2563eb on #e8effd).
- If you need category colors, add at most 3 more. Avoid hues close to the main color, and keep them all muted.
- Don't just copy the examples below. Choose colors from the subject and the user's mood, and write the colors and the reason as a comment (e.g. "A money app, so a trustworthy deep green. The accent is the gold of coins."). If colors are specified, use those first.
  [Specified colors] (leave blank to choose yourself) Base:    Main:    Accent:
- Example palettes (for reference — all slightly muted) (base / main / accent):
  Coral #fdf4ea / #e05a43 / #ffd447, Sage #f2f4ee / #5f8a6e / #f2c66d, Smoky blue #eff3f8 / #4f78a8 / #f4c95d, Dusty rose #fbf1f2 / #c0627d / #f6cf7a, Ink navy #f1f2f6 / #2f5a8c / #ffcf56, Terracotta #f8efe8 / #b5603c / #f2c14e, Deep green #eef2ea / #2f5a3f / #e9c46a, Plum #f4eef4 / #6e4a7e / #f3b562, Charcoal #f2f1ee / #3a3a3a / #f2b33d, Teal #eaf3f1 / #2f7f7a / #ffcc66
- If useful, let users pick a theme color in the settings (build it so swapping the variables changes everything).

====================================================
3. The first main element (use a hero only when it's needed)
====================================================
- For each screen, decide on exactly one "main element" — the thing the eye goes to the moment it opens. Its job is to make "what the current state is" or "what to do next" clear at a glance.
- A hero (a card filled with the main color, with a big number and chips) is one option for the main element. It isn't banned, but don't make it "a fixed part every screen must have." If every screen starts with the same shape, every app ends up with the same face no matter the subject — monotonous, and it looks like every other AI-made screen.
- First decide based on what matters most on that screen.
  - If what matters most is "one number or state" (budget left, a streak, days until the next event, today's progress, etc.) → a hero fits. Showing it big and filled communicates best.
  - If what matters most is "the content itself" (a writing area, line items, a list, a calendar, etc.) → don't use a hero; choose from options 1–5 below.
- Options for the main element (think about them together with the metaphor from section 0, top to bottom):
  1. The subject's object itself: show the screen's main element in the shape of the real object.
     For example: diary → today's page of an open planner (a big date plus a ruled writing area), budget → this month's receipt, savings → a bankbook (rows of date, item and balance, with a double-ruled total), travel → the ticket for the next trip, workouts → today's training sheet, duty roster → a chalkboard, study → a stack of flashcards, shop → an order slip.
  2. Start with the content: put the thing used most on that screen (writing area, calendar, list, etc.) at the very top and make it the main element.
  3. Big type only: no card around it — set the number or date directly on the base, large like a magazine headline (48–72px). Underneath, line up 2–3 small numbers separated by dotted dividers.
  4. Illustration: show a line drawing of the subject, large.
  5. No main element: list, search and settings screens get just a small heading and go straight into the content.
  6. Hero: filled with the main color, border-radius 24px, padding 18px. At the top, an accent-colored pill label (e.g. "Left this month", "Next duty"); below it a big 40–48px bold number; below that, 2–3 chips on a 14% white background. Tappable chips should lead to the related screen. Draw a faint motif of the subject (ruled lines, a grid, court lines, etc.) as an inline SVG in the background (opacity .06 to .15).
     You can choose its look from three levels: "filled" / "light" (main-colored text on --main-l) / "white" (just a big number on a white card).
- You can combine the object's shape with a hero (e.g. inside a budget receipt, show only "$117.40 left" big; a hero shaped like a ticket). A hero that takes the subject's shape is less likely to look like every other app.
- Within one app, change the main element's shape from screen to screen (e.g. home is a planner page, the people screen is a bankbook, stats are big type and a grid). Don't let every screen start with the same shape.
- Use a hero on at most 2 screens per app (e.g. home and the app's key screen). Two main elements side by side make it unclear where to look, so on a screen with a hero, don't add another big main element (a big receipt, a big headline, etc.).
- Change the content with the state. For example: if nothing is written yet, a writing area that says "Still a blank page"; once written, "Here's the page you wrote." Change the wording between morning and night. Always prepare how it looks when a number is 0 or something is empty.
- Size: up to about half of the first visible screen, so a little of the content below shows without scrolling (except when the writing area itself is the main element).
- Show numbers and dates in the main element large, in the expressive font (4-3). Tappable summaries (such as "46 people met this year") become small chips that lead to the related screen.

====================================================
4. Adding personality (this is what keeps it from being "too plain and boring")
====================================================
Use 2–3 of the following 4. When unsure, use fewer (follow 4-5). Don't put all of them on every screen.

4-1. Give the main data a "shape"
- Show the main data not as plain text but as a small part that fits the subject.
  Dates → a stamp like a tear-off calendar (the month as a small English band, the day as a big number, the weekday small; Saturday in blue, Sunday in red)
  People → avatars with the name's initial in a circle (color-coded by type)
  Amounts → a big number with a small currency sign, receipt-style line items
  Counts and streaks → a row of small bars or dots
  Places → chips with a pin icon
  Progress → a ring or a bar
  Time → a clock-face style, or the time shown big
- Show the same data in the same shape on every screen.

4-2. Use 3 or more kinds of cards
- Don't let the same white card repeat from top to bottom. Change the look by role.
  Main element: the shape decided in section 3 (the subject's object itself, big type, etc.).
  Standard card: white, border-radius 20px, padding 16px, shadow box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.06);
  Cards made of the subject's materials: sticky notes, tickets, receipts, business cards, flashcards, memo paper, etc. Choose only 1–2 kinds that fit the subject, and use them for special roles such as "recommended," "pick-up" or "past records."
    Sticky note: a light tint of the accent color, masking tape at the top, tilted very slightly (±1° at most)
    Ticket: half-circle notches on the left and right edges (mask or clip-path, or round elements in the base color laid on top), a dotted divider in the middle (border-top: 2px dashed)
    Receipt: a zigzag bottom edge (clip-path: polygon() with a row of triangles), monospaced numbers, dotted dividers (border-top: 2px dashed)
    Business card: a thin band in the category color on the left edge
    Memo paper: ruled lines under the text (matched to the line height; lay an SVG data URI as background-image)
- Show state with the card background (your own items in light main, changes on an orange background, warnings on a red background).

4-3. Use two fonts
- Body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif
- Expressive font: use one Google Font that fits the subject and mood, only for headings, big numbers, dates, names and buttons. Always list the body font after it, so nothing breaks if it doesn't load.
  Soft and friendly (diaries, family, fandom): Nunito, Quicksand, Fredoka
  Neat and elegant (work, money, reading): Fraunces, Lora, DM Serif Display
  Energetic and playful (sports, games, kids): Bricolage Grotesque, Baloo 2, Archivo Black (headings only)
  Numbers and short labels that should stand out: Outfit, DM Sans, Space Grotesk
- Sizes: big numbers 24–48px, bold, font-variant-numeric: tabular-nums; headings 15–17px bold; body 14px; notes 12px.

4-4. Add material and one decoration
- Lay a very faint background pattern of the subject's motif on the base (dots, a grid, ruled lines, polka dots, stripes, etc.), as an SVG data URI in background-image.
- [How to draw lines and patterns] Don't draw ruled lines, stripes, zigzags, notches or dotted lines with linear-gradient / repeating-linear-gradient. Use only SVG data URIs, clip-path / mask, borders (solid / dashed / dotted / double) and pseudo-elements.
- CSS variables don't work inside a data URI. If the app can switch themes, put the pattern itself into a CSS variable (e.g. --dots: url("data:...")) and rebuild it for each theme.
- Choose only one kind of decoration: masking tape, stamps, stitching (a dotted edge), notches, pins, a hand-drawn underline, etc.
- A small decoration next to headings, such as a dotted or short line, is fine.

4-5. Rules to avoid overdoing it
- At most 2 kinds of material cards and 1 kind of decoration per screen.
- Tilt at most ±1°. Don't add decorations that make the text harder to read.
- Keep background patterns and motifs at opacity .06 to .15, or only slightly darker than the base.
- When in doubt, take it out. Aim for "the minimum that makes the subject obvious at a glance."

====================================================
5. Presentation
====================================================
- Don't just list text. Show things in shapes you can read at a glance: calendars, tables, bars, rings, person avatars, etc.
- Vary the rhythm of the screen: main element → something side by side (a carousel, a 2-column grid, a row of chips) → a vertical list, so the same layout doesn't repeat.
- For empty states (no records yet, nothing found in search, etc.), show a line-drawn SVG that fits the subject and a kind line of text. Don't stop at "No data."
- Wording: make buttons and guidance short and conversational rather than mechanical (e.g. "Add data" → "Write about today", "Saved" → "All written down"). But keep errors and delete confirmations clear.

====================================================
6. Buttons and inputs
====================================================
- Main button: filled with the main color, white text (dark text on a light main color), border-radius 16px, full width, vertical padding 15px, 15px bold. On :active, transform: scale(.985).
- Secondary buttons: light main background with text in the main ink color (--main-ink). Delete etc.: light red background with red text. Small options are pill-shaped chips.
- Inputs (input, textarea, select): no border, background --field, border-radius 14px. On focus, the background turns white with a ring of box-shadow: 0 0 0 2px (main color).
- Tabs are a "segmented control": a light track where only the selected tab floats in white.

====================================================
7. Header
====================================================
- Keep it at the top while scrolling with position: sticky; top: 0; and give it a frosted glass background (as in section 1).
- On the left, a 36px main-colored square icon (radius 10px, white SVG inside); the app name at 16–18px bold (in the expressive font). On the right, a pill with the user's name.

====================================================
8. Icons [strict]
====================================================
- No emoji at all (like 📱 or ✨) and no symbol characters (like ★●✓). Every icon must be an inline SVG with a consistent stroke width (stroke-width="2" to "2.6") and round line caps (stroke-linecap="round").
- Icons next to headings use the main color.

====================================================
9. Layout and animation
====================================================
- Mobile-first (max-width: 640px; margin: 0 auto;). 16px side gutters, 12px gaps between cards.
- Don't break on small 320px phones. Define grid columns with minmax(0, 1fr), like repeat(7, minmax(0, 1fr)), so content can't push them wider than the screen. Don't rely on aspect-ratio for grid cells; set their height with clamp(). Put small-screen overrides (@media (max-width: 400px)) at the end of the CSS.
- Content fades in slightly from below when shown (CSS animation @keyframes fadeIn). Newly added items rise in from below. Items in a list appear staggered by 70ms.
- Buttons and cards change state smoothly with transition: all .2s;
- Keep motion to 0.2 to 0.3s; no overly slow or shaking motion. Stop motion when prefers-reduced-motion is on.

====================================================
10. Components (use only what fits the app; don't include them all)
====================================================
- To keep the code short, use only the components that are truly useful for this app. Don't write code for components you don't use.

[Use in almost every app]
- Toast: after saving, adding, deleting, copying, etc., show a short message near the bottom of the screen. Dark frosted glass (background: rgba(17,24,39,.8); backdrop-filter: blur(16px);) with white text, border-radius 999px, and a small SVG icon on the left. It rises in slightly from below and disappears after about 2 seconds. Show only one at a time.
- Radio buttons: don't use the default round look. Show the options as pill-shaped chips or a segmented control; the selected one is filled with the main color. Build them with input type="radio" wrapped in a label so they are easy to tap.
- Dropdown (select): same look as inputs, with a downward arrow (inline SVG) on the right. If there are 4 options or fewer, show chips instead of a dropdown.

[Use when the situation fits]
- Bottom sheet: on phones, prefer this over a centered modal for showing details, input forms and lists of choices. A white sheet that slides up from the bottom (top corners radius 24px, a small horizontal handle at the top). Dim and blur the background as in section 1; close by tapping the background or swiping down.
- Modal: only for short confirmations such as confirming a delete. A centered white card (radius 24px) with "Cancel" (secondary button) and "Delete" (red text on light red) side by side. Close with the Esc key or by tapping the background.
- Accordion: for things usually kept folded, such as long explanations, FAQs or past records. Tap the heading row to open or close; the arrow (SVG) on the right rotates.
- Skeleton screen: where loading takes time, show gray rounded boxes (in a color close to the base, with slowly changing brightness) so the layout is visible while loading. Don't use it where loading is instant.
- Autocomplete: for fields where people often re-enter the same things, such as names, places or item names. Show up to 5 matching suggestions in a white card right below the field; tapping one fills it in. Give people suggestions an avatar.
- Swipe action: swiping a list item left reveals buttons such as "Delete" (red). Always keep a button that does the same thing.
- Carousel: when you want to show cards side by side with swiping. Use scroll-snap so it stops one card at a time, with the next card slightly visible. Show dots for the current position below. Don't auto-advance.
- Hamburger menu: use when there are 5 or more screens that don't fit in tabs (with 4 or fewer, use segmented tabs or tabs fixed to the bottom). Put it on the right of the header; it opens a white panel (radius 24px) from the right. Highlight the current screen with the light main color.

====================================================
11. Final check (before you hand it over)
====================================================
□ Looking at the screen for 3 seconds, can you tell what the app is about (even with the logo and text hidden)?
□ Does the same white card repeat from top to bottom?
□ Is the main data shown as a shape, not just plain text?
□ Is every screen with a hero a screen where "one number or state" matters most? Do all screens start with the same hero?
□ Does the first main element show "the current state" or "what to do next"? Is there an empty state?
□ Does the main element's shape differ from screen to screen?
□ Are the text grays still neutral gray?
□ Are there any gradients or soft blurred color blobs?
□ Are there so many decorations that the text is hard to read?
□ At 320px, 375px and 430px widths, does anything overflow sideways or break (use minmax(0, 1fr) for grid columns)?
□ Are there any emoji or symbol characters?

[Data shared with the whole group (use Jisapp's group sharing)]
- Everyone in the group sees and writes the same data in this app.
- Data shared with members must use window.Jisapp.shared (not localStorage or window.Jisapp.saveData).
- For data members keep adding to (attendance, posts, logs, plans, etc.), use "add":
  - Add: const item = await window.Jisapp.shared.add('keyName', data)
    Returns: { id, value, author: { id, name }, createdAt, mine } (mine is true for items you added)
  - List: const items = await window.Jisapp.shared.list('keyName') (array, oldest first)
  - Remove: await window.Jisapp.shared.remove('keyName', item.id) (people can remove their own items; the group creator can remove any)
- For a single value the whole group shares (this month's practice day, a notice, etc.):
  - Save: await window.Jisapp.shared.save('keyName', data)
  - Load: await window.Jisapp.shared.load('keyName') (null if nothing yet)
- Never overwrite a whole list with save (if two people type at once, someone's entry is lost). Always add items with add.
- Show other members' updates: window.Jisapp.shared.onChange('keyName', () => { reload the list and redraw })
- Your display name: const me = await window.Jisapp.me() ({ id, name })
- Show who wrote each item (item.author.name) and when. Only show a delete button on items where item.mine is true.
- Key names use letters and numbers (e.g. attendance, posts) and never change once chosen.
- Only text data can be shared. Images, video and audio themselves cannot be saved (showing them on screen is fine).
- To keep files such as photos, videos or PDFs, use window.Jisapp.drive. They are saved to the user's own Google Drive (Jisapp's own screens handle choosing files, Google's permission and saving).
  - Save (call it when a button is pressed): const files = await window.Jisapp.drive.upload({ accept: 'image' })
    accept is 'image' (photos), 'video', 'pdf' or 'any'. Add multiple: true to let people choose several
    Returns: an array of { id, name, kind, mimeType, size, url, thumbnail } (kind is 'image', 'video', 'pdf' or 'file'; an empty array if they cancel)
  - The returned values are text, so save them like any other data (never save the file contents)
  - Show: img.src = file.thumbnail (this shows photos; videos and PDFs show a cover image. For another size, use window.Jisapp.drive.thumbnail(file, width))
  - Open: await window.Jisapp.drive.open(file) (Jisapp shows it large on top of the app. Videos can't play and PDFs can't be shown inside the app, so always use this)
  - If the cover image doesn't load (for example, a video right after saving), show a type icon and the file name in the img onerror
  - Never save or share file contents read with <input type="file"> or FileReader (such as data: URLs); it won't work
- Creating, inviting to and joining groups is handled by Jisapp's own screens, so do not build that into the app.

(For data that is only yours and not shared)
[Saving data (only in this browser on this device)]
- Do not use window.Jisapp.saveData / loadData.
- Keep data with localStorage.
  - Save: localStorage.setItem('keyName', JSON.stringify(data))
  - Load: JSON.parse(localStorage.getItem('keyName') || 'null')
- Key names use letters and numbers only, and never change once chosen.
- Data only stays in the same browser on the same phone or computer. It does not carry over to other devices or browsers.

[Using external APIs (how it works on Jisapp)]
■ How it works on Jisapp (understand this before writing code)
- Apps call external APIs with window.Jisapp.fetch. Jisapp's server sends the request for the app and returns the result.
- API keys are never written in the code. The app's creator registers the key with "Register API key" in the Studio. The key is stored encrypted on Jisapp's server and people using the app can't see it.
- In the code, write only the key's name, like secret: 'GEMINI'. When sending, Jisapp attaches the key registered under that name.
- A key can only be sent to destinations written in the app's code. Write the destination URL (the domain part of https://api.example.com/...) as plain text in the code (don't build it by joining strings).
- Everyone who uses the app calls the API with the creator's key. Don't make users enter a key. For paid APIs, the creator pays for what is used.
- Only https URLs work. Requests up to 256KB, responses up to 512KB, and a wait of about 50 seconds at most. Calling too often in a short time pauses it for a while.
- There are only two ways to attach a key:
  - URL parameter: added to the URL like ?key=KEY (the parameter name is chosen when registering)
  - HTTP header: sent as Authorization: Bearer KEY
  Services that only accept other ways (a different header such as x-api-key) can't be used. In that case, pick another service that works with one of the two ways above.
- On the registration screen, "How it's attached" has these two choices. In your guide, decide the one that fits the service and write it exactly as the option is named on screen (don't write "either" or "or").
  - "URL parameter (?key=, etc.)": choosing it shows a "Parameter name" box, so always also give the name the service uses (key for Gemini, appid for OpenWeather, etc.)
  - "HTTP header (Authorization, etc.)": for services that use Authorization: Bearer KEY (OpenAI, Groq, etc.). No parameter name needed

■ Choosing the service
- Use the service the user asked for.
- If they didn't name one, pick one that fits the purpose and is free to start if possible, and say which one you picked in the guide.

■ How to write the code (required)
- Never write API keys, tokens or secret keys in HTML / JavaScript / CSS. Don't ask the user for their key.
  Not allowed: const API_KEY = 'AIza...'; const OPENAI_KEY = 'sk-...'; fetch(url + '?key=xxxx')
- Always call external APIs that need a key with the secret option of window.Jisapp.fetch.
  Example: const res = await window.Jisapp.fetch('https://api.example.com/v1/data', {
             method: 'POST',
             headers: { 'Content-Type': 'application/json' },
             body: { text: '...' },   // you can pass an object as is (it becomes JSON)
             secret: 'EXAMPLE'
           });
           // res.ok (whether it worked), res.status (number), res.body (the returned data; JSON becomes an object)
- Secret names start with an uppercase letter and use only uppercase letters, numbers and underscores (32 characters max). Name them after the service (e.g. GEMINI, OPENAI, GROQ, WEATHER). Use the same name for the same service throughout the app.
- Only APIs that need no key and support CORS may be called with a normal fetch(url). If you get a CORS error, use window.Jisapp.fetch(url).
- When it can't connect (key not registered, wrong key, billing limit, too many calls, etc.), window.Jisapp.fetch throws an error or res.ok is false. Always use try/catch and check res.ok, and show the reason and how to fix it on screen. Never fail silently or freeze.
  Example: "The API key isn't registered yet. In the Studio, open the '…' menu → 'Register API key' and register GEMINI."
- Never pretend to be AI. When the API can't be reached, don't show fixed or random replies as if they were real answers.

■ How to register common services
- Google Gemini → secret: 'GEMINI' / attach: "URL parameter (?key=, etc.)", parameter name "key" / get a key: "Get API key" in Google AI Studio (aistudio.google.com) (free to start)
- OpenAI → secret: 'OPENAI' / attach: "HTTP header (Authorization, etc.)" / get a key: "API keys" on platform.openai.com (paid; you need to buy credits first)
- Groq → secret: 'GROQ' / attach: "HTTP header (Authorization, etc.)" / get a key: "API Keys" on console.groq.com (free to start)
- OpenWeather (weather) → secret: 'WEATHER' / attach: "URL parameter (?key=, etc.)", parameter name "appid" / get a key: create an account on openweathermap.org, then "API keys"
- Others → check the service's docs: if the key goes in the URL, choose "URL parameter (?key=, etc.)" (and find and write the parameter name); if it's sent as Authorization: Bearer, choose "HTTP header (Authorization, etc.)"

■ How to shape your reply (when using external APIs)
Reply in this order (match the service, secret name and attach method to the actual code). The rule to output the full code in your first reply still applies.

1. Before the code, write this
---
[External API this app uses]
- Service: ○○ (what it's used for)
- Cost: free to start / paid (rough idea)

[Before you start: how to get a ○○ API key]
1. Go to ○○ (the site's URL) and create an account (or sign in)
2. On the ○○ screen, press "○○" to create an API key
3. Copy the key that appears (you'll register it on Jisapp later; don't show it to anyone)
* For paid services, also say if you need to add a payment method or buy credits here
---

2. The complete index.html code

3. After the code, write this
---
[How to set it up on Jisapp]
1. Paste this code into the Jisapp Studio
2. Open "Register API key" from the "…" menu at the top right
3. Register it like this
   - Name: ○○ (the same as the secret name in the code; even one different letter and it won't work)
   - Value: the API key you copied
   - How it's attached: choose "○○" (+ for URL parameter, enter "○○" as the parameter name)
4. Press "Add", then press "Test connection" next to the key and check that it says "Connected"
5. Try it in the preview and check that you get a reply

[About costs (important)]
- Every time the app is used, it calls ○○ with your API key. Everyone who uses the app uses your key.
- If you list the app on Jisapp or share its URL, more people (including strangers) may use it, and your API costs may go up.
- For paid APIs, you pay for what is used. Free APIs may also stop working or start charging once you go past the free limit.
- If you're worried, set a spending or usage limit in ○○'s dashboard (also briefly explain how to set it in ○○).

[Good to know]
- Your key is stored encrypted on Jisapp and people using the app can't see it. Don't write the key in the code.
- If you change the destination URL, publish the app again.
---

Getting your team on it takes three steps:

  1. Open the app and tap Create a group (only the person who creates the group needs to sign in)
  2. Send the invite link to your team's WhatsApp group
  3. Players open the link, type their name and tap Join. No sign-in, nothing to install
Open the app, tap Create a group and send the invite link
Open the app, tap Create a group and send the invite link

Then go to Settings and add your squad (one player per line: name and role) and your fixtures. Add the app to your home screen and it opens like any other app.

Only people who joined from your invite link can see your team's data. Other teams can use the same app with their own separate group, so nothing gets mixed up.

Make your own version

Maybe your club plays T20 on weekdays, or you want to track who's bringing the kit bag. You can make your own version in the Jisapp Studio.

1. Open the Studio and tap "Make an app to share with a group"

The Jisapp Studio. Tap "Make an app to share with a group"
The Jisapp Studio. Tap "Make an app to share with a group"

2. Describe your app and make the prompt

With Shared with a group selected, write what you want to make and add the details or features you want. Tap Make and copy the prompt. Jisapp builds a prompt with its design rules and the rules for sharing one set of data with your whole team, and copies it for you.

Describe your app, add the features and tap "Make and copy the prompt"
Describe your app, add the features and tap "Make and copy the prompt"

The prompt above is exactly this, with Team Cricket's features written into the "Extra requests and specs" part. To make your own, change that part. For example:

Also add a "Kit bag" card that shows who has the team's kit bag this week. Players tap "I've got it" when they take it home, and the next person is picked from whoever is in for the next match.

3. Paste it into your usual AI

Open ChatGPT, Claude, Gemini or whichever AI you use, paste the prompt and send it.

Paste the copied prompt into your usual AI
Paste the copied prompt into your usual AI

4. Paste the code back into Jisapp

When the AI has finished writing, copy all of its code, come back to the Studio and tap Paste the code and run it. Check that it works, publish it, and then create a group and send the invite link, just like above.

Copy the AI's code and paste it back into Jisapp
Copy the AI's code and paste it back into Jisapp

Wrap-up

  • One place for the whole team: who's in, the batting order, fees and man of the match
  • When anyone taps, everyone's screen updates, so nobody has to count thumbs-up on a Saturday night
  • Use the official app as it is with one invite link, or change the prompt to make one that fits your club

Sunday mornings should be about the first over, not the headcount.

Share

Free · No sign-up needed to try

Open the Studio

Paste code from AI and your app is ready

Read next

Popular apps

Make an app