frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: NeoComp – Merging imperative with declarative using chunked templating

https://github.com/aliibrahim123/neocomp.js
1•aliibrahim123•1d ago

Comments

aliibrahim123•1d ago
Hello HN,

I would like to present a new concept frontend framework called NeoComp. It is a JavaScript framework that favors lightweight, simple vanilla JavaScript over the heavier, extended JavaScript used in other frameworks, while remaining both reactive and declarative.

It is heavily inspired by Solid, Lit, and Ripple. It revisits old concepts from a modern perspective, merging declarative definition with imperative flow.

Here is an example:

  class Example extends Component {
    constructor() {
      super();
      const { $temp } = this.createTop();
      $temp`<div>`;
  
      let text = this.signal('');
      $temp`
        1 + <input on:input=${(el) => text.value = el.value}>
        = ${() => 1 + Number(text.value)}
      `;
  
      this.counter($temp, 'counter 1');        
      this.counter($temp, 'counter 2');
  
      for (let i = 0; i < 10; i++) 
        $temp`<div>${i}</div>`;
  
      $temp`</div>`;
      this.fireInit();
    }
  
    counter ($temp, name) {
      let count = this.signal(0);
      $temp`<button on:click=${() => count.value++}>${name}: ${count}</button>`;
    }
  }
Features:

- It is vanilla JavaScript with no additional syntax.

- Markup is declared in its natural form (HTML) inside tagged templates.

- Fully reactive with deep state reactivity.

- Powered by fine-grained reactivity, with implicit bindings inferred from the templates.

- Driven by imperative construction; the structure is built once, not re-evaluated on every update.

- Uses chunked templates: templates are created in multiple parts instead of one big blob. Each section is inlined within its logic and can use normal control flow.

- Defined inside classes to maintain their own scope and to act as regular objects that can be interacted with (not abstract functions).

- Feature-full: lazy loading, async programming, independent state contexts.

- Full ownership of the DOM; no hidden internals messing with elements without permission.

- Lightweight: 7.5 kb gzip.

- Optional bundle-time optimization (parsing templates)

NeoComp is a framework that rethinks the wheel. It uses an imperative model that remains as declarative as other frameworks, and shows that old concepts thought to be dead still have power, all while being small, powerful, and simple.

if you are looking for more about the philosophy behind: https://aliibrahim123.github.io/recomputed/web-dev/

Looking for your feedback on this framework and its approaches.

Research identify two psychological traits that predict conspiracy theory belief

https://www.psypost.org/researchers-identify-two-psychological-traits-that-predict-conspiracy-the...
1•wjSgoWPm5bWAhXB•28s ago•0 comments

AI voice agents which convert

https://coldi.ai/
1•Olivia8•1m ago•0 comments

Singleton Done Right in C++

https://andreasfertig.com/blog/2026/01/singleton-done-right-in-cpp/
1•klaussilveira•2m ago•0 comments

Digg.com (Relaunch)

https://digg.com/d/login
1•beatthatflight•5m ago•0 comments

Private Inference (Confer Blog)

https://confer.to/blog/2026/01/private-inference/
1•lwyr•6m ago•0 comments

Reflex FRP – a Haskell-based ecosystem for building user interfaces and web apps

https://reflex-frp.org/
1•ravenical•7m ago•0 comments

Century-old tumours could reveal why more young people are getting bowel cancer

https://www.bbc.com/news/articles/cvgxpv9k822o
1•cbluth•9m ago•0 comments

VoiceWise – Understand long voice notes without listening twice

https://voicewise.live
1•highraja•9m ago•1 comments

GoTHub SSH Signup

https://gothub.org/signup.html
1•todsacerdoti•12m ago•0 comments

Options+ and G Hub macOS Certificate Issue

https://old.reddit.com/r/logitech/comments/1q65vzx/options_and_g_hub_macos_certificate_issue/
1•juliendc•13m ago•0 comments

The Resonant Computing Manifesto

https://resonantcomputing.org/
2•headalgorithm•14m ago•0 comments

iOS 26 appears to be rolling out unusually slowly

https://mastodon.gamedev.place/@AshleyGullen/115852978599994325
1•AshleysBrain•14m ago•0 comments

An Introduction to Ruby Parsing with Prism

https://blog.appsignal.com/2026/01/07/an-introduction-to-ruby-parsing-with-prism.html
1•amalinovic•16m ago•0 comments

Vercel CEO's Grok 4 vs. GPT 5.2 chess match runs all night (still on)

https://v0-chess-match.vercel.app/
1•michael-sumner•16m ago•0 comments

From blog to growth engine: how I turned content into a product surface

https://www.google.com/search?q=site%3Avect.pro&oq=s&gs_lcrp=EgZjaHJvbWUqCAgDEEUYJxg7MgYIABBFGDwy...
1•WoWSaaS•17m ago•1 comments

Continuous AI on Your Terminal

https://github.com/autohandai/code-cli
1•igorpcosta•18m ago•2 comments

Ask HN: Which career is most future-secure in the AI era?

1•danver0•19m ago•0 comments

Show HN: Tickk.app – Local-only voice braindumps → tasks (no AI, no cloud)

https://tickk.app/
1•digi_wares•20m ago•0 comments

LLMs Are Performance-Enhancing Drugs for the Mind

https://dogdogfish.com/blog/2026/01/07/ai-as-ped/
1•matthewsharpe3•22m ago•0 comments

How CU Boulder's student news site got taken over by AI slop

https://www.denverpost.com/2026/01/05/cu-independent-website-ai-impersonator/
2•thm•24m ago•0 comments

Valve Should Buy Discord (Before the IPO)

https://www.garbagecollected.dev/p/valve-should-buy-discord
3•ee64a4a•24m ago•0 comments

Backpressure in JavaScript

https://blog.gaborkoos.com/posts/20206-01-06-Backpressure-in-JavaScript-the-Hidden-Force-Behind-S...
1•enz•25m ago•0 comments

'Autofocus' glasses can change their lenses in real time

https://www.cnn.com/science/autofocus-glasses-ixi-change-lenses-spc
1•thunderbong•28m ago•0 comments

Tell HN: I have no interest in being tracked

2•nsaciafbi•29m ago•1 comments

OpenAI down 20% of AI Web Traffic in last 12 months

https://twitter.com/Similarweb/status/2008805674893939041
2•ostenbom•29m ago•0 comments

Ralph Wiggum went from 'The Simpsons' to the biggest name in AI

https://venturebeat.com/technology/how-ralph-wiggum-went-from-the-simpsons-to-the-biggest-name-in...
2•ghuntley•30m ago•0 comments

China mandates 50% domestic equipment rule for chipmakers, sources say

https://www.reuters.com/world/china/china-mandates-50-domestic-equipment-rule-chipmakers-sources-...
2•bryanrasmussen•30m ago•1 comments

Ikigai

https://en.wikipedia.org/wiki/Ikigai
1•fsflover•30m ago•0 comments

Post-growth: the science of wellbeing within planetary boundaries

https://www.thelancet.com/journals/lanplh/article/PIIS2542-5196(24)00310-3/fulltext
1•hamburgererror•35m ago•0 comments

Show HN: Server-rendered multiplayer game with proximity chat and LLM NPC

https://github.com/skorotkiewicz/proximity-explorer
1•modinfo•37m ago•0 comments