Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
zip(this.alerts$, interval(1500)).pipe(
  map(([alert]) => alert),
).subscribe((alert) => this.toast.show(alert));
// 5 errors arrive at once -> shown 1.5s apart, none dropped
const items = ['Angular', 'RxJS', 'NgRx'];

const andFmt = new Intl.ListFormat('en', { type: 'conjunction' });
andFmt.format(items); // "Angular, RxJS, and NgRx"

const orFmt = new Intl.ListFormat('en', { type: 'disjunction' });
orFmt.format(items);  // "Angular, RxJS, or NgRx"
Dark-theme code editor screenshot. TypeScript code: import { isString, typedStruct } from 'is-kit'; type Preferences = { theme: string; locale: string }; const isPreferences = typedStruct<Preferences>()({ theme: isString, locale: isString }); const raw = localStorage.getItem('preferences'); const value = raw ? JSON.parse(raw) : null; inside if (isPreferences(value)) it reads const theme = value.theme and const locale = value.locale.
Dark-theme code editor screenshot. TypeScript code: import { isString, typedStruct } from 'is-kit'; type Preferences = { theme: string; locale: string }; const isPreferences = typedStruct<Preferences>()({ theme: isString, locale: isString }); const raw = localStorage.getItem('preferences'); const value = raw ? JSON.parse(raw) : null; inside if (isPreferences(value)) it reads const theme = value.theme and const locale = value.locale.
form(this.passwords, (f) => {
  validateTree(f, ({ value }) =>
    value().password !== value().confirm
      ? { kind: 'mismatch', fieldTree: f.confirm }
      : null
  );
});
Photo, no description
items$ = this.page$.pipe(
  exhaustMap((page) => this.api.getOrders(page)),
  scan((all, next) => [...all, ...next], [] as Order[]),
);
Photo, no description
const sessionService = isProd
  ? new DatabaseSessionService('sqlite://sessions.db')
  : new InMemorySessionService();

const runner = new Runner({
  agent: supportAgent,
  appName: 'helpdesk',
  sessionService,
});
Code card titled "The Stop button is state, not an afterthought", subtitle: model it explicitly; Stop keeps the partial answer, and an abort is not an error. A row of five state chips: idle, streaming, stopping, done, error. First code panel, chatReducer.ts: a TypeScript reducer with start, chunk, stop, finish and fail actions. Chunks only append while streaming, so late chunks after Stop are ignored; stop moves streaming to stopping; finish moves streaming or stopping to done and keeps the text; fail sets error. Second panel, stop.ts excerpt: stop() dispatches stop, then calls ctrl.current?.abort() to cancel the fetch and the stream; in send()'s catch block, if the signal was aborted it dispatches finish, otherwise fail with the error message. Footer: full file type-checks with tsc --strict.
TypeScript code: const looksLikeObject = typeof null === 'object'; // true. Below it, a type guard: function isObject(value: unknown): value is object { return typeof value === 'object' && value !== null; }
TypeScript code: const looksLikeObject = typeof null === 'object'; // true. Below it, a type guard: function isObject(value: unknown): value is object { return typeof value === 'object' && value !== null; }
TypeScript code in a dark editor tab named reports.agent.ts. An LlmAgent named reports, with model gemini-4-neon and the instruction "Write sales reports from the data the user shares.", sets a beforeAgentCallback that takes the context, highlighted. If context.state.get('user:role') is 'analyst', highlighted, it returns undefined, with the comment "run the agent as usual". Otherwise, under the comment "Returned content becomes the reply; the model is never called", it returns, highlighted, a model message with the text "You do not have access to reports."
Top 5 trending on GitHub, Nov 23
Photo, no description
Photo, no description
Photo, no description
Photo, no description
Faivra – AI Agents, Chat  CRM Admin Dashboard
Photo, no description
Load more